1
|
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
<packagegui>
|
3
|
<copyright>
|
4
|
/* $Id$ */
|
5
|
/*
|
6
|
part of pfSense (http://www.pfsense.org/)
|
7
|
|
8
|
Copyright (C) 2006 Bill Marquette - bill.marquette@gmail.com.
|
9
|
All rights reserved.
|
10
|
|
11
|
Redistribution and use in source and binary forms, with or without
|
12
|
modification, are permitted provided that the following conditions are met:
|
13
|
|
14
|
1. Redistributions of source code must retain the above copyright notice,
|
15
|
this list of conditions and the following disclaimer.
|
16
|
|
17
|
2. Redistributions in binary form must reproduce the above copyright
|
18
|
notice, this list of conditions and the following disclaimer in the
|
19
|
documentation and/or other materials provided with the distribution.
|
20
|
|
21
|
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
22
|
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
23
|
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
24
|
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
25
|
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
26
|
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
27
|
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
28
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
29
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
30
|
POSSIBILITY OF SUCH DAMAGE.
|
31
|
*/
|
32
|
</copyright>
|
33
|
<name>routed</name>
|
34
|
<version>1.1</version>
|
35
|
<title>Services: RIP</title>
|
36
|
<include_file>routed.inc</include_file>
|
37
|
|
38
|
<additional_files_needed>
|
39
|
<item>http://www.pfsense.org/packages/config/routed/routed.inc</item>
|
40
|
</additional_files_needed>
|
41
|
|
42
|
<!-- Menu is where this packages menu will appear -->
|
43
|
<menu>
|
44
|
<name>RIP</name>
|
45
|
<section>Services</section>
|
46
|
<configfile>routed.xml</configfile>
|
47
|
<url>pkg_edit.php?xml=routed.xml&id=0</url>
|
48
|
</menu>
|
49
|
<tabs>
|
50
|
<tab>
|
51
|
<text>ROUTED Settings</text>
|
52
|
<url>/pkg_edit.php?xml=routed.xml</url>
|
53
|
<active/>
|
54
|
</tab>
|
55
|
</tabs>
|
56
|
<!-- configpath gets expanded out automatically and config items will be
|
57
|
stored in that location -->
|
58
|
<configpath>['installedpackages']['routed']['config']</configpath>
|
59
|
<!-- fields gets invoked when the user adds or edits a item. the following items
|
60
|
will be parsed and rendered for the user as a gui with input, and selectboxes. -->
|
61
|
<fields>
|
62
|
<field>
|
63
|
<fielddescr>Enable RIP</fielddescr>
|
64
|
<fieldname>enable</fieldname>
|
65
|
<description>Enables the Routing Information Protocol daemon</description>
|
66
|
<type>checkbox</type>
|
67
|
<enablefields>iface_array[],ripversion,passwd,enable_no_ag,enable_no_super_ag</enablefields>
|
68
|
</field>
|
69
|
<field>
|
70
|
<fielddescr>Interfaces</fielddescr>
|
71
|
<fieldname>iface_array</fieldname>
|
72
|
<value>lan</value>
|
73
|
<multiple>true</multiple>
|
74
|
<size>3</size>
|
75
|
<type>interfaces_selection</type>
|
76
|
<description>Select the interfaces that RIP will bind to. You can use the CTRL or COMMAND key to select multiple interfaces.</description>
|
77
|
<required />
|
78
|
</field>
|
79
|
<field>
|
80
|
<fielddescr>RIP Version</fielddescr>
|
81
|
<fieldname>ripversion</fieldname>
|
82
|
<type>select</type>
|
83
|
<default_value>2</default_value>
|
84
|
<options>
|
85
|
<option><name>RIP Version 1</name><value>1</value></option>
|
86
|
<option><name>RIP Version 2</name><value>2</value></option>
|
87
|
</options>
|
88
|
<typehint>Select which RIP version the daemon will listen/advertise using.</typehint>
|
89
|
<required />
|
90
|
</field>
|
91
|
<field>
|
92
|
<fielddescr>RIPv2 password</fielddescr>
|
93
|
<fieldname>passwd</fieldname>
|
94
|
<description>Specify a RIPv2 password. This password will be sent
|
95
|
in the clear on all RIPv2 responses received and sent.
|
96
|
</description>
|
97
|
<type>input</type>
|
98
|
</field>
|
99
|
<field>
|
100
|
<fielddescr>no_ag</fielddescr>
|
101
|
<fieldname>enable_no_ag</fieldname>
|
102
|
<description>turns off aggregation of subnets in RIPv1 and RIPv2 responses.</description>
|
103
|
<type>checkbox</type>
|
104
|
</field>
|
105
|
<field>
|
106
|
<fielddescr>no_super_ag</fielddescr>
|
107
|
<fieldname>enable_no_super_ag</fieldname>
|
108
|
<description>turns off aggregation of networks into supernets in RIPv2 responses.</description>
|
109
|
<type>checkbox</type>
|
110
|
</field>
|
111
|
</fields>
|
112
|
<aftersaveredirect>pkg_edit.php?xml=routed.xml&id=0</aftersaveredirect>
|
113
|
<custom_php_command_before_form>
|
114
|
</custom_php_command_before_form>
|
115
|
<custom_delete_php_command>
|
116
|
</custom_delete_php_command>
|
117
|
<custom_php_resync_config_command>
|
118
|
conf_mount_rw();
|
119
|
setup_routed();
|
120
|
conf_mount_ro();
|
121
|
</custom_php_resync_config_command>
|
122
|
<custom_php_install_command>
|
123
|
</custom_php_install_command>
|
124
|
<custom_php_deinstall_command>
|
125
|
</custom_php_deinstall_command>
|
126
|
</packagegui>
|