LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-27-2005, 10:04 PM   #1
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Rep: Reputation: 30
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
 
Old 04-28-2005, 03:54 AM   #2
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
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?
 
Old 04-28-2005, 04:01 AM   #3
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
btw. check out http://pptpclient.sourceforge.net/, you can find quite some help there.
 
Old 04-28-2005, 09:09 AM   #4
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Original Poster
Rep: Reputation: 30
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.
 
Old 05-01-2005, 11:00 AM   #5
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Original Poster
Rep: Reputation: 30
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.
 
Old 05-02-2005, 03:53 AM   #6
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN pptp Connection GroverB Linux - Networking 1 10-29-2005 03:13 PM
Vpn, Pptp???? ABL Linux - Networking 3 03-11-2005 04:54 PM
Pptp Vpn Iptables jrmann1999 Linux - Networking 1 08-20-2004 11:26 AM
iptables and pptp vpn SSBN Linux - Networking 6 06-03-2003 02:35 PM
pptp vpn configuration question agoltz Linux - Networking 0 03-29-2003 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration