LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   pptpconfig ip loop (https://www.linuxquestions.org/questions/linux-networking-3/pptpconfig-ip-loop-536264/)

krnlcrash 03-10-2007 09:10 AM

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?

peter_robb 03-12-2007 02:32 PM

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

krnlcrash 03-13-2007 04:24 AM

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.

krnlcrash 03-14-2007 08:40 AM

[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]


All times are GMT -5. The time now is 08:01 AM.