PDA

Bekijk de volledige versie : How to open up a port?



Ehsan
28-07-2008, 13:41
I have installed Oleg's firmware on my Asus WL-500g Premium router. I've also installed ctorrent and YODCTCS Web Gui for administrating the torrents. The web gui uses port 18000 for access. This works fine when I sit at home but I would like to be able to access the web gui externally so I can start and administrate downloads when I'm not at home. So I figured I need to open up port 18000 for external traffic.

Now how can I accomplish this?

Any ideas? :)

lordbone
29-07-2008, 15:00
Try to create this rule with iptables:



iptables -I INPUT -m tcp -p tcp --dport 18000 -j ACCEPT


eventually put it in /usr/local/sbin/post-firewall so it will be reinitialised in case the router is restarted, like this:


echo "iptables -I INPUT -m tcp -p tcp --dport 18000 -j ACCEPT" >> /usr/local/sbin/post-firewall


..and don`t forget to save it:



flashfs save && flashfs commit && flashfs enable

to save it.

Or try


iptables -A INPUT -p tcp --dport 18000 -j ACCEPT


It`s about the same thing.

Cheers.