How to setup a VPN (pptpd) server on your VPS

07_VPN-Verbindung.flv.jpg

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

8) reboot your ubuntu

4. use windows VPN client to connect your VPN.

Related posts:

  1. 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...
  2. 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...
  3. SpiderOak: online backup server SpiderOak provides an easy, secure and consolidated free online backup, storage, access, sharing & sync* tool for Windows, Mac...
  4. 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...
  5. 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...

This entry was posted on Wednesday, November 11th, 2009 and is filed under Misc. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Tweets

Leave a Reply

Additional comments powered by BackType

125x125 make money with your web site

LastPost

Archives

Recent Comments

Tags

3g 5800 android Applications blog Cell Phone Facebook firefox Flu Followers free Free Software Google iphone Itunes linux Lot Mexico microsoft money music N97 nokia Nokia 5800 Nokia Music Nokia Phone opensource Opensource Software Pandemic People Pigs s60v5 Swine Flu Thanks In Advance T Mobile Tweets twitter Video virus vista Wallpaper Wallpapers Wifi Yahoo youtube

  • Partner links


  • By N2H
    Blog Widget by LinkWithin