Problems with Portforwarding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there, i'm new on this list and i'm from germany, so excuse my english.
Well i have a problem, i have a router/gateway with Redhat 9 running on it
and i have 2 W2k Computers behind it. Now i want to forward some ports
to the Windows-Clients, i have tried some configurations but i still get the
"connection refused" error. Here the part of my script whitch belongs to the
port-forwarding.


---

$IPTABLES -t nat -A PREROUTING -j DNAT -p tcp -s 0/0 --dport 4711 -i ppp0 --to-destination 192.168.0.2:4711
$IPTABLES -A FORWARD --dport 4711 -j ACCEPT -m state --state NEW,ESTABLISHED,RELATED -p tcp -s 0/0 -d 192.168.0.2


$IPTABLES -t nat -A PREROUTING -j DNAT -p tcp -s 0/0 --dport 4712 -i ppp0 --to-destination 192.168.0.3:8080
$IPTABLES -A FORWARD --dport 8080 -j ACCEPT -m state --state NEW,ESTABLISHED,RELATED -p tcp -s 0/0 -d 192.168.0.3


---

don't know where the Problem is, so i hope you can help me,

thnx.


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux