Skip to content

Instantly share code, notes, and snippets.

@the-darkvoid
Last active March 19, 2019 04:39
Show Gist options
  • Save the-darkvoid/7512fd8c5c83232d25d9eb0c9824a336 to your computer and use it in GitHub Desktop.
Save the-darkvoid/7512fd8c5c83232d25d9eb0c9824a336 to your computer and use it in GitHub Desktop.
OpenConnect (ocserv) on entware

Firewall rules

iptables -I FORWARD -i vpns+ -s 172.16.79.0/24 -j ACCEPT
iptables -I INPUT -i vpns+ -s 172.16.79.0/24 -j ACCEPT
iptables -t nat -I POSTROUTING -s 172.16.79.0/24 -o br0 -j MASQUERADE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment