Skip to content

Instantly share code, notes, and snippets.

@Fazzani
Created December 24, 2018 01:15
Show Gist options
  • Save Fazzani/ff7d9d0f36e1a0f009816fce63435405 to your computer and use it in GitHub Desktop.
Save Fazzani/ff7d9d0f36e1a0f009816fce63435405 to your computer and use it in GitHub Desktop.
pptpd no internet access
nano /etc/sysctl.conf
# Add or find and comment out the following line
net.ipv4.ip_forward=1
# Save, close the file and run the following command to make the changes take effect.
sysctl -p
# The following iptables firewall rules allow port 1723, GRE and perform NAT
iptables -I INPUT -p tcp --dport 1723 -m state --state NEW -j ACCEPT
iptables -I INPUT -p gre -j ACCEPT
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment