olsrd
1.0
OLSRD
OLSRD
/usr/local/sbin/olsrd -f /var/etc/olsr.conf
OLSRD Settings
/pkg_edit.php?xml=olsrd.xml&id=0
['installedpackages']['OLSRD']['config']
pkg_edit.php?xml=olsrd.xml&id=0
Enable OLSR
enable
Enables the dynamic mesh linking daemon
checkbox
Interfaces
interface_array
lan
true
3
interfaces_selection
Enable HTTPInfo Plugin
enablehttpinfo
Enables the OLSR stats web server
checkbox
HTTPInfo Port
port
Port that HTTPInfo will listen on
input
Allowed host(s)
allowedhttpinfohost
Hosts that are allowed to access the HTTPInfo web service.
input
Allowed host(s) subnet
allowedhttpinfosubnet
Enter the subnet mask in form 255.255.255.0
input
Enable Dynamic Gateway
enabledyngw
Enables the OLSR Dynamic Gateways feature
checkbox
Ping
ping
Pings this host to ensure connectivity
input
Poll
polling
How often to look for a inet gw, in seconds.
input
Enable Secure Mode
enabledsecure
Enables the secure mode
checkbox
Key
securekey
Paste the secure key information here.
textarea
5
50
conf_mount_rw();
$fd = fopen("/usr/local/etc/olsrkey.txt","w");
fwrite($fd, $_POST['securekey']);
fclose($fd);
foreach($_POST['interface_array'] as $iface) {
$if = convert_friendly_interface_to_real_interface_name($iface);
if($if) {
setup_wireless_olsr($if);
}
}
conf_mount_ro();