Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PPTP VPN remote connection
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tcma
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 208

PostPosted: Sat Apr 30, 2005 8:28 pm    Post subject: PPTP VPN remote connection Reply with quote

I want to connect to my company's microsoft PPTP VPN from home.
I follow the instructions at
http://pptpclient.sourceforge.net/howto-gentoo.phtml

I had applied the MPPE patch to the kernel version 2.6.11-gentoo-r4.

This is my log:
# pppd call myvpn logfd 2 nodetach debug dump
pppd options in effect:
debug # (from command line)
nodetach # (from command line)
logfd 2 # (from command line)
linkname myvpn # (from /etc/ppp/peers/myvpn)
dump # (from command line)
noauth # (from /etc/ppp/options.pptp)
refuse-pap # (from /etc/ppp/peers/myvpn)
refuse-chap # (from /etc/ppp/peers/myvpn)
refuse-mschap # (from /etc/ppp/peers/myvpn)
refuse-eap # (from /etc/ppp/peers/myvpn)
name myuser # (from /etc/ppp/peers/myvpn)
remotename myvpn # (from /etc/ppp/peers/myvpn)
# (from /etc/ppp/options.pptp)
pty pptp 234.234.123.123 --nolaunchpppd # (from /etc/ppp/peers/myvpn)
mru 1000 # (from /etc/ppp/options.pptp)
mtu 1000 # (from /etc/ppp/options.pptp)
lcp-echo-failure 10 # (from /etc/ppp/options.pptp)
lcp-echo-interval 10 # (from /etc/ppp/options.pptp)
ipparam myvpn # (from /etc/ppp/peers/myvpn)
usepeerdns # (from /etc/ppp/peers/myvpn)
nobsdcomp # (from /etc/ppp/options.pptp)
nodeflate # (from /etc/ppp/options.pptp)
mppe xxx # [don't know how to print value] # (from /etc/ppp/peers/myvpn)
using channel 16
Using interface ppp0
Connect: ppp0 <--> /dev/pts/8
sent [LCP ConfReq id=0x1 <mru 1000> <asyncmap 0x0> <magic 0xd5cd6f25> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1000> <asyncmap 0x0> <magic 0xd5cd6f25> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1000> <asyncmap 0x0> <magic 0xd5cd6f25> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1000> <asyncmap 0x0> <magic 0xd5cd6f25> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1000> <asyncmap 0x0> <magic 0xd5cd6f25> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <mru 1000> <asyncmap 0x0> <magic 0xd5cd6f25> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <mru 1000> <asyncmap 0x0> <magic 0xd5cd6f25> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <mru 1000> <asyncmap 0x0> <magic 0xd5cd6f25> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <mru 1000> <asyncmap 0x0> <magic 0xd5cd6f25> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <mru 1000> <asyncmap 0x0> <magic 0xd5cd6f25> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1000> <asyncmap 0x0> <magic 0xd5cd6f25> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <mru 1000> <asyncmap 0x0> <magic 0xd5cd6f25> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0x3092b009> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0x3092b009> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0xd5cd6f25]
rcvd [CHAP Challenge id=0x1 <6a125ef9c686895257ea8e50b1e6b399>, name = "Fortigate-60"]
sent [CHAP Response id=0x1 <6dc6ded6dbaa04be85b2af7e7e622ccb000000000000000051aebd940a3b06a8afe4fc36348ca21edd277de58a907e7200>, name = "myuser"]
rcvd [LCP EchoRep id=0x0 magic=0x3092b009]
rcvd [CHAP Success id=0x1 "S=F1F718212A4BA2ED6CE368A92C50422B9B1DCEE8"]
sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D +C>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <addr 234.234.123.123> <compress VJ 0f 01> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <mppe +H +M +S +L -D +C> <bsd v1 15>]
sent [CCP ConfRej id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfNak id=0x1 <mppe +H +M +S +L -D +C>]
sent [CCP ConfReq id=0x2 <mppe +H -M +S -L -D +C>]
rcvd [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 0.0.0.0>]
rcvd [IPCP ConfReq id=0x2 <addr 234.234.123.123> <compress VJ 0f 01>]
sent [IPCP ConfAck id=0x2 <addr 234.234.123.123> <compress VJ 0f 01>]
rcvd [CCP ConfReq id=0x2 <mppe +H +M +S +L -D +C>]
sent [CCP ConfNak id=0x2 <mppe +H -M +S -L -D +C>]
rcvd [CCP ConfAck id=0x2 <mppe +H -M +S -L -D +C>]
rcvd [IPCP ConfNak id=0x2 <addr 193.41.1.210>]
sent [IPCP ConfReq id=0x3 <compress VJ 0f 01> <addr 193.41.1.210>]
rcvd [CCP ConfReq id=0x3 <mppe +H -M +S -L -D +C>]
sent [CCP ConfAck id=0x3 <mppe +H -M +S -L -D +C>]
MPPC/MPPE 128-bit stateless compression enabled
rcvd [IPCP ConfAck id=0x3 <compress VJ 0f 01> <addr 193.41.1.210>]
local IP address 193.41.1.210
remote IP address 234.234.123.123
Script /etc/ppp/ip-up started (pid 9722)
Script /etc/ppp/ip-up finished (pid 9722), status = 0x1
No response to 10 echo-requests
Serial link appears to be disconnected.
Connect time 1.9 minutes.
Sent 524917401 bytes, received 0 bytes.
Script /etc/ppp/ip-down started (pid 9723)
MPPE disabled
sent [LCP TermReq id=0x2 "MPPE disabled"]
sent [LCP TermReq id=0x3 "MPPE disabled"]
Script /etc/ppp/ip-down finished (pid 9723), status = 0x1
sent [LCP TermReq id=0x4 "MPPE disabled"]
Connection terminated.
Modem hangup
Waiting for 1 child processes...
script pptp 234.234.123.123 --nolaunchpppd , pid 9712
Script pptp 234.234.123.123 --nolaunchpppd finished (pid 9712), status = 0x0
_________________
TCMa
Back to top
View user's profile Send private message
Schlummi
n00b
n00b


Joined: 02 Sep 2002
Posts: 31

PostPosted: Sat Jul 16, 2005 12:49 pm    Post subject: Reply with quote

Did you manage it? Cause I have the same Problem.
I try to build a VPN tunnel to a Cisco PIX by PPTP. This works, as I can see:
Code:

 pppd options in effect:
debug           # (from command line)
nodetach                # (from command line)
logfd 2         # (from command line)
dump            # (from command line)
noauth          # (from /etc/ppp/options.pptp)
name myname         # (from /etc/ppp/peers/gga)
remotename PPTP         # (from /etc/ppp/peers/gga)
                # (from /etc/ppp/options.pptp)
pty pptp 213.160.40.66 --nolaunchpppd           # (from /etc/ppp/peers/gga)
mru 1000                # (from /etc/ppp/options.pptp)
mtu 1000                # (from /etc/ppp/options.pptp)
lcp-echo-failure 10             # (from /etc/ppp/options.pptp)
lcp-echo-interval 10            # (from /etc/ppp/options.pptp)
ipparam gga             # (from /etc/ppp/peers/gga)
nobsdcomp               # (from /etc/ppp/options.pptp)
nodeflate               # (from /etc/ppp/options.pptp)
require-mppe            # (from /etc/ppp/options.pptp)
require-mppe-128                # (from /etc/ppp/peers/gga)
using channel 15
Using interface ppp0
Connect: ppp0 <--> /dev/pts/3
sent [LCP ConfReq id=0x1 <mru 1000> <asyncmap 0x0> <magic 0xac62a4e> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <auth chap MS> <magic 0x75a8eb5f>]
sent [LCP ConfAck id=0x1 <auth chap MS> <magic 0x75a8eb5f>]
rcvd [LCP ConfRej id=0x1 <mru 1000> <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <magic 0xac62a4e>]
rcvd [LCP ConfAck id=0x2 <magic 0xac62a4e>]
sent [LCP EchoReq id=0x0 magic=0xac62a4e]
rcvd [CHAP Challenge id=0x1 <96293d94cd80d235>, name = ""]
sent [CHAP Response id=0x1 <0000000000000000000000000000000000000000000000006fe10197d9ef91ff9f084462093d660f2b1f00200d920d1d01>, name = "myname"]
rcvd [LCP EchoRep id=0x0 magic=0x75a8eb5f]
rcvd [CHAP Success id=0x1 ""]
CHAP authentication succeeded
Disabling 40-bit MPPE; MS-CHAP LM not supported
sent [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
rcvd [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
sent [CCP ConfAck id=0x1 <mppe +H -M +S -L -D -C>]
rcvd [CCP ConfAck id=0x1 <mppe +H -M +S -L -D -C>]
MPPE 128-bit stateless compression enabled
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <addr 213.160.40.66>]
sent [IPCP ConfAck id=0x1 <addr 213.160.40.66>]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0>]
rcvd [IPCP ConfNak id=0x2 <addr 192.168.20.9>]
sent [IPCP ConfReq id=0x3 <addr 192.168.20.9>]
rcvd [IPCP ConfAck id=0x3 <addr 192.168.20.9>]
local  IP address 192.168.20.9
remote IP address 213.160.40.66
Script /etc/ppp/ip-up started (pid 14951)
Script /etc/ppp/ip-up finished (pid 14951), status = 0x1

Code:
netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
213.160.40.66   0.0.0.0         255.255.255.255 UH        0 0          0 ppp0
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG        0 0          0 lo
0.0.0.0         192.168.1.3     0.0.0.0         UG        0 0          0 eth0


Point is, if I build the Tunnel on Windows XP I get the following:
Code:

IP: 192.168.20.8
Mask:255.255.255.255
Gateway:192.168.20.8

So the gateway is not the same.
How do I have to change routing?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum