portseven
Hi I have a Windows7 Client that is connecting to a Ubuntu based 2.3 OpenVPN server using a TAP (Bridged) configuration
I want the client to have access to both the subnet on the TAP interface as well as the internet, I don't really care if its over the VPN or local (local is preferred for traffic)
I am struggling, my first thought, was that i didn't want any routes set, and so just push
push "dhcp-option DNS 192.168.1.10"
I do that, but it sets 2 default routes on my client, the existing one with a metric of 10 and another that has the subnet (192.168.1.0) as the other default gateway with a metric of 20
So i tried to force all traffic to the gateway on the server side with
push "redirect-gateway local"
it sets it with only one default route, but again the gateway is the subnet (192.168.1.0) and not what the router should be (192.168.1.1)
I tried
push "redirect-gateway def1"
but that goes back to the 2 default route situation..
help!
portseven
Yes that doumentaion doesn't give details of how to force one working gateway on the client machine
I have set the config back to
push "redirect-gateway def1 bypass-dhcp"
push "route 192.168.1.0 255.255.255.0"
That allows the client to see the servers LAN, but sets 2 default gateways, I have setup a proxy server on the vpn server and the client can use that but thats not ideal, i want to be able to set the default route correctly.