To be able to administrate my OpenWRT router from Internet I need to open the ssh port on the Wan interface.
It is real simple, just add to following to /etc/config/firewall:
#open ssh on wan interface
config rule
option src wan
option dest_port 22
option target ACCEPT
option proto tcp
And restart the firewall:
#/etc/init.d/firewall restart
2 Responses to “Open ssh on the WAN inteface in OpenWRT”
Leave a Reply
You must be logged in to post a comment.
May 12th, 2011 at 11:54 am
You saved my day 🙂
Compiled our new test firmware and was wondering why I can not acces via ssh on wan port 😛
May 17th, 2011 at 3:13 pm
I tried that and it works – Thanks
But what I would like to do is:
on the Wan side the port should be 1234 and on the lan side it should be 22 i.e. so internally I can still ssh via 22 but over the internet I use port 1234.
Any idea how to do that?