From 901bab70c88280e15b162f1e65b7cfe35b2e91df Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 7 Jun 2012 09:25:05 +0000 Subject: Say hello to olsrd as a package. --- config/olsrd.inc | 296 +++++++++++++++++++++++++++++++++++++++++++++++++ config/olsrd.xml | 141 +++++++++++++++++++++++ pkg_config.8.xml | 13 +++ pkg_config.8.xml.amd64 | 13 +++ pkg_config.xml | 16 +++ 5 files changed, 479 insertions(+) create mode 100644 config/olsrd.inc create mode 100644 config/olsrd.xml diff --git a/config/olsrd.inc b/config/olsrd.inc new file mode 100644 index 00000000..9db79f1f --- /dev/null +++ b/config/olsrd.inc @@ -0,0 +1,296 @@ + "on") { + if (is_process_running("olsrd")) + mwexec("/usr/bin/killall olsrd", true); + return; + } + $fd = fopen("{$g['varetc_path']}/olsr.conf", "w"); + + if($olsrd['announcedynamicroute'] or $olsrd['enableannounce'] == "on") { + $enableannounce .= "\nHna4\n"; + $enableannounce .= "{\n"; + if($olsrd['announcedynamicroute']) + $enableannounce .= "\t{$olsrd['announcedynamicroute']}\n"; + if($olsrd['enableannounce'] == "on") + $enableannounce .= "0.0.0.0 0.0.0.0"; + $enableannounce .= "\n}\n"; + } else { + $enableannounce = ""; + } + + $olsr .= <<0 +# +# defaults to 1 + +MprCoverage 3 + +# Example plugin entry with parameters: + +EODA; + +if($olsrd['enablehttpinfo'] == "on") { + $olsr .= << diff --git a/config/olsrd.xml b/config/olsrd.xml new file mode 100644 index 00000000..9709392d --- /dev/null +++ b/config/olsrd.xml @@ -0,0 +1,141 @@ + + + olsrd + 1.0 + OLSRD + /usr/local/pkg/olsrd.inc + + + OLSRD +
Services
+ olsrd.xml +
+ + OLSRD + /usr/local/sbin/olsrd -f /var/etc/olsr.conf + + + + OLSRD Settings + /pkg_edit.php?xml=olsrd.xml&id=0 + + + + + /usr/local/pkg/ + 0755 + http://www.pfsense.com/packages/config/olsrd.inc + + + ['installedpackages']['OLSRD']['config'] + + + + Enable OLSR + enable + Enables the dynamic mesh linking daemon + checkbox + + + Link Quality Level + enablelqe + select + 1 + + + + + + + + Interfaces + iface_array + lan + true + 3 + interfaces_selection + Select the interfaces that OLSR will bind to. You can use the CTRL or COMMAND key to select multiple interfaces. + + + 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 + + + Announce self as Dynamic Gateway + enableannounce + Enables the OLSR Dynamic Gateways Announcing feature + checkbox + + + Announce Dynamic local route + announcedynamicroute + Enter the IP/Netmask + textarea + 3 + 50 + + + 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 + + + + + + setup_wireless_olsr($if); + + + + + +
diff --git a/pkg_config.8.xml b/pkg_config.8.xml index e1d4defd..7ca6a134 100644 --- a/pkg_config.8.xml +++ b/pkg_config.8.xml @@ -398,6 +398,19 @@ /snort.xml Please visit the Snort settings tab and enter your oinkid code. Afterwards visit the update rules tab to download the snort rules. + + olsrd + http://www.olsr.org/ + The olsr.org OLSR daemon is an implementation of the Optimized Link State Routing protocol. OLSR is a routing protocol for mobile ad-hoc networks. The protocol is pro-active, table driven and utilizes a technique called multipoint relaying for message flooding. + Services + http://www.pfsense.com/packages/config/olsrd.xml + http://files.pfsense.org/packages/All/ + olsrd-0.6.2.tbz + 1.0 + Stable + 2.1 + olsrd.xml + spamd http://www.openbsd.org/spamd/ diff --git a/pkg_config.8.xml.amd64 b/pkg_config.8.xml.amd64 index b2ba6ed5..339c15be 100644 --- a/pkg_config.8.xml.amd64 +++ b/pkg_config.8.xml.amd64 @@ -479,6 +479,19 @@ /snort.xml Please visit the Snort settings tab and enter your oinkid code. Afterwards visit the update rules tab to download the snort rules. + + olsrd + http://www.olsr.org/ + The olsr.org OLSR daemon is an implementation of the Optimized Link State Routing protocol. OLSR is a routing protocol for mobile ad-hoc networks. The protocol is pro-active, table driven and utilizes a technique called multipoint relaying for message flooding. + Services + http://www.pfsense.com/packages/config/olsrd.xml + http://files.pfsense.org/packages/All/ + olsrd-0.6.2.tbz + 1.0 + Stable + 2.1 + olsrd.xml + spamd http://www.openbsd.org/spamd/ diff --git a/pkg_config.xml b/pkg_config.xml index 32e50524..270bbf3a 100644 --- a/pkg_config.xml +++ b/pkg_config.xml @@ -25,6 +25,22 @@ http://www.pfsense.com/packages/config/autoconfigbackup/autoconfigbackup.xml autoconfigbackup.xml + + olsrd + http://www.olsr.org/ + The olsr.org OLSR daemon is an implementation of the Optimized Link +State Routing protocol. OLSR is a routing protocol for mobile ad-hoc +networks. The protocol is pro-active, table driven and utilizes a +technique called multipoint relaying for message flooding. + Services + http://www.pfsense.com/packages/config/olsrd.xml + http://files.pfsense.org/packages/All/ + olsrd-0.6.2.tbz + 1.0 + Stable + 2.1 + olsrd.xml + spamd http://www.openbsd.org/spamd/ -- cgit v1.2.3