1
|
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
<packagegui>
|
3
|
<name>olsrd</name>
|
4
|
<version>1.0</version>
|
5
|
<title>OLSRD</title>
|
6
|
<!-- Menu is where this packages menu will appear -->
|
7
|
<menu>
|
8
|
<name>OLSRD</name>
|
9
|
<section>Services</section>
|
10
|
<configfile>olsrd.xml</configfile>
|
11
|
</menu>
|
12
|
<service>
|
13
|
<name>OLSRD</name>
|
14
|
<rcfile>/usr/local/sbin/olsrd -f /var/etc/olsr.conf</rcfile>
|
15
|
</service>
|
16
|
<tabs>
|
17
|
<tab>
|
18
|
<text>OLSRD Settings</text>
|
19
|
<url>/pkg_edit.php?xml=olsrd.xml&id=0</url>
|
20
|
<active/>
|
21
|
</tab>
|
22
|
</tabs>
|
23
|
<additional_files_needed>
|
24
|
<prefix>/usr/local/www/</prefix>
|
25
|
<chmod>0755</chmod>
|
26
|
<item>http://www.pfsense.com/packages/config/OLSRD_rules.php</item>
|
27
|
</additional_files_needed>
|
28
|
<!-- configpath gets expanded out automatically and config items will be
|
29
|
stored in that location -->
|
30
|
<configpath>['installedpackages']['OLSRD']['config']</configpath>
|
31
|
<!-- fields gets invoked when the user adds or edits a item. the following items
|
32
|
will be parsed and rendered for the user as a gui with input, and selectboxes. -->
|
33
|
<fields>
|
34
|
<field>
|
35
|
<fielddescr>Enable OLSR</fielddescr>
|
36
|
<fieldname>enable</fieldname>
|
37
|
<description>Enables the dynamic mesh linking daemon</description>
|
38
|
<type>checkbox</type>
|
39
|
</field>
|
40
|
<field>
|
41
|
<fielddescr>Link Quality Level</fielddescr>
|
42
|
<fieldname>enablelqe</fieldname>
|
43
|
<type>select</type>
|
44
|
<size>1</size>
|
45
|
<options>
|
46
|
<option><value>2</value><name>2</name></option>
|
47
|
<option><value>0</value><name>0</name></option>
|
48
|
<option><value>1</value><name>1</name></option>
|
49
|
</options>
|
50
|
</field>
|
51
|
<field>
|
52
|
<fielddescr>Interfaces</fielddescr>
|
53
|
<fieldname>iface_array</fieldname>
|
54
|
<value>lan</value>
|
55
|
<multiple>true</multiple>
|
56
|
<size>3</size>
|
57
|
<type>interfaces_selection</type>
|
58
|
<description>Select the interfaces that OLSR will bind to. You can use the CTRL or COMMAND key to select multiple interfaces.</description>
|
59
|
</field>
|
60
|
<field>
|
61
|
<fielddescr>Enable HTTPInfo Plugin</fielddescr>
|
62
|
<fieldname>enablehttpinfo</fieldname>
|
63
|
<description>Enables the OLSR stats web server</description>
|
64
|
<type>checkbox</type>
|
65
|
</field>
|
66
|
<field>
|
67
|
<fielddescr>HTTPInfo Port</fielddescr>
|
68
|
<fieldname>port</fieldname>
|
69
|
<description>Port that HTTPInfo will listen on</description>
|
70
|
<type>input</type>
|
71
|
</field>
|
72
|
<field>
|
73
|
<fielddescr>Allowed host(s)</fielddescr>
|
74
|
<fieldname>allowedhttpinfohost</fieldname>
|
75
|
<description>Hosts that are allowed to access the HTTPInfo web service.</description>
|
76
|
<type>input</type>
|
77
|
</field>
|
78
|
<field>
|
79
|
<fielddescr>Allowed host(s) subnet</fielddescr>
|
80
|
<fieldname>allowedhttpinfosubnet</fieldname>
|
81
|
<description>Enter the subnet mask in form 255.255.255.0</description>
|
82
|
<type>input</type>
|
83
|
</field>
|
84
|
<field>
|
85
|
<fielddescr>Enable Dynamic Gateway</fielddescr>
|
86
|
<fieldname>enabledyngw</fieldname>
|
87
|
<description>Enables the OLSR Dynamic Gateways feature</description>
|
88
|
<type>checkbox</type>
|
89
|
</field>
|
90
|
<field>
|
91
|
<fielddescr>Announce self as Dynamic Gateway</fielddescr>
|
92
|
<fieldname>enableannounce</fieldname>
|
93
|
<description>Enables the OLSR Dynamic Gateways Announcing feature</description>
|
94
|
<type>checkbox</type>
|
95
|
</field>
|
96
|
<field>
|
97
|
<fielddescr>Announce Dynamic local route</fielddescr>
|
98
|
<fieldname>announcedynamicroute</fieldname>
|
99
|
<description>Enter the IP/Netmask</description>
|
100
|
<type>textarea</type>
|
101
|
<rows>3</rows>
|
102
|
<cols>50</cols>
|
103
|
</field>
|
104
|
<field>
|
105
|
<fielddescr>Ping</fielddescr>
|
106
|
<fieldname>ping</fieldname>
|
107
|
<description>Pings this host to ensure connectivity</description>
|
108
|
<type>input</type>
|
109
|
</field>
|
110
|
<field>
|
111
|
<fielddescr>Poll</fielddescr>
|
112
|
<fieldname>polling</fieldname>
|
113
|
<description>How often to look for a inet gw, in seconds.</description>
|
114
|
<type>input</type>
|
115
|
</field>
|
116
|
<field>
|
117
|
<fielddescr>Enable Secure Mode</fielddescr>
|
118
|
<fieldname>enabledsecure</fieldname>
|
119
|
<description>Enables the secure mode</description>
|
120
|
<type>checkbox</type>
|
121
|
</field>
|
122
|
<field>
|
123
|
<fielddescr>Key</fielddescr>
|
124
|
<fieldname>securekey</fieldname>
|
125
|
<description>Paste the secure key information here.</description>
|
126
|
<type>textarea</type>
|
127
|
<rows>5</rows>
|
128
|
<cols>50</cols>
|
129
|
</field>
|
130
|
</fields>
|
131
|
<custom_delete_php_command>
|
132
|
</custom_delete_php_command>
|
133
|
<custom_php_resync_config_command>
|
134
|
conf_mount_rw();
|
135
|
$fd = fopen("/usr/local/etc/olsrkey.txt","w");
|
136
|
fwrite($fd, $_POST['securekey']);
|
137
|
fclose($fd);
|
138
|
setup_wireless_olsr($if);
|
139
|
conf_mount_ro();
|
140
|
</custom_php_resync_config_command>
|
141
|
<custom_php_install_command>
|
142
|
</custom_php_install_command>
|
143
|
<custom_php_deinstall_command>
|
144
|
</custom_php_deinstall_command>
|
145
|
</packagegui>
|