[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

RE: [Openvpn-users] Route add fail with IPAPI and PPP.


  • Subject: RE: [Openvpn-users] Route add fail with IPAPI and PPP.
  • From: "Andrew Alston" <aalston@xxxxxxxxxxxxx>
  • Date: Sat, 22 Jan 2005 04:37:27 +0200
  • Importance: Normal

The quick work around for this under windows is to use --route-method
exe, which will use windows's route command to add the route instead of
the api, this fixes the redirect-gateway option, well it did on my xp
box.  Not sure as to the answer to the rest of the question though

Andrew

-----Original Message-----
From: openvpn-users-admin@xxxxxxxxxxxxxxxxxxxxx
[mailto:openvpn-users-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Andrew
J. Richardson
Sent: Saturday, January 22, 2005 12:03 AM
To: Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
Subject: RE: [Openvpn-users] Route add fail with IPAPI and PPP.



> Before I start digging into the problem that seems to occur 
> when OpenVPN 
> tries to add routes on Windows via IPAPI when using a PPP or PPPoE 
> adapter, there's something I'd like to have explained to me.
> 
> I perfectly understand normal IP subnetting and routing, but I don't 
> understand exactly how PtP links work.
> 
> I though on a PtP link you always have a local IP address and 
> a remote IP 
> address, like when you deal with tun interfaces and OpenVPN, 
> you specify 
> your local IP address, and the IP address on the remote end. 
> You can then 
> add routes over this PtP link by specifying the remote end IP 
> address as 
> gateway address.
> 
> When dialing with a modem in windows, this does not seem to 
> be the case. 
> I'm assigned an IP address via PPP, with a netmask of 
> 255.255.255.255, but 
> I can't see any remote IP address, and the added default gw 
> points to my 
> own IP address.

I'd like to know the answer to this, too, because it breaks using
OpenVPN
with the redirect-gateway option.

If I use OpenVPN with the redirect-gateway directive on a typical LAN
segment and redirect the gateway to my home machine I can tunnel
everything
through home just fine.

If I use the directive when dialed to my cell provider's network (a PtP
connection as Mathias described) the redirect fails at adding the first
route (a direct route to my existing "gateway").  OpenVPN without the
redirect-gateway directive works just fine, though.  I just can't
redirect
all my traffic to a remote gateway.

Andrew



____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users


____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users