Skip to content

Instantly share code, notes, and snippets.

@Juul
Last active June 3, 2023 08:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Juul/17d2228acf4e53d85d2f088c0efb7adf to your computer and use it in GitHub Desktop.
Save Juul/17d2228acf4e53d85d2f088c0efb7adf 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