Aleph <aleph[arroba]euskalnet[punto]net> wrote:
> # route -n (before pppd)
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 195.239.174.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 0.0.0.0 195.239.174.1 0.0.0.0 UG 0 0 0 eth0
....
> Connect: ppp0 <--> /dev/pts/2
> sent [LCP ConfReq id=0x1 <mru 1000> <asyncmap 0x0> <magic 0xce639121>
> <pcomp> <accomp>]
....
> local IP address 82.130.171.199
> remote IP address 195.239.128.19
> # route -n (after pppd exit)
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 195.239.128.19 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 195.239.174.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 0.0.0.0 195.239.174.1 0.0.0.0 UG 0 0 0 eth0
> pptpconfig: pppd process exit status 0 (started)
> ip route add 195.55.31.21 via 195.239.174.1 dev eth0 src 195.239.174.158
Up front: I don't know much about VPN details so this reply is just a
guess based only on some assumptions rather than facts.
I think you will need to add a default route through the PPP interface:
ip route add default dev ppp0
This can be done in /etc/ppp/ip-up (or in the ip-up.local that some
distributions use).
> 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
> 195.55.31.21 195.239.174.1 255.255.255.255 UGH 0 0 0 eth0
> 195.239.128.19 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 195.239.174.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 0.0.0.0 195.239.174.1 0.0.0.0 UG 0 0 0 eth0
A default route through the PPP interface is very likely required for the
VPN session:
195.239.128.19 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
0.0.0.0 195.239.128.19 0.0.0.0 UG 0 0 0 ppp0
I also believe you should also find how 195.239.174.1 was set as a default
route in bringing up the new VPN routing and disable it (unless it was
accidently omitted from the "before" routing you show above).
> /* (This is the frontier between connection and disconnetion log) */
> pptpconfig: restoring routing and DNS configuration
> ip route del 195.55.31.21 via 195.239.174.1 dev eth0 src 195.239.174.158
> mv /etc/resolv.conf.orig.prepago.config /etc/resolv.conf
> pptpconfig: routing and DNS configuration restored
-- Clifford Kite Email: "echo
xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads:
http://ckite.no-ip.net/
/* Speak softly and carry a sucker rod (See man syslogd, footnote to
recommendation 4 under SECURITY THREATS). */