jjones
I've done a lot of reading and searching for how to disable OpenVPN from forcing all traffic through the VPN tunnel.
My goal is to have all traffic route through my local office, NOT the VPN connection. The only thing that should route there is the subnet I specify, 10.20.0.0/24. I don't even want DNS to resolve through the VPN, nor the gateway.
If I comment out the following lines:
#push "redirect-gateway def1 bypass-dhcp"
#push "dhcp-option DNS 208.67.222.222"
#push "dhcp-option DNS 208.67.220.220"
And enter the following line to reach the network on the VPN server:
push "route 10.20.0.0 255.255.255.0"
I can ping any computer on the VPN servers network once I establish the VPN connection, I just can't ping anything on my own network, and internet doesn't work.
I'm sure this has been answered before, but I'm not finding a solution anywhere.
Here is my server.conf file:
port 1194
proto udp
dev tun
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
tls-auth ta.key 0
topology subnet
server 10.8.0.0 255.255.255.0
#push "redirect-gateway def1 bypass-dhcp"
#push "dhcp-option DNS 208.67.222.222"
#push "dhcp-option DNS 208.67.220.220"
push "route 192.168.98.0 255.255.255.0"
ifconfig-pool-persist ipp.txt
keepalive 10 120
cipher AES-128-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
Thank you for any help!