Page 1 of 1

Set Clients TAP-Device Default Gateway

Posted: Wed Feb 09, 2011 1:18 am
by KevinGregull
Hi Guys,

I got a little Problem on the Clientside. I can not access the VPN via Windows 7 as long as the Default Gateway is not set.
Windows declares the VPN Network as "Unidentified Network", so I can not make it a Homegroup, or Workgroup.
If I go to the TAP Device -> TCP/IPv4 and set the IP including the default Gateway manually it works just fine.
Of course I do not want to edit it manually everytime I connect to the VPN Server. Is there a Serverside way
to push the Default Gateway to the Client? I do not want to route every Traffic through the VPN, I am just
looking for a way to set the Default Gateway Address of the OpenVPN Network Device to the VPN Server IP.

(ipconfig shows blank default gateway)

Re: Set Clients TAP-Device Default Gateway

Posted: Wed Feb 09, 2011 3:36 pm
by gladiatr72
Hello,

Out of curiosity, what version of OpenVPN are you using on your Windows 7 system? I'm running 2.2-b5 on my Windows 7 VM and have no trouble connecting to either a bridge or a routed vpn link.

-Stephen

Re: Set Clients TAP-Device Default Gateway

Posted: Wed Feb 09, 2011 5:35 pm
by KevinGregull

Code: Select all

OpenVPN 2.2-beta5 i686-pc-mingw32 [SSL] [LZO2] [PKCS11] built on Nov 30 2010
The connection is not the Problem. I can connect without any Problems,
but Windows wont let me set the Network to a Homenetwork, becuase
it is an "Unidentified Network". When I enter the Default Gateway,
everything is working fine, only Problem is setting this automaticly when
connecting to the VPN Server.
Image

Re: Set Clients TAP-Device Default Gateway

Posted: Wed Feb 09, 2011 5:50 pm
by KevinGregull
I think I got it.

route 0.0.0.0 0.0.0.0 10.0.0.1