Vyatta 6.1 UPNP

Изтегляне на софтуера

sudo wget http://packages.vyatta.com/debian/pool/main/libu/libupnp4/libupnp4_1.8.0~svn20100507-1_i386.deb
sudo wget http://packages.vyatta.com/debian/pool/main/l/linux-igd/linux-igd_1.0+cvs20070630-3_i386.deb
sudo wget http://ci.managedit.ie/view/Vyatta/job/vyatta-upnp.master/lastSuccessfulBuild/artifact/vyatta-upnp_0.2_all.deb

Инсталиране

sudo dpkg -i libupnp4_1.8.0~svn20100507-1_i386.deb
sudo dpkg -i linux-igd_1.0+cvs20070630-3_i386.deb
sudo dpkg -i vyatta-upnp_0.2_all.deb

Конфигуриране

set service upnp listen-on eth1 outbound-interface eth0

Проверка в vbash

vyatta@home# show service upnp 
 listen-on eth1 {
     outbound-interface eth0
 }
[edit]

Проверка в iptables

vyatta@home# sudo iptables -nL -t nat
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         
DNAT       udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:65516 to:192.168.88.129:65516 
DNAT       udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:50320 to:192.168.88.129:50320 
DNAT       tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:50320 to:192.168.88.129:50320 
DNAT       tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:35785 to:192.168.88.134:35785 
DNAT       tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:3474 to:192.168.88.7:3474 
DNAT       udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:3474 to:192.168.88.7:3474 
DNAT       udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:64898 to:192.168.88.138:64898 
DNAT       tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:64898 to:192.168.88.138:64898 
VYATTA_PRE_DNAT_HOOK  all  --  0.0.0.0/0            0.0.0.0/0

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This Post Has One Comment