配置MiniUPnPd(支持UPnP/NAT-PMP协议)
主要有两个地方需要注意:
1. 修改netfilter/iptables_init.sh文件,指定有效的网卡
|
1
2
|
#change this parameters :EXTIF=eth0 |
2. 编译和安装成功后,修改配置文件/etc/miniupnpd/miniupnpd.conf,指定网卡和监听的IP地址
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# WAN network interfaceext_ifname=eth1#ext_ifname=xl1# if the WAN interface has several IP addresses, you# can specify the one to use below#ext_ip=# LAN network interfaces IPs / networks# there can be multiple listening ips for SSDP traffic.# should be under the form nnn.nnn.nnn.nnn/nn# It can also be the network interface name (ie "eth0")# It if mandatory to use the network interface name to enable IPv6# HTTP is available on all interfaces.# When MULTIPLE_EXTERNAL_IP is enabled, the external ip# address associated with the subnet follows. for example :# listening_ip=192.168.0.1/24 88.22.44.13#listening_ip=192.168.0.1/24#listening_ip=192.168.10.109/24listening_ip=10.42.43.1/24#listening_ip=eth0# port for HTTP (descriptions and SOAP) traffic. set 0 for autoselect.port=0 |
最后运行下面命令就OK啦!
|
1
|
/etc/init.d/miniupnpd start
|
浙公网安备 33010602011771号