Skip to content

Instantly share code, notes, and snippets.

@Juul
Last active October 9, 2024 14:53
Show Gist options
  • 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