Navigate to System → Virtualisation and activate the administrative status.
The latest version of the software is recommended.
At the subitem Install enter the following URL:https://share.netmodule.com/router/public/virt/kunde_freeboard-container.tar.xz
Choose Install on “Apply”.
In the Networking subitem, Mode must be set to Bridged and LAN1 must be entered as the Bridge Interface.
If an error message appears (Download/install of image failed) install the image again. The router had to create the directory structure first.
A static host must also be created on the GUI under Service→DHCP. The IP is in the same network as the LAN port used, but has a different host part.
and under Web Server CLI.PHP must be enabled.
Now the configuration of the container must be adapted to the configuration of the router. For this purpose, the IP addresses of the following files must be adapted:
1. dashboard.json // unter /var/www/html 2. lighttpd.conf // unter /etc/lighttpd/lighttpd.conf
In dashboard.json all IP addresses are set to those of the static host. In addition, the username and password must be changed. Example line: 192.168.11.100/cli.php?version=2&output=json&usr=admin&pwd=admin01&command=status&arg0=-s&arg1=wwan\t“.
In the lighttpd.conf the ip must be adjusted to that of the proxy server.
proxy.server = ( "cli.php" => ( ( "host" => "192.168.1.1", "port" => 80 ) ) )
Skript für WAN-Link Anzeige:
hotlink=struct_get(nb_status("wan"),"WAN_HOTLINK"); switch(hotlink){ case "WANLINK1": nb_config_set("custom.var1=LANIuK"); break; case "WANLINK2": nb_config_set("custom.var1=LANSAT"); break; case "WANLINK3": nb_config_set("custom.var1=WLAN"); break; case "WANLINK4": nb_config_set("custom.var1=T-Mobile"); break; case "WANLINK5": nb_config_set("custom.var1=Vodafone"); break; default: printf("kein link ist Hotlink"); break; }
Skript für WAN wechsel:
while (1){ wanlink = nb_config_get("custom.var1"); hotlink = struct_get(nb_status("wan"), "WAN_HOTLINK"); switch(wanlink){ case "hotlink": continue; break; case "": continue; break; case "WANLINK1": nb_wanlink_deactivate("WANLINK1"); nb_wanlink_activate("WANLINK2"); nb_config_set("custom.var0=WLAN"); break; case "WANLINK2": nb_wanlink_deactivate("WANLINK2"); nb_wanlink_activate("WANLINK1"); nb_config_set("custom.var0=LAN"); break; default: printf("no Hotlink"); break; } sleep(1); nb_config_set("custom.var1="); }
Enable the administrative status and use sdk-startup as trigger.
Access to Freeboard via web browser : http://192.168.11.100/freeboard/index.html#source=dashboard.json
Go to http://192.168.11.100/freeboard/ .
With the Freeboard it is easy to create a graphical overview of the following status values of the router.
You can see the freeboard start page without entries.
Here, a data source must first be selected. This is done with the following command.
http://192.168.11.100/cli.php?version=2&output=json&usr=admin&pwd=admin01&command=status&arg0=-s&arg1=x
The x must be replaced with a status value from the table above. In this example it is the value “wlan”.
The following steps have to be taken:
1.
2.
3.
Enter the above link in the URL field. Change “x” to WLAN.
4.
5.
6.
7.
8.
Now the freeboard can be saved and loaded onto the container.