ssfrstlstnm |
04-27-2005 10: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
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
|