Skip to content

Instantly share code, notes, and snippets.

@RobK
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save RobK/763c4807bd369e70d9b3 to your computer and use it in GitHub Desktop.

Select an option

Save RobK/763c4807bd369e70d9b3 to your computer and use it in GitHub Desktop.

Revisions

  1. RobK revised this gist Aug 8, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,6 @@ config zone
    option network 'PIA_VPN'

    config forwarding
    option dest 'VPN_FW'
    option src 'lan'
    option dest 'VPN_FW'
    option src 'lan'
    EOF
  2. RobK created this gist Aug 8, 2015.
    14 changes: 14 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    cat >> /etc/config/firewall << EOF
    config zone
    option name 'VPN_FW'
    option input 'REJECT'
    option output 'ACCEPT'
    option forward 'REJECT'
    option masq '1'
    option mtu_fix '1'
    option network 'PIA_VPN'

    config forwarding
    option dest 'VPN_FW'
    option src 'lan'
    EOF