Project

General

Profile

Download (5.41 KB) Statistics
| Branch: | Tag: | Revision:
1
<?xml version="1.0" encoding="utf-8" ?>
2
<packagegui>
3
	<title>Services/UPnP &amp; NAT-PMP</title>
4
	<name>miniupnpd</name>
5
	<version>20100712</version>
6
	<include_file>/usr/local/pkg/miniupnpd.inc</include_file>
7
	<menu>
8
		<name>UPnP &amp; NAT-PMP</name>
9
		<tooltiptext>Set UPnP &amp; NAT-PMP settings such as interfaces to listen on.</tooltiptext>
10
		<section>Services</section>
11
		<url>/pkg_edit.php?xml=miniupnpd.xml&amp;id=0</url>
12
	</menu>
13
	<service>
14
		<name>miniupnpd</name>
15
		<rcfile>miniupnpd.sh</rcfile>
16
		<executable>miniupnpd</executable>
17
	</service>
18
	<fields>
19
		<field>
20
			<name>UPnP &amp; NAT-PMP Settings</name>
21
			<type>listtopic</type>
22
			<enablefields>enable_upnp,enable_natpmp,ext_iface,iface_array,download,upload,overridewanip,upnpqueue,logpackets,sysuptime,permdefault</enablefields>
23
		</field>
24
		<field>
25
			<fielddescr>Enable</fielddescr>
26
			<fieldname>enable</fieldname>
27
			<type>checkbox</type>
28
			<enablefields>enable_upnp,enable_natpmp,ext_iface,iface_array,download,upload,overridewanip,upnpqueue,logpackets,sysuptime,permdefault</enablefields>
29
			<description>Enable UPnP &amp; NAT-PMP</description>
30
		</field>
31
		<field>
32
			<fielddescr>UPnP Port Mapping</fielddescr>
33
			<fieldname>enable_upnp</fieldname>
34
			<type>checkbox</type>
35
			<description>Allow UPnP Port Mapping</description>
36
			<sethelp>This protocol is often used by Microsoft-compatible systems.</sethelp>
37
		</field>
38
		<field>
39
			<fielddescr>NAT-PMP Port Mapping</fielddescr>
40
			<fieldname>enable_natpmp</fieldname>
41
			<type>checkbox</type>
42
			<description>Allow NAT-PMP Port Mapping</description>
43
			<sethelp>This protocol is often used by Apple-compatible systems.</sethelp>
44
		</field>
45
		<field>
46
			<fielddescr>External Interface</fielddescr>
47
			<fieldname>ext_iface</fieldname>
48
			<default_value>wan</default_value>
49
			<type>interfaces_selection</type>
50
			<hideinterfaceregex>loopback</hideinterfaceregex>
51
			<description>Select only the primary WAN interface (interface with the default gateway). Only one interface may be chosen.</description>
52
			<required/>
53
		</field>
54
		<field>
55
			<fielddescr>Interfaces</fielddescr>
56
			<fieldname>iface_array</fieldname>
57
			<default_value>lan</default_value>
58
			<type>interfaces_selection</type>
59
			<description>Select the internal interfaces, such as LAN, where UPnP/NAT-PMP clients reside. Use the CTRL or COMMAND key to select multiple interfaces.</description>
60
			<required/>
61
			<multiple/>
62
		</field>
63
		<field>
64
			<fielddescr>Download Speed</fielddescr>
65
			<fieldname>download</fieldname>
66
			<description>Set the Maximum Download Speed in Kbits/second.</description>
67
			<type>input</type>
68
		</field>
69
		<field>
70
			<fielddescr>Upload Speed</fielddescr>
71
			<fieldname>upload</fieldname>
72
			<description>Set the Maximum Upload Speed in Kbits/second.</description>
73
			<type>input</type>
74
		</field>
75
		<field>
76
			<fielddescr>Override WAN address</fielddescr>
77
			<fieldname>overridewanip</fieldname>
78
			<description>Use an alternate WAN address to accept inbound connections, such as an IP Alias or CARP Virtual IP address.</description>
79
			<type>input</type>
80
		</field>
81
		<field>
82
			<fielddescr>Traffic Shaping</fielddescr>
83
			<fieldname>upnpqueue</fieldname>
84
			<description>Enter the ALTQ traffic shaping queue in which the connections should be placed.</description>
85
			<type>input</type>
86
		</field>
87
		<field>
88
			<fielddescr>Log packets</fielddescr>
89
			<fieldname>logpackets</fieldname>
90
			<type>checkbox</type>
91
			<description>Log packets handled by UPnP &amp; NAT-PMP rules.</description>
92
		</field>
93
		<field>
94
			<fielddescr>Uptime</fielddescr>
95
			<fieldname>sysuptime</fieldname>
96
			<type>checkbox</type>
97
			<description>Use system uptime instead of UPnP &amp; NAT-PMP service uptime.</description>
98
		</field>
99
		<field>
100
			<fielddescr>Default Deny</fielddescr>
101
			<fieldname>permdefault</fieldname>
102
			<type>checkbox</type>
103
			<description>Deny access to UPnP &amp; NAT-PMP by default.</description>
104
		</field>
105
		<field>
106
			<name>UPnP Access Control Lists</name>
107
			<type>listtopic</type>
108
		</field>
109
		<field>
110
			<name>ACL Help</name>
111
			<type>info</type>
112
			<description>
113
			These entries control access to the UPnP service. Client systems may be granted or denied access based on several criteria.
114
			&lt;br /&gt;&lt;br /&gt;
115
			Format: [allow or deny] [ext port or range] [int ipaddr or ipaddr/CIDR] [int port or range]
116
			&lt;br /&gt;Example: allow 1024-65535 192.168.0.0/24 1024-65535</description>
117
		</field>
118
		<field>
119
			<fielddescr>ACL Entries</fielddescr>
120
			<fieldname>none</fieldname>
121
			<type>rowhelper</type>
122
			<rowhelper>
123
				<rowhelperfield>
124
					<fieldname>permuser</fieldname>
125
					<type>input</type>
126
					<size>60</size>
127
				</rowhelperfield>
128
			</rowhelper>
129
		</field>
130
		<field>
131
			<fielddescr>Custom presentation URL</fielddescr>
132
			<fieldname>presentationurl</fieldname>
133
			<type>input</type>
134
			<description>If left blank the default value of the WebGUI of this firewall will be used.</description>
135
		</field>
136
		<field>
137
			<fielddescr>Custom model number</fielddescr>
138
			<fieldname>modelnumber</fieldname>
139
			<type>input</type>
140
			<description>If left blank the default value of the firmware version of pfSense will be used.</description>
141
		</field>
142
	</fields>
143
	<custom_php_command_before_form>
144
		before_form_miniupnpd($pkg);
145
	</custom_php_command_before_form>
146
	<custom_php_validation_command>
147
		validate_form_miniupnpd($_POST, $input_errors);
148
	</custom_php_validation_command>
149
	<custom_php_resync_config_command>
150
		sync_package_miniupnpd();
151
	</custom_php_resync_config_command>
152
</packagegui>
(2-2/2)