[net]: miniupnpd: Added enable_upnp option and port option to default and example...
[packages.git] / net / miniupnpd / files / upnpd.config.example
1 config upnpd config
2         option enable_natpmp    1
3         option enable_upnp      1
4         option secure_mode      1
5         option log_output       0
6         option download         1024
7         option upload           512
8         option external_iface   wan
9         option internal_iface   lan
10         option port             5000
11
12 config perm_rule
13        option action            deny
14        option ext_ports         0-65535
15        option int_addr          0.0.0.0/0
16        option int_ports         0-65535
17
18 # Allow rule
19 # Allow incoming on a port in the range 1024 to 65535 to be redirected to
20 # any 192.168.1.0/24 subnet host (depending on secure_mod) on a port in the
21 # range 1024 to 65535
22 # config perm_rule
23 #       option action allow
24 #       option ext_ports 1024-65535
25 #       option int_addr 192.168.1.0/24
26 #       option int_ports 1024-65535
27
28 # Single port
29 # Allow incoming on 12233 to be redirected to 192.168.1.24 on a port in the
30 # range 12233 to 12345 (inclusive)
31 # config perm_rule
32 #       option action allow
33 #       option ext_ports 12233
34 #       option int_addr 192.168.1.24/24
35 #       option int_ports 12233-12345
36 #
37
38 # Deny rule (recommended at end)
39 # Deny any redirection that matchs:
40 #  incoming on port 0-65535, redirected to any port numbered 0-65535 on any ip
41 # config perm_rule
42 #       option action deny
43 #       option ext_ports 0-65535
44 #       option int_addr 0.0.0.0/0
45 #       option int_ports 0-65535