PDA

Bekijk de volledige versie : Port Forwarding Please!!!!



ferran9
02-06-2007, 18:47
Hello, does anyone know how to do port forwarding with this router? Is there a step by step manual? I tried everything I know and still no luck.

modelamark
09-06-2007, 21:13
I am also looking foor that. I guess it has something to do with iptables

qz3fwd
11-06-2007, 23:18
http://portforward.com/english/routers/port_forwarding/Asus/WL-700GE/default.htm

kfurge
13-06-2007, 02:57
http://portforward.com/english/routers/port_forwarding/Asus/WL-700GE/default.htm

That works OK if your're forwarding to a port on another machine on the network. It won't work if you're forwarding to the router itself. In the case of forwarding locally, you'll need to manally add an iptables input rule to accept the incoming packet.

I added this little bit of magic to my rc.local script to accept ssh logins:

#!/opt/bin/bash

lines=`/usr/sbin/iptables --list | /opt/bin/grep dpt:ssh | /opt/bin/wc -l`

if test $lines -eq "1"; then
iptables -I INPUT -p tcp --dport 22 -j ACCEPT
fi

- K.C.