LinuxQuestions.org
Review your favorite Linux distribution.
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 03-10-2007, 09:10 AM   #1
krnlcrash
LQ Newbie
 
Registered: Dec 2005
Distribution: Mandrake 10.1
Posts: 17

Rep: Reputation: 0
pptpconfig ip loop


Hi all. I'm having a small problem getting pptpconfig working properly. What I want to do is connect my server to a cisco VPN (not using any encryption to make things simple).

I did finally get connected and things seem to be working only I get HUGE data traffic and nothing really seems to go through the VPN tunnel.

Here is the debug output (sensitive data changed to protect the guilty):

Quote:
pptpconfig: debug information dump begins
WARNING: security sensitive information follows
pptpconfig 1.2 2004/06/19 08:57:15
# pppd --version
pppd version 2.4.3
# uname -a
Linux intermobil.info 2.6.12-12mdksmp #1 SMP Fri Sep 9 17:43:23 CEST 2005 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz unknown GNU/Linux
# grep mppe /proc/modules
ppp_mppe_mppc 16388 0 - Live 0xf8d32000
ppp_generic 27284 2 ppp_mppe_mppc,ppp_async, Live 0xf8d20000
# modinfo ppp_mppe
Array
(
[name] => intermobil
[server] => 192.0.86.254
[domain] =>
[username] => intermobil
[password] => (hidden by pptpconfig)
[pppd-options] =>
[pptp-options] =>
[resolv] =>
[dns-options] =>
[routing] => routing_client_to_lan
[usepeerdns] => 1
[require-mppe] =>
[nomppe-40] =>
[nomppe-128] =>
[refuse-eap] =>
[mppe-stateful] =>
[autostart] => 1
[iconify] =>
[persist] =>
[debug] => 1
[client-to-lan] => a:0:{}
)
# route -n (before pppd)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 10 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 10 0 0 eth0
pptpconfig: debug information dump ends, starting pppd
pppd options in effect:
debug # (from /etc/ppp/peers/intermobil)
updetach # (from command line)
logfd 1 # (from command line)
linkname intermobil # (from /etc/ppp/peers/intermobil)
dump # (from /etc/ppp/peers/intermobil)
noauth # (from /etc/ppp/options.pptp)
refuse-chap # (from /etc/ppp/options.pptp)
refuse-mschap # (from /etc/ppp/options.pptp)
refuse-eap # (from /etc/ppp/options.pptp)
name intermobil # (from /etc/ppp/peers/intermobil)
remotename intermobil # (from /etc/ppp/peers/intermobil)
# (from /etc/ppp/options.pptp)
pty pptp 192.0.86.254 --nolaunchpppd # (from /etc/ppp/peers/intermobil)
ipparam intermobil # (from /etc/ppp/peers/intermobil)
noipdefault # (from /etc/ppp/options)
usepeerdns # (from /etc/ppp/peers/intermobil)
nobsdcomp # (from /etc/ppp/options.pptp)
nodeflate # (from /etc/ppp/options.pptp)
using channel 19
Using interface ppp0
pptpconfig: monitoring interface ppp0
Connect: ppp0 <--> /dev/pts/4
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xce8da78d> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <auth chap MS-v2> <magic 0x50eec553>]
sent [LCP ConfAck id=0x1 <auth chap MS-v2> <magic 0x50eec553>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xce8da78d> <pcomp> <accomp>]
rcvd [CHAP Challenge id=0x1 <432c0481e7aea805a61fbeb7a7db6a6c>, name = "KI-2811-BDR"]
sent [CHAP Response id=0x1 <3a96e5b98870a2f16823565f3c22b9040000000000000000981ccf73c4ca414167250f601ee276dd5c66f87a36c0eec600> , name = "intermobil"]
rcvd [CHAP Success id=0x1 "S=3A095873DEBAE5615E0ED238FC53609DB2C49290"]
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 192.0.86.254>]
sent [IPCP ConfAck id=0x1 <addr 192.0.86.254>]
rcvd [LCP ProtRej id=0x2 80 fd 01 01 00 0a 12 06 00 00 00 01]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfNak id=0x2 <addr 192.0.86.11> <ms-dns1 193.193.193.100> <ms-dns3 213.186.192.2>]
sent [IPCP ConfReq id=0x3 <addr 192.0.86.11> <ms-dns1 193.193.193.100> <ms-dns3 213.186.192.2>]
rcvd [IPCP ConfAck id=0x3 <addr 192.0.86.11> <ms-dns1 193.193.193.100> <ms-dns3 213.186.192.2>]
local IP address 192.0.86.11
remote IP address 192.0.86.254
primary DNS address 193.193.193.100
secondary DNS address 213.186.192.2
# route -n (after pppd exit)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.0.86.254 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 10 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 10 0 0 eth0
pptpconfig: pppd process exit status 0 (started)
ip route add 192.0.86.254 via 192.168.0.1 dev eth0 src 192.168.0.10
RTNETLINK answers: File exists

pptpconfig: command failed, exit code 2
pptpconfig: routes added to remote networks
pptpconfig: DNS changes made to /etc/resolv.conf
pptpconfig: connected
# route -n (after completion)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.0.86.254 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 10 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 10 0 0 eth0
Any clues as to what's wrong?
 
Old 03-12-2007, 02:32 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Looks like pppd didn't exit..
There's still a route and an interface named after it was said to have died..

Do ps ax and see if it's still listed.
killall pppd to remove it/them
 
Old 03-13-2007, 04:24 AM   #3
krnlcrash
LQ Newbie
 
Registered: Dec 2005
Distribution: Mandrake 10.1
Posts: 17

Original Poster
Rep: Reputation: 0
The problem is that during the connection, I get massive transfer rates on the ppp0 (only sending packets) interface. At least that's what the network monitor applet is showing me.

When I hit stop, it does exit and the routes are put back to what they where originally.

Last edited by krnlcrash; 03-13-2007 at 04:27 AM.
 
Old 03-14-2007, 08:40 AM   #4
krnlcrash
LQ Newbie
 
Registered: Dec 2005
Distribution: Mandrake 10.1
Posts: 17

Original Poster
Rep: Reputation: 0
[HTML]

Perhaps I can try to explain the connection I'm trying to make.
Internet
VPN -----------/ \------------------| firewall |-------------------------------------| client
IP: 192.0.86.254 193.193.200.200 192.168.0.1 192.168.0.2
subnet: 255.255.255.0 255.255.255.252 255.255.255.0 255.255.255.0

Both the external and internal IP address of the VPN is the same and will give the client an address: 192.0.86.11.
When i start pptpconfig and run ifconfig I indeed see the interface ppp0 get the address but you are right
though that pppd does not exit. When I kill it the ppp0 interface goes away.

I'm guessing that either I am missing something fundamental or forgotten to do something very minor but
necessary.

[/HTML]

Last edited by krnlcrash; 03-14-2007 at 08:55 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
pptpconfig not working on LE2005 zordon Mandriva 6 01-31-2007 10:38 PM
pptpconfig - Failed to open /etc/pptpconfig/lock HELP! YankeeFan Linux - Networking 1 11-01-2006 07:42 AM
pptpconfig error centos-new Linux - Networking 0 09-13-2006 07:11 AM
pptpconfig - php errors.. Golzari-Ali Linux - Software 3 09-10-2006 01:03 PM
pptpconfig mfrangos79 Linux - General 6 12-28-2005 09:58 PM

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

All times are GMT -5. The time now is 04:38 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration