-
-
Save tetranz/0245161090b6d351aa8ed1a53e59b7ae to your computer and use it in GitHub Desktop.
wireguard-up.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu | |
iptables -A FORWARD -i eth0 -o wg0 -j ACCEPT | |
iptables -A FORWARD -i wg0 -o eth0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT | |
iptables -t nat -A POSTROUTING -o wg0 -j MASQUERADE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment