
Everything works just fine, the home client is able to access all office lan services.
The only trouble is that the home client keeps receiving network settings from the office router (which is also a dhcp server for the office lan) which obviously screws up its route tables and the home gateway is overriden by the route to the office gateway.
The client runs on Windows 7 Home premium
The OpenVPN server runs on Windows Server 2008 R2
The Office router is a TP-Link TR-W1043ND
I tried to suppress the office DHCP by adding a server-bridge directive to the server config but the client still keeps getting the IP & gateway from the office DHCP instead. Adding route-nopull to the client didn't help either as these settings are not pulled from the OpenVPN server.
Server config:
Code: Select all
local 192.168.226.2
port 1194
proto udp
dev tap
dev-node OpenVPN
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
tls-server
server-bridge 192.168.226.1 255.255.255.0 192.168.226.200 192.168.226.254
client-to-client
keepalive 10 120
comp-lzo
max-clients 10
persist-key
persist-tun
status openvpn-status.log
verb 6
Code: Select all
proto udp
dev tap
tls-client
remote <office_router_public_ip> 1194
resolv-retry infinite
nobind
ca ca.crt
cert myclient.crt
key myclient.key
comp-lzo
verb 6
Code: Select all
Start IP Address:192.168.226.100
End IP Address: 192.168.226.199
Default Gateway: 192.168.226.1
Code: Select all
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.160 276
Code: Select all
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.160 276
0.0.0.0 0.0.0.0 192.168.226.1 192.168.226.108 30
Thank you very much for helping me, I've searched tons of resources but I must be making some stupid mistake somewhere...