Toon posts:

PPTP: Route probleem

Pagina: 1
Acties:
  • 228 views sinds 30-01-2008
  • Reageer

Verwijderd

Topicstarter
Hi,

I have two OS's on my laptop (D620) , both configured to dial in to the VPN server of my work but only the XP one works and is passing traffic. Ubuntu connects and gets an ip of the VPN server but is not passing traffic and my entire internet doesn't work if i use the tunnel.

I think the issue is in the Routes not beeing set up but i don't have a clue which route i should add to my linux box in order for it to work..

Windows XP routes (Working config)


code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Interface List

0x1 ........................... MS TCP Loopback interface

0x2 ...00 13 02 a5 05 d5 ...... Intel(R) PRO/Wireless 3945ABG Network Connection

 - Packet Scheduler Miniport

0x10004 ...00 14 22 fb 4b 83 ...... Broadcom NetXtreme 57xx Gigabit Controller -

 Packet Scheduler Miniport

0x20005 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface

===========================================================================

===========================================================================

Active Routes:

Network Destination        Netmask          Gateway       Interface  Metric

          0.0.0.0          0.0.0.0     172.16.0.211    172.16.0.211       1

          0.0.0.0          0.0.0.0      192.168.9.1     192.168.9.7       26

     70.183.24.xx  255.255.255.255      192.168.9.1     192.168.9.7       25

        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1

     172.16.0.211  255.255.255.255        127.0.0.1       127.0.0.1       50

   172.16.255.255  255.255.255.255     172.16.0.211    172.16.0.211       50

      192.168.9.0    255.255.255.0      192.168.9.7     192.168.9.7       25

      192.168.9.7  255.255.255.255        127.0.0.1       127.0.0.1       25

    192.168.9.255  255.255.255.255      192.168.9.7     192.168.9.7       25

        224.0.0.0        240.0.0.0      192.168.9.7     192.168.9.7       25

        224.0.0.0        240.0.0.0     172.16.0.211    172.16.0.211       1

  255.255.255.255  255.255.255.255     172.16.0.211    172.16.0.211       1

  255.255.255.255  255.255.255.255      192.168.9.7           10004       1

  255.255.255.255  255.255.255.255      192.168.9.7     192.168.9.7       1

Default Gateway:      172.16.0.211

===========================================================================

Persistent Routes:

  None



Ubuntu linux Routes (and debug info)

code:
1
2
3
4
5
6
7
8
# route -n (after completion)
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.16.0.210    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
70.183.24.xx    192.168.9.1     255.255.255.255 UGH   0      0        0 eth1
192.168.9.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 ppp0
0.0.0.0         192.168.9.1     0.0.0.0         UG    0      0        0 eth1


If i can sort out this problem I have everything working on ubuntu so hopefully someone can help me out ! Thanks alot

TheH

  • igmar
  • Registratie: April 2000
  • Laatst online: 31-01 23:50

igmar

ISO20022

1) Dit is nog steeds een site gericht op .nl gebruikers.
2) Begin eens met het posten van relevante config files, oa die van pppd en pptp
3) De debuglogs zijn ook wel handig, bij voorkeur op een aparte URL, aangezien hier niemand post gaat lezen > 300 regels.

Verwijderd

Topicstarter
igmar schreef op vrijdag 28 juli 2006 @ 11:49:
1) Dit is nog steeds een site gericht op .nl gebruikers.
2) Begin eens met het posten van relevante config files, oa die van pppd en pptp
3) De debuglogs zijn ook wel handig, bij voorkeur op een aparte URL, aangezien hier niemand post gaat lezen > 300 regels.
Sorry , maar zover ik weet is de config goed sinds de linux side verbinding maakt... de Debuglog is erg lang en groot...

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
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.4b1
# uname -a
Linux Tommy-KSR007 2.6.15-26-386 #1 PREEMPT Mon Jul 17 19:52:53 UTC 2006 i686 GNU/Linux
# grep mppe /proc/modules
# modinfo ppp_mppe
filename:       /lib/modules/2.6.15-26-386/kernel/drivers/net/ppp_mppe.ko
author:         Frank Cusack <fcusack@fcusack.com>
description:    Point-to-Point Protocol Microsoft Point-to-Point Encryption support
license:        Dual BSD/GPL
alias:          ppp-compress-18
version:        1.0.2
vermagic:       2.6.15-26-386 preempt 486 gcc-4.0
depends:        ppp_generic
srcversion:     6B88E623CA7C4D7FE2F11FA
Array
(
    [name] => KSR
    [server] => vpn.xxxx.com
    [domain] => 
    [username] => dhayes
    [password] => (hidden by pptpconfig)
    [pppd-options] => 
    [pptp-options] => 
    [resolv] => 
    [dns-options] => 
    [routing] => routing_client_to_lan
    [usepeerdns] => 1
    [require-mppe] => 1
    [nomppe-40] => 
    [nomppe-128] => 
    [refuse-eap] => 
    [mppe-stateful] => 
    [autostart] => 
    [iconify] => 
    [persist] => 1
    [debug] => 1
    [client-to-lan] => a:2:{s:12:"172.16.0.0/8";s:11:"KSR network";s:10:"10.0.0.0/8";s:12:"KSR internal";}
)
# route -n (before pppd)
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.9.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         192.168.9.1     0.0.0.0         UG    0      0        0 eth1
pptpconfig: debug information dump ends, starting pppd
pppd options in effect:
debug       # (from /etc/ppp/peers/KSR)
updetach        # (from command line)
persist     # (from /etc/ppp/peers/KSR)
logfd 1     # (from command line)
linkname KSR        # (from /etc/ppp/peers/KSR)
dump        # (from /etc/ppp/peers/KSR)
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 dhayes     # (from /etc/ppp/peers/KSR)
remotename KSR      # (from /etc/ppp/peers/KSR)
115200      # (from /etc/ppp/peers/KSR)
        # (from /etc/ppp/options.pptp)
connect /usr/sbin/chat -v -f /etc/chatscripts/KSR       # (from /etc/ppp/peers/KSR)
pty pptp vpn.sitelite.com --nolaunchpppd        # (from /etc/ppp/peers/KSR)
crtscts     # (from /etc/ppp/options)
        # (from /etc/ppp/options)
asyncmap 0      # (from /etc/ppp/options)
lcp-echo-failure 4      # (from /etc/ppp/options)
lcp-echo-interval 30        # (from /etc/ppp/options)
hide-password       # (from /etc/ppp/options)
ipparam KSR     # (from /etc/ppp/peers/KSR)
proxyarp        # (from /etc/ppp/options)
usepeerdns      # (from /etc/ppp/peers/KSR)
nobsdcomp       # (from /etc/ppp/options.pptp)
nodeflate       # (from /etc/ppp/options.pptp)
require-mppe        # (from /etc/ppp/peers/KSR)
require-mppe-128        # (from /etc/ppp/options.pptp)
noipx       # (from /etc/ppp/options)
Serial connection established.
using channel 1
Using interface ppp0pptpconfig: monitoring interface ppp0

Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x5c1940c4> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x0 <auth chap MS-v2> <magic 0x2da8618a> <pcomp> <accomp> <callback CBCP> <mrru 1614> <endpoint [local:5f.8a.54.88.3b.2e.4b.d6.9e.23.10.37.b7.55.25.17.00.00.00.00]> < 17 04 06 33>]
sent [LCP ConfRej id=0x0 <callback CBCP> <mrru 1614> < 17 04 06 33>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x5c1940c4> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <auth chap MS-v2> <magic 0x2da8618a> <pcomp> <accomp> <endpoint [local:5f.8a.54.88.3b.2e.4b.d6.9e.23.10.37.b7.55.25.17.00.00.00.00]>]
sent [LCP ConfAck id=0x1 <auth chap MS-v2> <magic 0x2da8618a> <pcomp> <accomp> <endpoint [local:5f.8a.54.88.3b.2e.4b.d6.9e.23.10.37.b7.55.25.17.00.00.00.00]>]
sent [LCP EchoReq id=0x0 magic=0x5c1940c4]
rcvd [CHAP Challenge id=0x0 <feca8b5b4e8a7ff798fa5dba5707de94>, name = "SUNSPOT"]
sent [CHAP Response id=0x0 <da3972d420af533221780f6f4a6cb9190000000000000000af5329976d7e5f9f165b785916aa54c6c421f3ff86defff400>, name = "dhayes"]
rcvd [LCP EchoRep id=0x0 magic=0x2da8618a]
rcvd [CHAP Success id=0x0 "S=A894BCF49DA4C22AB3261969556E502581A488F6"]
CHAP authentication succeeded
sent [CCP ConfReq id=0x1 <mppe +H -M +S +L -D -C>]
rcvd [CCP ConfReq id=0x3 <mppe +H +M +S +L -D +C>]
sent [CCP ConfNak id=0x3 <mppe +H -M +S -L -D -C>]
rcvd [IPCP ConfReq id=0x4 <addr 172.16.0.210>]
sent [IPCP TermAck id=0x4]
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 [CCP ConfReq id=0x5 <mppe +H -M +S -L -D -C>]
sent [CCP ConfAck id=0x5 <mppe +H -M +S -L -D -C>]
rcvd [CCP ConfAck id=0x2 <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> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
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 172.16.0.216> <ms-dns1 172.16.0.24> <ms-dns3 172.16.0.32>]
sent [IPCP ConfReq id=0x3 <addr 172.16.0.216> <ms-dns1 172.16.0.24> <ms-dns3 172.16.0.32>]
rcvd [IPCP ConfAck id=0x3 <addr 172.16.0.216> <ms-dns1 172.16.0.24> <ms-dns3 172.16.0.32>]
rcvd [IPCP ConfReq id=0x6 <addr 172.16.0.210>]
sent [IPCP ConfAck id=0x6 <addr 172.16.0.210>]
Cannot determine ethernet address for proxy ARP
local  IP address 172.16.0.216
remote IP address 172.16.0.210
primary   DNS address 172.16.0.24
secondary DNS address 172.16.0.32
# route -n (after pppd exit)
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.16.0.210    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.9.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         192.168.9.1     0.0.0.0         UG    0      0        0 eth1
pptpconfig: pppd process exit status 0 (started)
ip route add 70.183.24.84 via 192.168.9.1 dev eth1  src 192.168.9.11
ip route add '172.16.0.0/8' dev 'ppp0'
RTNETLINK answers: Invalid argument

pptpconfig: command failed, exit code 2
ip route add '10.0.0.0/8' dev 'ppp0'
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
172.16.0.210    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
70.183.24.xx    192.168.9.1     255.255.255.255 UGH   0      0        0 eth1
192.168.9.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 ppp0
0.0.0.0         192.168.9.1     0.0.0.0         UG    0      0        0 eth1


En maybe i got confused when the forum index is called: Non-Windows operating systems ipv Niet- Windows besturings systemen.

  • igmar
  • Registratie: April 2000
  • Laatst online: 31-01 23:50

igmar

ISO20022

172.16.0.0/8 is een klasse B netwerk, geen klasse A. Dus of 172.0.0.0/8, of 172.16.0.0/16