PDA

Bekijk de volledige versie : Port forwarding doe not work?



Rob ter Veer
02-05-2004, 12:34
Hi, i'm trying to forward a couple of ports to my internal server with the customized firmware. I use the Firmware v1.7.5.6 CR2.1 [Oleg]. Now the service which needs these ports is not getting any traffic on the ports.

When I log in to the 500g with telnet and do a 'iptables -L' i don't see any forwards there also?



Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:21 flags:SYN,RST,ACK/SYN
ACCEPT tcp -- anywhere anywhere tcp dpt:22 flags:SYN,RST,ACK/SYN

Chain FORWARD (policy ACCEPT)
target prot opt source destination
DROP udp -- anywhere anywhere udp dpt:53
DROP tcp -- anywhere anywhere tcp dpt:53
DROP udp -- anywhere anywhere udp spt:53
DROP tcp -- anywhere anywhere tcp spt:53

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


Anyone an idea?

Rob ter Veer
03-05-2004, 15:02
Antiloop has figured it out.. But missed this posting I guess.. On the other forum (GOT) where antiloop has answered me I'm banned :eek: so I'll thank you here antiloop... Here's the answer:

Login to the 500g with telnet and instead of iptables -L do:



iptables -L -v -t nat


And tadaaa! There's the forwards I was looking for.. Thanks antiloop..

Antiloop
03-05-2004, 15:37
thanks to Oleg for that command, as i've discussed this issue earlier today with him.