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

Re: --redirect-gateway, was: Re: [Openvpn-users] Use at hotels


  • Subject: Re: --redirect-gateway, was: Re: [Openvpn-users] Use at hotels
  • From: Tuc at the Beach House <tuc@xxxxxxxxxxxxxxxxxxxxxxxxxx>
  • Date: Mon, 9 Feb 2004 00:21:08 -0500 (EST)

> Ah, yes, that's a problem.
>
	:-/
> 
> The --redirect-gateway implementation needs to be able to get the IP address
> of the current default gateway.  Unfortunately the standard Berkeley sockets
> API doesn't give us a portable way of doing this.  Anyone know how to do this
> on FreeBSD?
>
	Wouldn't you just do the same code that "netstat -r" does? But then
doesn't it need kmem access?
> 
> Having said that, all is not lost.  If you know your gateway address and you
> know your DHCP server address (and if they are both relatively static), you
> can write an --up script with route commands to do this.
> 
	Ok, thanks, still having a problem on the other end of NATing and
getting the "office" side to route the packets to the net and then back
through the tunnel. I tried ipnat, the rules take, but just doesn't end up
doing it.

		Thanks, Tuc/TTSG Internet Services, Inc.