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

Re: [Openvpn-users] --redirect-gateway makes DHCP-ip default gw

  • Subject: Re: [Openvpn-users] --redirect-gateway makes DHCP-ip default gw
  • From: Mathias Sundman <mathias@xxxxxxxxxx>
  • Date: Wed, 15 Dec 2004 20:19:36 +0100 (CET)

On Wed, 15 Dec 2004, Ferenc-Jan wrote:


I am having problems with 2.0 server (1.6/2.0 p2p work fine) between W2K and Linux. Tunnel gets set up successfully (ping, smb works), but the w2k routing table looks strange to me. The tunnel entries are:        1        1          1

Has this got to do with the virtual DHCP server? .1 is the Linux endpoint, .6 the w2k endpoint. I want to route everything from w2k through the tunnel. I can't manually add as default gateway; w2k complains 'the gateway is not in the same network as the interface.'

The routing table above looks correct. Windows does not support true Point-to-Point tunnels as the TAP driver is currently implemented, therefor OpenVPN emulates this by using a /30 ( subnet.

When you are assigned IP address, .5 is your gateway. .1 is OpenVPN's IP address yes, but not on the /30 subnet that has been assigned to you.

I tried out --redirect-gateway, but that added as the default gw, which obviously did't work.

That's what it should do.

What doesn't work? You probably lack some other route, either on the client, server or the machine behind the server you're trying to reach.

Mathias Sundman                  (^)   ASCII Ribbon Campaign
OpenVPN GUI for Windows           X    NO HTML/RTF in e-mail
http://www.nilings.se/openvpn    / \   NO Word docs in e-mail

Openvpn-users mailing list