Skip to content

Instantly share code, notes, and snippets.

@mahdi13
Created December 10, 2017 20:56
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 mahdi13/28e74b56f061c29c44136771095b30f8 to your computer and use it in GitHub Desktop.
Save mahdi13/28e74b56f061c29c44136771095b30f8 to your computer and use it in GitHub Desktop.
pptpd-ip-routs
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