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

RE: [Openvpn-users] More thoughts on redirect-gateway


  • Subject: RE: [Openvpn-users] More thoughts on redirect-gateway
  • From: "Andrew Alston" <aalston@xxxxxxxxxxxxx>
  • Date: Thu, 20 Jan 2005 20:26:12 +0200
  • Importance: Normal

Hi,

I've pasted the output of an openvpn --show-net below, dunno if this
will give you any better indication.  Using the --route-method exe
worked perfectly, thanks a million for the help

Andrew

SYSTEM ROUTING TABLE
0.0.0.0 0.0.0.0 165.146.141.42 p=0 i=131077 t=3 pr=3 a=95 h=0
m=1/-1/-1/-1/-1
10.0.0.0 255.0.0.0 10.0.0.1 p=0 i=2 t=3 pr=2 a=122 h=0 m=20/-1/-1/-1/-1
10.0.0.1 255.255.255.255 127.0.0.1 p=0 i=1 t=3 pr=2 a=122 h=0
m=20/-1/-1/-1/-1
10.255.255.255 255.255.255.255 10.0.0.1 p=0 i=2 t=3 pr=2 a=122 h=0
m=20/-1/-1/-1/-1
127.0.0.0 255.0.0.0 127.0.0.1 p=0 i=1 t=3 pr=2 a=122 h=0 m=1/-1/-1/-1/-1
165.146.128.1 255.255.255.255 165.146.141.42 p=0 i=131077 t=3 pr=3 a=95
h=0 m=1/-1/-1/-1/-1
165.146.141.42 255.255.255.255 127.0.0.1 p=0 i=1 t=3 pr=2 a=95 h=0
m=50/-1/-1/-1/-1
165.146.255.255 255.255.255.255 165.146.141.42 p=0 i=131077 t=3 pr=2
a=95 h=0 m=50/-1/-1/-1/-1
224.0.0.0 240.0.0.0 10.0.0.1 p=0 i=2 t=3 pr=2 a=122 h=0 m=20/-1/-1/-1/-1
224.0.0.0 240.0.0.0 165.146.141.42 p=0 i=131077 t=3 pr=3 a=95 h=0
m=1/-1/-1/-1/-1
255.255.255.255 255.255.255.255 10.0.0.1 p=0 i=2 t=3 pr=2 a=122 h=0
m=1/-1/-1/-1/-1
255.255.255.255 255.255.255.255 10.0.0.1 p=0 i=3 t=3 pr=2 a=122 h=0
m=1/-1/-1/-1/-1
SYSTEM ADAPTER LIST
TAP-Win32 Adapter V8 - Packet Scheduler Miniport
  Index = 3
  GUID = {C15A65EF-886C-4AA5-B66F-09707776D28D}
  IP = 0.0.0.0/0.0.0.0 
  MAC = 00:ff:c1:5a:65:ef
  GATEWAY =  
  DHCP SERV = 137.158.120.45 
  DHCP LEASE OBTAINED = Thu Jan 20 19:18:17 2005
  DHCP LEASE EXPIRES  = Fri Jan 20 19:18:17 2006
Intel(R) PRO/100 VE Network Connection - Packet Scheduler Miniport
  Index = 2
  GUID = {62DF4C0C-9875-4E86-B98B-01DBEE8D8FDB}
  IP = 10.0.0.1/255.0.0.0 
  MAC = 00:0c:76:b8:29:8d
  GATEWAY =  
WAN (PPP/SLIP) Interface
  Index = 131077
  GUID = {9224E6AE-C4E8-4393-9729-14B400D0FA43}
  IP = 165.146.141.42/255.255.255.255 
  MAC = 00:53:45:00:00:00
  GATEWAY = 165.146.141.42/0.0.0.0


-----Original Message-----
From: James Yonan [mailto:jim@xxxxxxxxx] 
Sent: Thursday, January 20, 2005 8:08 PM
To: Andrew Alston
Cc: openvpn-users@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Openvpn-users] More thoughts on redirect-gateway


On Thu, 20 Jan 2005, Andrew Alston wrote:

> As referring to my previous email about redirect-gateway, I'm
wondering
> if its trying to insert an interface id when it tries to create that
> route, and because the route is going to a gateway that's not the
> Ethernet interface (it's the ppp interface for my pppoe over adsl),
its
> specifying the wrong interface id in the code and getting the route
> wrong and thereby breaking.
> 
> Hrmmm its weird, because all the other route additions work except for
> that first step where it tries to insert the route to the vpn server
for
> route loop avoidance.
> 
> Anyone ever tried using redirect gateway under windows xp when the
> initial connection was a ppp or pppoe connection? And anyone have any
> success with this?

Try --route-method exe.  This will use the route command as opposed to 
calling the IP helper API which will factor out the possibility that 
OpenVPN is using the wrong interface ID.

There have been other reports of --route-method ipapi failing when RRAS
is 
being used.  It would be useful to see an "openvpn --show-net" before 
the tunnel is started and contrast that against the interface ID which 
OpenVPN thinks the default gateway belongs to.  This may be a bug.

James