It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In RegisterIt looks like you're new here. If you want to get involved, click one of these buttons!
Howdy, Stranger!
It looks like you've been lurking for a while.
If you register, we also will remember what you have read and notify you about new comments. You will also be able to participate in discussions.
So if you'd like to get involved, register for an account, it'll only take you a minute!
apt-get install pptpd
nano /etc/pptpd.confand add the following lines:
localip 10.0.0.1Next, you should setup authentication for PPTP by adding users and passwords:
remoteip 10.0.0.100-200
nano /etc/ppp/chap-secrets
# Secrets for authentication using CHAPWhere client is the username, server is type of service – pptpd for our example, secret is the password, and IP addresses specifies which IP address may authenticate. By setting ‘*’ in IP addresses field, you specify that you would accept username/password pair for any IP.
# client server secret IP addresses
vpnuser pptpd password *
nano /etc/ppp/pptpd-options
ms-dns 8.8.8.8After this restart PPTPD:
ms-dns 8.8.4.4
service pptpd restart
nano /etc/sysctl.conf
net.ipv4.ip_forward=1
sysctl -p
iptables -t nat -A POSTROUTING -o venet0 -j MASQUERADE
Comments
systemctl enable pptpd
iptables -t nat -A POSTROUTING -o venet0 -j MASQUERADE
iptables-save > /etc/iptables.up.rules
Create file:
nano /etc/network/if-pre-up.d/iptables
File Contents:
#!/bin/sh iptables-restore < /etc/iptables.up.rules
Save the file
chmod +x /etc/network/if-pre-up.d/iptables
reboot