Portweiterleitung

Post Reply
Message
Author
jemand

Portweiterleitung

#1 Post by jemand »

Versuche hiermit eine Portweiterleitung von 8888 auf 80 an internen rechner, aber diese funktioniert nicht, warum??


iptables -I FORWARD -d 192.168.1.19 -p tcp --dport 80 -j ACCEPT
iptables -t nat -I PREROUTING -p tcp --dport 8888 -i ppp0 -j DNAT --to-destination 192.168.1.19:80

User avatar
Hans Solo
prolinux-forum-admin
Posts: 601
Joined: 20. Apr 2004 12:19
Location: AT
Contact:

#2 Post by Hans Solo »

hi

meine regeln für so etwas sehen folgend aus:

iptables -A FORWARD -i eth0 -m state --state NEW -p tcp -d 192.168.1.51 --dport 5060 -j ACCEPT
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 5060 -j DNAT --to-destination 192.168.1.51

mfg
arno
[root@host]# cd /pub
[root@host]# more beer

Post Reply