Skip to content

Instantly share code, notes, and snippets.

@RobK
Last active August 29, 2015 14:26
Show Gist options
  • Save RobK/763c4807bd369e70d9b3 to your computer and use it in GitHub Desktop.
Save RobK/763c4807bd369e70d9b3 to your computer and use it in GitHub Desktop.
Add firewall rules
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment