Created
December 24, 2018 01:15
-
-
Save Fazzani/ff7d9d0f36e1a0f009816fce63435405 to your computer and use it in GitHub Desktop.
pptpd no internet access
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
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