How to setup a VPN (pptpd) server on your VPS
I need PPTP server/Proxy setup on a Ubuntu VPS I currently have.
1. Order a VPS hosting on VPSlink.
2. Install Ubuntu on my VPS.
3. Install VPN.
1) Install pptpd
# apt-get install pptpd
2) Setting the IP range
# vi /etc/ppt
localip 192.168.0.1
remoteip 192.168.0.234-238,192.168.0.245
3) add a user for ppp
#vi /etc/ppp/chap-secrets
username pptpd password *
4) restart pptpd server
# /etc/init.d/pptpd restart
5) setting up DNS
# vi /etc/ppp/options
add
ms-dns 208.67.222.222
ms-dns 208.67.220.220
6) setting forwad options
# vi /etc/sysctl.conf
modify below line
net.ipv4.ip_forward=1
7) To make the changes to sysctl.conf take effect, use the following command.
sysctl -p
7) add tow line in rc.local
# vi /etc/rc.local
/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
/sbin/iptables -I FORWARD -p tcp –syn -i ppp+ -j TCPMSS –set-mss 1356
reboot your ubuntu
4. use windows VPN client to connect your VPN.
Related posts:
- I want to setup an email server. What opensource program would you recommend me to use? Luis D asked: I know there are several open source email programs, but i would like to know by...
- have to make completely open-source/free network. software suggestions and how to setup a mail server network? Need this for school…Help asked: We need to make an opensource/free classroom network. we need help in configuring a...
- SpiderOak: online backup server SpiderOak provides an easy, secure and consolidated free online backup, storage, access, sharing & sync* tool for Windows, Mac...
- which is the better opensource operating system ? SecReT TeChIE asked: 1 – Ubuntu 7.04 2 – Solaris 3 – Kubuntu 7.04 also whats the difference between...
- Plz tell me a freeware/opensource proxy server for windows server 2000/2003? dhirajbharara asked: Our network has 25 nodes with one server right now we are accessing internet through LAN without...





Leave a Reply
Additional comments powered by BackType