LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   VPN configuration pptp (http://www.linuxquestions.org/questions/linux-networking-3/vpn-configuration-pptp-317907/)

ssfrstlstnm 04-27-2005 11:04 PM

VPN configuration pptp
 
I need to set up a VPN to access the Windows computer that I use at work.

I first recompiled my kernel with the mppe patch and ppp stuff as modules.
Then tried to install the mppe module:
Code:

modprobe ppp-compress-18
FATAL: Module ppp_compress_18 not found.

This worries me; however, I was able to install ppp-mppe
Code:

modprobe ppp-mppe
Are ppp-mppe and ppp-compress-18 the same??

Then I installed pptp with apt-get

The instructions from my network admin say to add a route like this:
Code:

route add -host vpn.purdue.edu gw $GATEWAY dev $INET
I am using dialup on ppp0 so I use "ppp0" for $INET
But I don't know how to find my internet gateway, so I just left this part out
Code:

route add -host vpn.purdue.edu dev ppp0
I didn't get any errors, but I'm still not sure if it worked.

Config files are below. Seems like it isn't able to authenticate.
Here is the output when I try to start the tunnel:

Code:

toybox:/etc/ppp# pppd pty 'pptp vpn.purdue.edu --nolaunchpppd' call purdue debu      g dump logfd 2 nodetach
pppd options in effect:
debug          # (from command line)
nodetach                # (from command line)
idle 600                # (from /etc/ppp/options)
persist        # (from /etc/ppp/peers/purdue)
logfd 2        # (from command line)
maxfail 3              # (from /etc/ppp/options)
dump            # (from command line)
noauth          # (from /etc/ppp/pptpd-options)
refuse-pap              # (from /etc/ppp/pptpd-options)
refuse-chap            # (from /etc/ppp/pptpd-options)
refuse-mschap          # (from /etc/ppp/pptpd-options)
name PURDUE            # (from /etc/ppp/pptpd-options)
remotename PURDUE              # (from /etc/ppp/peers/purdue)
                # (from /etc/ppp/pptpd-options)
disconnect chat -- d+++dc OK ath0 OK            # (from /etc/ppp/options)
pty pptp vpn.purdue.edu --nolaunchpppd          # (from /etc/ppp/peers/purdue)
crtscts        # (from /etc/ppp/options)
                # (from /etc/ppp/options)
asyncmap 0              # (from /etc/ppp/options)
mru 296        # (from /etc/ppp/options)
hide-password          # (from /etc/ppp/options)
ipparam purdue          # (from /etc/ppp/peers/purdue)
nodefaultroute          # (from /etc/ppp/pptpd-options)
proxyarp                # (from /etc/ppp/pptpd-options)
netmask 255.255.255.0          # (from /etc/ppp/options)
nobsdcomp              # (from /etc/ppp/pptpd-options)
nodeflate              # (from /etc/ppp/pptpd-options)
require-mppe-128                # (from /etc/ppp/pptpd-options)
noipx          # (from /etc/ppp/options)
using channel 49
Using interface ppp1
Connect: ppp1 <--> /dev/pts/2
sent [LCP ConfReq id=0x1 <mru 296> <asyncmap 0x0> <magic 0xdf72436c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 296> <asyncmap 0x0> <magic 0xdf72436c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 296> <asyncmap 0x0> <magic 0xdf72436c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 296> <asyncmap 0x0> <magic 0xdf72436c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 296> <asyncmap 0x0> <magic 0xdf72436c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 296> <asyncmap 0x0> <magic 0xdf72436c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 296> <asyncmap 0x0> <magic 0xdf72436c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 296> <asyncmap 0x0> <magic 0xdf72436c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 296> <asyncmap 0x0> <magic 0xdf72436c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 296> <asyncmap 0x0> <magic 0xdf72436c> <pcomp> <accomp>]
LCP: timeout sending Config-Requests

/etc/ppp/pptp-options:
Code:

name  PURDUE
# domain mydomain.net
# chapms-strip-domain
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
#ms-dns 10.0.0.1
#ms-dns 10.0.0.2
#ms-wins 10.0.0.3
#ms-wins 10.0.0.4
proxyarp
nodefaultroute
#debug
#dump
lock
nobsdcomp
nodeflate
noauth


/etc/ppp/chap-secrets:
Code:

my_user_name  PURDUE  "MyPassWord"
/etc/ppp/peers/purdue:
Code:

pty "pptp vpn.purdue.edu --nolaunchpppd"
name PURDUE
remotename PURDUE
require-mppe-128
#mppe-128
#mppe-stateless
dump
persist
file /etc/ppp/pptpd-options
ipparam purdue

added these lines to ip-up as per the instructions from my network admin:
Code:

if [ "$6" == "purdue" ]; then
#only send encrypted data to Purdue subnets
  /sbin/route add -net 128.210.0.0/16 dev ${IFNAME}
  /sbin/route add -net 128.211.0.0/16 dev ${IFNAME}
  /sbin/route add -net 128.46.0.0/16 dev ${IFNAME}
  /sbin/route add -net 128.10.0.0/16 dev ${IFNAME}
fi

/etc/ppp/options:
Code:

#ms-dns 192.168.1.1
#ms-dns 192.168.1.2
#ms-wins 192.168.1.50
#ms-wins 192.168.1.51
asyncmap 0
noauth
crtscts
#xonxoff
#local
lock
modem
mru296
netmask 255.255.255.0
#noipdefault
#passive
#silent
#-all
#-ac
#-am
#-detach
#-ip
#noip
#-mn
#-mru
#pc
#+pap
#-pap
#+chap
#-chap
#-vj
#domain
#name
#usehostname
#remotename
proxyarp
#login
noipx
nopersist


elluva 04-28-2005 04:54 AM

This is really a hard one, I don't know much about it, just that I used this for a couple of years and always had trouble in getting it to work. Isn't there some vpn-client that does all this for you?

elluva 04-28-2005 05:01 AM

btw. check out http://pptpclient.sourceforge.net/, you can find quite some help there.

ssfrstlstnm 04-28-2005 10:09 AM

I have been through the help docs at sourceforge, and I think that I have most everything set up properly. It's probably just some setting in the config that isn't right. Also checked out some of the other VPN solutions; most of them seem to be geared more toward setting up a VPN server which is much more than what I need. I did find pptpconfig which help me some in setting up some of it, but I usually try to stay away from the GUI training wheels stuff. At this point I would really hate to abandon my manual setup when I feel that I am so close. But feel free to suggest other options if you are using something that has worked well.

ssfrstlstnm 05-01-2005 12:00 PM

it seems this forum is pretty dead. Anyway I have given up for now. Too bad, cause this is the only thing that I still need my windows box for.

elluva 05-02-2005 04:53 AM

sry, but really can't help you. VPN over PPTP using MPPE is a real pain in the ***.


All times are GMT -5. The time now is 02:59 AM.