OpenWrt Forum Archive

Topic: Firewall Woes (and ports not forwarding)

The content of this topic has been archived on 19 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I apologize if this was covered in another post somewhere else, but I'm not sure what else to try. 
I'm using White Russian 0.9 with webif^2.  I am trying to configure firewall rules via the interface under Network --> Firewall, however, it appears that all of the rules are being ignored by iptables (or at least the forward rules).  To test, I made a rule to forward all traffic on port 10022 to the IP address of my main server.  After running /etc/init.d/S35firewall, I then attempted to establish an ssh connection to the port from a computer outside my network which resulted in a time out.  Attempting to ssh over the standard port 22, got me to the router however. 

Doing an iptables --list | grep 10022 to see if the port showed up anywhere in the iptables rules, it returned nothing.

Does this mean that the Firewall GUI in webif^2 is broken and its time to break down and learn iptables command line syntax or is there something obvious I am missing?

Port forwarding is done in the nat tables. try
iptables -t nat -vL
to see the nat tables.

The discussion might have continued from here.