Created
December 10, 2017 20:56
-
-
Save mahdi13/28e74b56f061c29c44136771095b30f8 to your computer and use it in GitHub Desktop.
pptpd-ip-routs
This file contains hidden or 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
sudo iptables -I INPUT -p tcp --dport 1723 -m state --state NEW -j ACCEPT | |
sudo iptables -I INPUT -p gre -j ACCEPT | |
sudo iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE | |
sudo iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -s 172.20.1.0/24 -j TCPMSS --clamp-mss-to-pmtu | |
sudo iptables-save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment