Sunday, January 30, 2011

Poptop Vpn Server

I recently installed a VPN Server (POPTOP) on CentOS 5.
http://poptop.org/
I googled on so many sites to help me install
and configure poptop to serve my needs on VPN.

First we need to configure the repo for poptop.
user@localhost:~$ suuser@localhost:~$cd /etc/yum.repos.d/user@localhost:~$vi poptop.repo

Then, copy and paste this code to "poptop.repo"
[poptop]
name=poptop CentOS
baseurl=http://poptop.sourceforge.net/yum/stable/rhel5/i386/
gpgcheck=1
gpgkey=http://poptop.sourceforge.net/yum/RPM-GPG-KEY-PPTP
enabled=1
priority=30
Install poptop
user@localhost:~$ yum install pptpd
The fun start here.
We need to edit some config files. You can check poptop documentation here.

1. Backup the original /etc/pptpd.conf
user@localhost:~$ cp /etc/pptpd.conf /etc/pptpd.conf.orig
2. Create a new /etc/pptpd.conf
user@localhost:~$ touch /etc/pptpd.conf
3. Copy the code below to /etc/pptpd.conf
vi /etc/pptpd.conf
Code:

option /etc/ppp/options.pptpd
localip 192.168.0.1
remoteip 192.168.0.234-238

4. Backup the original /etc/ppp/options.pptpd
If it does not exist then skip this step.

user@localhost:~$ cp /etc/ppp/options.pptpd /etc/ppp/options.pptpd.orig
5. Create a new /etc/ppp/options.pptpd

Code:
name pptpd

 refuse-pap
 refuse-chap
 refuse-mschap
 require-mschap-v2
 require-mppe-128
 mppe-stateful

 ms-dns 192.168.0.1

 mtu 1464
 mru 1464

 lock
 nobsdcomp
6. Edit /etc/ppp/chap-secrets

Code:

client                     server                secret                   IP address
user                       pptpd                 mypassword               192.168.0.2
user2                      pptpd                 mypassword2              192.168.0.3
 
7. Start the pptpd service

user@localhost:~$ service pptpd start
or 

user@localhost:~$ /usr/sbin/pptpd start


Notes:
1. Remember to configure your firewall to accept TCP packets on port 1723.
2. If you encounter problems, always check the log messages on /var/log/messages.
There are lots of information there that you could use to troubleshoot your installation.
3. If you are connecting Windows 7 / Windows Vista Clients on the VPN Server, uncheck the IPv6
on the Networking tab on your VPN connection. Works for me! Hope it does to for you.

1 comment:

  1. Every weekend i used to visit this website, as i want enjoyment, since this this website conations actually pleasant funny information too. Feel free to visit my page;
    VPN provider

    ReplyDelete