Set Clients TAP-Device Default Gateway

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
KevinGregull
OpenVpn Newbie
Posts: 3
Joined: Wed Feb 09, 2011 1:06 am

Set Clients TAP-Device Default Gateway

Post by KevinGregull » Wed Feb 09, 2011 1:18 am

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)

User avatar
gladiatr72
Forum Team
Posts: 194
Joined: Mon Dec 13, 2010 3:51 pm
Location: Lawrence, KS

Re: Set Clients TAP-Device Default Gateway

Post by gladiatr72 » Wed Feb 09, 2011 3:36 pm

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
[..]I used to think it was awful that life was so unfair. [...]Wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? -Marcus Cole

KevinGregull
OpenVpn Newbie
Posts: 3
Joined: Wed Feb 09, 2011 1:06 am

Re: Set Clients TAP-Device Default Gateway

Post by KevinGregull » Wed Feb 09, 2011 5:35 pm

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

KevinGregull
OpenVpn Newbie
Posts: 3
Joined: Wed Feb 09, 2011 1:06 am

Re: Set Clients TAP-Device Default Gateway

Post by KevinGregull » Wed Feb 09, 2011 5:50 pm

I think I got it.

route 0.0.0.0 0.0.0.0 10.0.0.1

Post Reply