summaryrefslogtreecommitdiffstats
path: root/usr/local/pkg/miniupnpd.xml
blob: db008b70dc3c591ceef0a0aa27c16209079ff7e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="utf-8" ?>
<packagegui>
	<title>Services: MiniUPnPd</title>
	<name>miniupnpd</name>
	<version>20070208</version>
	<savetext>Change</savetext>
	<include_file>/usr/local/pkg/miniupnpd.inc</include_file>
	<aftersaveredirect>status_upnp.php</aftersaveredirect>
	<menu>
		<name>MiniUPnPd</name>
		<tooltiptext>Set miniupnpd settings such as interfaces to listen on.</tooltiptext>
		<section>Services</section>
		<url>/status_upnp.php</url>
	</menu>
	<additional_files_needed>
		<item>http://www.pfsense.org/packages/config/miniupnpd/miniupnpd.inc</item>
	    <prefix>/usr/local/pkg/</prefix>
	    <chmod>0755</chmod>
	</additional_files_needed>
	<additional_files_needed>
		<item>http://www.pfsense.org/packages/config/miniupnpd/status_upnp.php</item>
	    <prefix>/usr/local/www/</prefix>
	    <chmod>0755</chmod>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/sbin/</prefix>
		<chmod>0755</chmod>
		<item>http://www.pfsense.com/packages/config/miniupnpd/sbin/miniupnpd</item>
	</additional_files_needed>
	<service>
		<name>miniupnpd</name>
		<rcfile>miniupnpd.sh</rcfile>
		<executable>miniupnpd</executable>
	</service>
	<tabs>
		<tab>
			<text>UPnP Status</text>
			<url>status_upnp.php</url>
		</tab>
		<tab>
			<text>MiniUPnPd Settings</text>
			<url>/pkg_edit.php?xml=miniupnpd.xml&amp;id=0</url>
			<active/>
		</tab>
	</tabs>
	<fields>
		<field>
			<fielddescr>Enable MiniUPnPd</fielddescr>
			<fieldname>enable</fieldname>
			<type>checkbox</type>
		</field>			
		<field>
			<fielddescr>Interfaces (generally LAN)</fielddescr>
			<fieldname>iface_array</fieldname>
			<value>lan</value>
			<multiple>true</multiple>
			<size>3</size>
			<type>interfaces_selection</type>
			<description>You can use the CTRL or COMMAND key to select multiple interfaces.</description>
			<required/>
		</field>
		<field>
			<fielddescr>Maximum Download Speed (Kbits/second)</fielddescr>
			<fieldname>download</fieldname>
			<type>input</type>
		</field>
		<field>
			<fielddescr>Maximum Upload Speed (Kbits/second)</fielddescr>
			<fieldname>upload</fieldname>
			<type>input</type>
		</field>
		<field>
			<fielddescr>Override WAN address</fielddescr>
			<fieldname>overridewanip</fieldname>
			<type>input</type>
		</field>
		<field>
			<fielddescr>Log packets handled by miniupnpd rules?</fielddescr>
			<fieldname>logpackets</fieldname>
			<type>checkbox</type>
		</field>
		<field>
			<fielddescr>Use system uptime instead of miniupnpd uptime?</fielddescr>
			<fieldname>sysuptime</fieldname>
			<type>checkbox</type>
		</field>
		<field>
			<fielddescr>By default deny access to miniupnpd?</fielddescr>
			<fieldname>permdefault</fieldname>
			<type>checkbox</type>
		</field>
		<field>
			<fielddescr>User specified persmissions 1</fielddescr>
			<fieldname>permuser1</fieldname>
			<description>Format: [allow or deny] [ext port or range] [int ipaddr or ipaddr/cdir] [int port or range]
			&lt;br /&gt;Example: allow 1024-65535 192.168.0.0/24 1024-65535</description>
			<type>input</type>
			<size>60</size>
		</field>
		<field>
			<fielddescr>User specified persmissions 2</fielddescr>
			<fieldname>permuser2</fieldname>
			<description>Format: [allow or deny] [ext port or range] [int ipaddr or ipaddr/cdir] [int port or range]</description>
			<type>input</type>
			<size>60</size>
		</field>
		<field>
			<fielddescr>User specified persmissions 3</fielddescr>
			<fieldname>permuser3</fieldname>
			<description>Format: [allow or deny] [ext port or range] [int ipaddr or ipaddr/cdir] [int port or range]</description>
			<type>input</type>
			<size>60</size>
		</field>
		<field>
			<fielddescr>User specified persmissions 4</fielddescr>
			<fieldname>permuser4</fieldname>
			<description>Format: [allow or deny] [ext port or range] [int ipaddr or ipaddr/cdir] [int port or range]</description>
			<type>input</type>
			<size>60</size>
		</field>	
	</fields>
	<custom_php_command_before_form>
		before_form_miniupnpd(&amp;$pkg);
	</custom_php_command_before_form>
	<custom_php_validation_command>
		validate_form_miniupnpd($_POST, &amp;$input_errors);
	</custom_php_validation_command>
	<custom_php_resync_config_command>
		sync_package_miniupnpd();
	</custom_php_resync_config_command>
	<custom_php_install_command>
		sync_package_miniupnpd();
	</custom_php_install_command>
	<custom_php_deinstall_command>
		exec("rm -f /usr/local/etc/rc.d/miniupnpd*");
	</custom_php_deinstall_command>
</packagegui>
OpenPOWER on IntegriCloud