Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- install pptpd:
- sudo apt-get install pptpd
- edit /etc/pptpd.conf file:
- sudo nano /etc/pptpd.conf
- put the following entry below. localip is the ip address of the server & remoteip is the range of ip address you want the remote pc to have when connecting:
- localip 192.168.1.250
- remoteip 192.168.1.160-200,192.168.1.199
- edit /etc/ppp/pptpd.options:
- sudo nano /etc/ppp/pptpd-options
- make sure to put the value below and must be uncommented:
- require-mschap-v2
- ms-dns 8.8.8.8
- nobsdcomp
- noipx
- mtu 1444
- mru 1444
- edit /etc/ppp/chap-secrets:
- sudo nano /etc/ppp/chap-secrets
- put the username and passwords of the remote users that will connect. make sure that the users have a user account on the server.
- # Secrets for authentication using CHAP
- # client server secret IP addresses
- YOUR_USERNAME_HERE pptpd YOUR_PASSWORD_HERE *
- to enable remote users to access other computers on the network or be able to surf the internet through the vpn tunnel then edit /etc/sysctl.conf:
- sudo nano /etc/sysctl.conf
- set the value below:
- net.ipv4.ip_forward=1
- restart the server:
- sudo reboot
- =============================================================================================
- if the remote client still have problem connecting to internet, then set up ip-masquerading in /etc/rc.local:
- sudo nano /etc/rc.local
- Add the following lines above the line that says ‘exit 0‘
- iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement