Google
 
 
Home arrow Linux Articles arrow PPTP VPN on Linux

Main Menu
 Home
 Linux Articles
 FreeBSD Articles
 Apache Articles
 Perl Articles
 Other Articles
 Program Downloads
 Free Books
 News
 The Web Links
 Contact Us

Most Read
Automating SFTP using expect
FreeBSD PPTP VPN
SnortShorwall - Using Snort And Shorewall Together
Shorewall Router on Linux
Shorewall Stand Alone Firewall

Polls
Favorite Linux/BSD
Fedora
Mandrake
Debian
Slackware
Gentoo
Suse
FreeBSD
Other
  

Syndicate
Latest news direct to your desktop
RSS

Login Form
Username

Password

Remember me
Forgotten your password?
No account yet? Create one

Members Online
 Linux-BSD-Central Has a Total of 14089 Members   Members (14089) # Online
 We have 6 Guests Online. Guests 6
 We have 0 Users Online. Users 0

Online Users
No Users Online

Statistics
OS: Linux w
PHP: 5.2.17
MySQL: 5.1.56
Time: 10:09
Members: 14089
Hits: 1789882
News: 281
WebLinks: 15





PPTP VPN on Linux   PDF  Print  E-mail 
Contributed by Chad Brandt  
Wednesday, 16 June 2004
This article explains how to install and configure a windows compatable PPTP vpn server on Linux (with rpm support). We will be using PoPToP with MPPE encryption

1. Download and install the following files. You can download from here or you can find the files at Sourceforge
    ppp-mppe-2.4.1-.i386.rpm
    pptpd-1.1.4-b4.i386.rpm
    ppp-2.4.2-b3.i386.rpm

   To install do the following
   [root]# rpm -Uvh ppp*.rpm


2. Download the kernel patch and patch your kernel for the MPPE encryption. You can download from here or you can find the files at Sourceforge
    kernelmod-0.7.1.tar.gz

   Execute the following commands to patch your kernel module
   [root]# tar -zxvf kernelmod-0.7.1.tar.gz
   [root]# cd kernelmod
   [root]# ./kernelmod.sh -a i686 [-k if not default]

   when this is completed, display your module list and you should see the following modules loaded
   [root]# lsmod
   ppp_mppe 13976 0 (unused)
   ppp_generic 24572 0 [ppp_mppe]
   slhc 6596 0 [ppp_generic]


3.Edit the configuration files
   - My local network in this example is 172.16.0.0/16. You will need to change the IP Address to meet your needs

/etc/pptpd.conf
-------------------------------------------------
debug
option /etc/ppp/options.pptpd
localip 172.16.0.3
remoteip 172.16.0.100-235


/etc/ppp/options.pptpd
-------------------------------------------------
lock
debug
name pptpd
bsdcomp 0
proxyarp
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe
ms-wins 172.16.0.3
ms-dns 172.16.0.3


/etc/ppp/chap-secrets
-------------------------------------------------
# client server secret IP addresses
user1 pptpd password *
user2 pptpd password *


4. Ensure IP Forwarding is enabled
   [root]# cat /proc/sys/net/ipv4/ip_forward
   1

   If the value is not 1 you can enable ip forwarding by
   [root]# echo 1> /proc/sys/net/ipv4/ip_forward

   You can have it always default to 1 by editing
   /etc/sysconfig/nework
 


5. Start pptpd
   [root]# /etc/init.d/pptpd start


Verify that it start successfully
[root]# netstat -a -n
tcp 0 0 0.0.0.0:1723 0.0.0.0:* LISTEN

PPTP uses tcp port 1723 and protocol 47 (GRE)
If you have a firewall in front of the VPN server make sure
you open the appropriate ports

Comments
Radius Auth
Written by Guest on 2004-08-02 00:25:30
 
You need to config. radiusclient into PPP incase you want to enable Radius Auth
Radius Auth
Written by chad on 2004-08-02 08:17:21
If you wanted to write some simple instructions on how to do radius auth I could link to it from here. If you register you will be able to write the article
Steve Young
Written by Guest on 2005-09-06 08:56:35
It's cool stuff, I downloaded the things which I dreamed of , thank you :-)
how to create VPn in fedora 9 linux
Written by Guest on 2009-02-03 23:25:41
please help me tnx

Only registered users can write comments.
Please login or register.

Powered by AkoComment 1.0 beta 2!




 


 

Check out TwistByte - The best mobile apps available For awesome Android and IPhone applications!!