Goodmorning everyone,
I hope I will not miss anything in the way of writing this urgent problem of mine and that I have been unable to solve with openvpn for days.
I have a vpn server on raspberry which I can connect perfectly from PCs and smartphones.
However from the PC in my office I can't connect correctly. Or rather, I connect, the vpn works (I see the clients in my LAN at home) I see the network resources in the office, ping 8.8.8.8 ok but I don't surf!
I thought it was a DNS problem but even putting the google ip address in the browser (216.58.205.195) doesn't solve it.
I would like that when I connect from the office PC only the traffic towards 192.168.1.0/24 passes into the vpn and all the rest passes with the office settings.
For this I modified the .ovpn file I have in the office, leaving the "redirect-gateway" option active on the server but adding the DNS of my office:192.168.100.30
Can someone give me a hand? I am in crisis without ideas. Thank you
here my .ovpn file for modifications
client
dev tun
proto udp
remote xxxxx.myddns.net 1194
resolv-retry infinite
nobind
persist-key
persist-tun
key-direction 1
remote-cert-tls server
tls-version-min 1.2
verify-x509-name server_xxxxxxxxxxxxxxxxxx name
cipher AES-256-CBC
auth SHA256
auth-nocache
--pull-filter ignore redirect-gateway
route 192.168.1.0 255.255.255.0
dhcp-option DNS 192.168.100.30
verb 3