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.

Revisions

  1. Juul revised this gist Mar 10, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion openwrt_enable_ssh_on_wan.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@ To `/etc/config/firewall` add:
    ```
    config rule
    option name Allow-SSH-WAN
    option src wan
    option src wan
    option proto tcp
    option dest_port 22
    option target ACCEPT
  2. Juul revised this gist Mar 10, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion openwrt_enable_ssh_on_wan.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@ To `/etc/config/firewall` add:
    ```
    config rule
    option name Allow-SSH-WAN
    option dest wan
    option src wan
    option proto tcp
    option dest_port 22
    option target ACCEPT
  3. Juul created this gist Mar 10, 2021.
    18 changes: 18 additions & 0 deletions openwrt_enable_ssh_on_wan.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@

    To `/etc/config/firewall` add:

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

    Then:

    ```
    /etc/init.d/firewall restart
    ```