Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vothanhkiet/29ecfc24357b613e3dc706c36bc68119 to your computer and use it in GitHub Desktop.
Save vothanhkiet/29ecfc24357b613e3dc706c36bc68119 to your computer and use it in GitHub Desktop.
OpenWRT enable SSH on WAN port

To /etc/config/firewall add:

config rule                                     
        option name             Allow-SSH-WAN   
        option src              wan             
        option proto            tcp             
        option dest_port        22              
        option target           ACCEPT          
        option family           ipv4

Then:

/etc/init.d/firewall restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment