From ff12f2bc124b7ffa7ff71acd7911ee279d6f6464 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 17 Nov 2015 17:30:22 +0100 Subject: olsrd package fixes, add privileges configuration - Fix service handling - Add input validations - Disable the dynamic gateways options since the required plugin is missing in the package - Couple of other clenaups --- config/olsrd/olsrd.xml | 111 ++++++++++++++++++++++++++++++------------------- 1 file changed, 68 insertions(+), 43 deletions(-) (limited to 'config/olsrd') diff --git a/config/olsrd/olsrd.xml b/config/olsrd/olsrd.xml index 6623c31f..8023f818 100644 --- a/config/olsrd/olsrd.xml +++ b/config/olsrd/olsrd.xml @@ -9,7 +9,7 @@ /* olsrd.xml part of pfSense (https://www.pfSense.org/) - Copyright (C) 2012 Ermal Luçi + Copyright (C) 2006 Scott Ullrich Copyright (C) 2015 ESF, LLC All rights reserved. */ @@ -42,37 +42,58 @@ ]]> olsrd - 1.0.3 - OLSRD + 1.0.4 + Services: OLSRD Settings /usr/local/pkg/olsrd.inc OLSRD
Services
olsrd.xml + /pkg_edit.php?xml=olsrd.xml
- OLSRD - /usr/local/sbin/olsrd -f /var/etc/olsr.conf + olsrd + olsrd.sh + olsrd + Optimized Link State Routing Protocol Daemon - - - OLSRD Settings - /pkg_edit.php?xml=olsrd.xml&id=0 - - - /usr/local/pkg/ https://packages.pfsense.org/packages/config/olsrd/olsrd.inc - ['installedpackages']['OLSRD']['config'] + + /etc/inc/priv/ + https://packages.pfsense.org/packages/config/olsrd/olsrd.priv.inc + + + Service Settings + listtopic + Enable OLSR enable Enables the dynamic mesh linking daemon. checkbox + + Enable Secure Mode + enabledsecure + Enables the secure mode. + checkbox + + + Key + securekey + Paste the secure key information here. + textarea + 5 + 50 + + + General Settings + listtopic + Link Quality Level enablelqe @@ -83,6 +104,7 @@ + 2 Interfaces @@ -98,6 +120,7 @@ enablehttpinfo Enables the OLSR stats web server. checkbox + port,allowedhttpinfohost,allowedhttpinfosubnet HTTPInfo Port @@ -106,65 +129,67 @@ input - Allowed host(s) + Allowed Host(s) IP Address/Subnet allowedhttpinfohost - Hosts that are allowed to access the HTTPInfo web service. + IP(s) that are allowed to access the HTTPInfo web service. input - Allowed host(s) subnet + Allowed Host(s) Netmask allowedhttpinfosubnet - Enter the subnet mask in form 255.255.255.0 + Enter the subnet mask in long form (e.g. 255.255.255.0) input - Enable Dynamic Gateway - enabledyngw - Enables the OLSR Dynamic Gateways feature. - checkbox - - - Announce self as Dynamic Gateway + Announce Self as Dynamic Gateway enableannounce Enables the OLSR Dynamic Gateways Announcing feature. checkbox - Announce Dynamic local route + Announce Dynamic Local Route announcedynamicroute Enter the IP/Netmask. textarea 3 50 + + + + php_deinstall_olsrd(); + setup_wireless_olsr($if); + + validate_form_olsrd($_POST, $input_errors); + -- cgit v1.2.3