Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
Site Navigation
Linux Forums
Linux Articles
Product Showcase
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Free Publications

I am using pptpd server as my vpn server and my linux distro is centos 5. u can check for the video of the same at http://paragborle.blogspot.in

Steps for installing and configuration

1. yum install -y ppp

2. cd /usr/local/src

3. wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel5.i386.rpm

4. rpm -ivh pptpd-1.3.4-2.rhel5.i386.rpm

5. vim /etc/ppp/chap-secrets

(this is the username and password file for your vpn clients)

# Secrets for authentication using CHAP

# client             server       secret                  IP addresses

username1           *       userpasswd                   *

username2           *       userpasswd                   *

6. vim /etc/ppp/options.pptpd

   (This is your DNS server File specify your DNS servers IP address here local & public)




7. vim /etc/pptpd.conf

    (This is the actual pptpd server configuration file)

    Edit the below lines from the file

localip  ------------> this is your VpN server's IP address

remoteip  --------> This is your VPN clients Ip range which you want to give to your clients

8. Configuring Firewall (Very Important Step)

iptables -A INPUT -i eth0 -p tcp --dport 1723 -j ACCEPT

iptables -A INPUT -i eth0 -p gre -j ACCEPT

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

iptables -A FORWARD -i ppp+ -o eth0 -j ACCEPT

iptables -A FORWARD -i eth0 -o ppp+ -j ACCEPT

service iptables save

service iptables restart

9. vim /etc/sysctl.conf

    Enable the ip fprwarding its very important in VPN server configuration process

# Controls IP packet forwarding

net.ipv4.ip_forward = 1  -----> this is by default 0 .. enable it by making it 1

10. service pptpd start / chkconfig pptpd on

11. Monitor your vpn server logs by running the following command

    tail -f /var/log/messages

12. Enjoy for any queries feel free to contact me on parag7610@gmail.com

Rate This Article: poor excellent
Comments about this article

Comment title: * please do not put your response text here