OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / user / miniupnpd / miniupnpd.conf
1 # WAN network interface
2 #ext_ifname=eth0
3 ext_ifname=xl1
4 # if the WAN interface has several IP addresses, you
5 # can specify the one to use below
6 #ext_ip=
7
8 # LAN network interfaces IPs / networks
9 # there can be multiple listening ips for SSDP traffic.
10 # should be under the form nnn.nnn.nnn.nnn/nn
11 # HTTP is available on all interfaces
12 listening_ip=192.168.0.1/24
13 listening_ip=192.168.1.1/24
14 #listening_ip=
15 # port for HTTP (descriptions and SOAP) traffic
16 port=5555
17
18 # enable NAT-PMP support (default is no)
19 enable_natpmp=yes
20
21 # enable UPNP support (default is yes)
22 enable_upnp=yes
23
24 # lease file location
25 #lease_file=/var/log/upnp.leases
26
27 # bitrates reported by daemon in bits per second
28 bitrate_up=1000000
29 bitrate_down=10000000
30
31 # "secure" mode : UPnP client are allowed to add mappings only
32 # to their IP
33 secure_mode=yes
34
35 # default presentation url is http address on port 80
36 #presentation_url=http://www.mylan/index.php
37
38 # report system uptime instead of daemon uptime
39 system_uptime=yes
40
41 # notify interval in seconds. default is 30 seconds.
42 #notify_interval=240
43 notify_interval=60
44
45 # unused rules cleaning.
46 # never remove any rule before this threshold for the number
47 # of redirections is exceeded. default to 20
48 #clean_ruleset_threshold=10
49 # clean process work interval in seconds. default to 0 (disabled).
50 # a 600 seconds (10 minutes) interval makes sense
51 clean_ruleset_interval=600
52
53 # log packets in pf
54 #packet_log=no
55
56 # ALTQ queue in pf
57 # filter rules must be used for this to be used.
58 # compile with PF_ENABLE_FILTER_RULES (see config.h file)
59 #queue=queue_name1
60
61 # tag name in pf
62 #tag=tag_name1
63
64 # make filter rules in pf quick or not. default is yes
65 # active when compiled with PF_ENABLE_FILTER_RULES (see config.h file)
66 #quickrules=no
67
68 # uuid : generate your own with "make genuuid"
69 uuid=fc4ec57e-b051-11db-88f8-0060085db3f6
70
71 # serial and model number the daemon will report to clients
72 # in its XML description
73 serial=12345678
74 model_number=1
75
76 # UPnP permission rules
77 # (allow|deny) (external port range) ip/mask (internal port range)
78 # A port range is <min port>-<max port> or <port> if there is only
79 # one port in the range.
80 # ip/mask format must be nn.nn.nn.nn/nn
81 # it is advised to only allow redirection of port above 1024
82 # and to finish the rule set with "deny 0-65535 0.0.0.0/0 0-65535"
83 allow 1024-65535 192.168.0.0/24 1024-65535
84 allow 1024-65535 192.168.1.0/24 1024-65535
85 allow 1024-65535 192.168.0.0/23 22
86 allow 12345 192.168.7.113/32 54321
87 deny 0-65535 0.0.0.0/0 0-65535
88