Skip to content

Instantly share code, notes, and snippets.

@oxyflour
Created October 3, 2022 04:31
Show Gist options
  • Save oxyflour/218a23da8060d452f4ce23259d49dffa to your computer and use it in GitHub Desktop.
Save oxyflour/218a23da8060d452f4ce23259d49dffa to your computer and use it in GitHub Desktop.
openvpn settings
# https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf && systctl -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment