Skip to content

Instantly share code, notes, and snippets.

@tetranz
Created November 14, 2020 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tetranz/da8f127657c4931e4058d00132b3044e to your computer and use it in GitHub Desktop.
Save tetranz/da8f127657c4931e4058d00132b3044e to your computer and use it in GitHub Desktop.
iptables -D FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
iptables -D FORWARD -i eth0 -o wg0 -j ACCEPT
iptables -D FORWARD -i wg0 -o eth0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables -t nat -D POSTROUTING -o wg0 -j MASQUERADE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment