Project

General

Profile

Download (4.65 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
	<savetext>Change</savetext>
7
	<include_file>/usr/local/pkg/miniupnpd.inc</include_file>
8
	<menu>
9
		<name>UPnP &amp; NAT-PMP</name>
10
		<tooltiptext>Set UPnP &amp; NAT-PMP settings such as interfaces to listen on.</tooltiptext>
11
		<section>Services</section>
12
		<url>/pkg_edit.php?xml=miniupnpd.xml&amp;id=0</url>
13
	</menu>
14
	<additional_files_needed>
15
		<item>https://packages.pfsense.org/packages/config/miniupnpd/miniupnpd.inc</item>
16
		<prefix>/usr/local/pkg/</prefix>
17
		<chmod>0755</chmod>
18
	</additional_files_needed>
19
	<additional_files_needed>
20
		<item>https://packages.pfsense.org/packages/config/miniupnpd/status_upnp.php</item>
21
		<prefix>/usr/local/www/</prefix>
22
		<chmod>0755</chmod>
23
	</additional_files_needed>
24
	<additional_files_needed>
25
		<prefix>/usr/local/sbin/</prefix>
26
		<chmod>0755</chmod>
27
		<item>https://packages.pfsense.org/packages/config/miniupnpd/sbin/miniupnpd</item>
28
	</additional_files_needed>
29
	<service>
30
		<name>miniupnpd</name>
31
		<rcfile>miniupnpd.sh</rcfile>
32
		<executable>miniupnpd</executable>
33
	</service>
34
	<fields>
35
		<field>
36
			<name>UPnP &amp; NAT-PMP Settings</name>
37
			<type>listtopic</type>
38
			<enablefields>enable_upnp,enable_natpmp,ext_iface,iface_array,download,upload,overridewanip,upnpqueue,logpackets,sysuptime,permdefault</enablefields>
39
		</field>
40
		<field>
41
			<fielddescr>Enable UPnP &amp; NAT-PMP</fielddescr>
42
			<fieldname>enable</fieldname>
43
			<type>checkbox</type>
44
			<enablefields>enable_upnp,enable_natpmp,ext_iface,iface_array,download,upload,overridewanip,upnpqueue,logpackets,sysuptime,permdefault</enablefields>
45
		</field>
46
		<field>
47
			<fielddescr>Allow UPnP Port Mapping</fielddescr>
48
			<fieldname>enable_upnp</fieldname>
49
			<type>checkbox</type>
50
			<description>This protocol is often used by Microsoft-compatible systems.</description>
51
		</field>
52
		<field>
53
			<fielddescr>Allow NAT-PMP Port Mapping</fielddescr>
54
			<fieldname>enable_natpmp</fieldname>
55
			<type>checkbox</type>
56
			<description>This protocol is often used by Apple-compatible systems.</description>
57
		</field>
58
		<field>
59
			<fielddescr>External Interface (generally WAN)</fielddescr>
60
			<fieldname>ext_iface</fieldname>
61
			<default_value>wan</default_value>
62
			<type>interfaces_selection</type>
63
			<hideinterfaceregex>loopback</hideinterfaceregex>
64
			<description>Select only your primary WAN interface (interface with your default route). Only one interface is allowed here, not multiple.</description>
65
			<required/>
66
		</field>
67
		<field>
68
			<fielddescr>Interfaces (generally LAN)</fielddescr>
69
			<fieldname>iface_array</fieldname>
70
			<default_value>lan</default_value>
71
			<type>interfaces_selection</type>
72
			<description>You can use the CTRL or COMMAND key to select multiple interfaces.</description>
73
			<required/>
74
			<multiple/>
75
		</field>
76
		<field>
77
			<fielddescr>Maximum Download Speed (Kbits/second)</fielddescr>
78
			<fieldname>download</fieldname>
79
			<type>input</type>
80
		</field>
81
		<field>
82
			<fielddescr>Maximum Upload Speed (Kbits/second)</fielddescr>
83
			<fieldname>upload</fieldname>
84
			<type>input</type>
85
		</field>
86
		<field>
87
			<fielddescr>Override WAN address</fielddescr>
88
			<fieldname>overridewanip</fieldname>
89
			<type>input</type>
90
		</field>
91
		<field>
92
			<fielddescr>Traffic Shaping Queue</fielddescr>
93
			<fieldname>upnpqueue</fieldname>
94
			<type>input</type>
95
		</field>
96
		<field>
97
			<fielddescr>Log packets handled by UPnP &amp; NAT-PMP rules?</fielddescr>
98
			<fieldname>logpackets</fieldname>
99
			<type>checkbox</type>
100
		</field>
101
		<field>
102
			<fielddescr>Use system uptime instead of UPnP &amp; NAT-PMP service uptime?</fielddescr>
103
			<fieldname>sysuptime</fieldname>
104
			<type>checkbox</type>
105
		</field>
106
		<field>
107
			<fielddescr>By default deny access to UPnP &amp; NAT-PMP?</fielddescr>
108
			<fieldname>permdefault</fieldname>
109
			<type>checkbox</type>
110
		</field>
111
		<field>
112
			<fielddescr>User specified permissions</fielddescr>
113
			<fieldname>none</fieldname>
114
			<description>Format: [allow or deny] [ext port or range] [int ipaddr or ipaddr/CIDR] [int port or range]
115
			&lt;br /&gt;Example: allow 1024-65535 192.168.0.0/24 1024-65535</description>
116
			<type>rowhelper</type>
117
			<rowhelper>
118
				<rowhelperfield>
119
					<fieldname>permuser</fieldname>
120
					<type>input</type>
121
					<size>60</size>
122
				</rowhelperfield>
123
			</rowhelper>
124
		</field>
125
	</fields>
126
	<custom_php_command_before_form>
127
		before_form_miniupnpd($pkg);
128
	</custom_php_command_before_form>
129
	<custom_php_validation_command>
130
		validate_form_miniupnpd($_POST, $input_errors);
131
	</custom_php_validation_command>
132
	<custom_php_resync_config_command>
133
		sync_package_miniupnpd();
134
	</custom_php_resync_config_command>
135
</packagegui>
(2-2/2)