I have a working open vpn connection using the socks-proxy option I can ping and connect to any machine on the vpn lan, but if I enable push redirect-gateway def1 on the server side I can no longer ping the destination vpn lan or access the internet. The goal is to redirect all internet traffic through the vpn connection using the socks-proxy. Any suggestions are appreciated.
Here is the server config
persist-key
persist-tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
dev tun1
dh /etc/openvpn/dh2048.pem
ifconfig-pool-persist /tmp/openvpn_443-ipp.txt
key /etc/openvpn/server.key
log /tmp/openvpn_443.log
port 443
proto tcp
server 10.9.0.0 255.255.255.0
verb 3
push redirect-gateway def1
client config:
client
persist-key
persist-tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/client.crt
dev tun
key /etc/openvpn/client.key
log /tmp/openvpn.log
tls-timeout 2
<connection>
remote 127.0.0.1 7777
proto tcp
connect-retry 10
</connection>
remote-cert-tls server
verb 7
Thank you.