I'm hoping someone can help me figure this issue out.
I'm attempting to direct all traffic from a client router to the server router using OpenVPN. The two routers connect just fine, however when I invoke
push "redirect-gateway def1"
the client router can no longer access webpages. I would like all traffic from the client router to appear as if the traffic was coming from the server to the outside world.
From what I have read from other having similar problems, I think it has to do with the DNS requests. I've tried a variety of different configurations all claiming it fixed the problem with the client router accessing the server's gateway. I read something else about setting routing tables, but I cannot find specific solutions for this configuration. I have server configuration below and a screenshot of the client routers configuration.
Thank you for your time.
#push "route 192.168.0.0 255.255.255.0"
push "dhcp-option DNS 192.168.10.1"
push "dhcp-option WINS 192.168.10.1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
#push "redirect-gateway def1"
server 192.168.10.0 255.255.255.0
dev tun0
proto udp
keepalive 10 120
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
# Only use crl-verify if you are using the revoke list - otherwise leave it commented out
# crl-verify /tmp/openvpn/ca.crl
# management parameter allows DD-WRT\s OpenVPN Status web page to access the server\s management port
# port must be 5001 for scripts embedded in firmware to work
management localhost 5001