I'm totally new to OpenVPN but I generally know my way around Ubuntu and Windows. I'm having an issue with OpenVPN that I'm hopeful someone can help me with.
My goal is to set up an OpenVPN server that runs on Ubuntu (on Digital Ocean to be specific) and have several of my Windows computers connect to it. I've actually achieved that but I lose Internet on the Windows machines when they connect.
My objectives are:
- Have each Windows machine connect to the internet as it did before, not using the VPN. No changes to DNS or anything else.
- Have a small virtualized local network (10.x) where the Windows machines can each see each other and share/RDP/etc.
- Have the Windows machines run OpenVPN as a service so it immediately works on reboot without a login needed.
- Low priority but nice-to-have, I'd like to assign static IPs to the clients as it's a small deployment and to remember the numbers would be simpler than having to look at server logs to find out their IP every time.
That script creates a x.ovpn file that I then download to the Windows machines and use it for connection. I put it in the C:\Program Files\OpenVPN\config directory and it seems to work fine.
The service loads and connects without issue but again, I lose my internet, meaning I'm unable to browse to major sites using Chrome. Once OpenVPN is connected, I can ping the 10.x ips from server and client, but I can't browse the internet. As soon as I disconnect the OpenVPN service, I lose the 10.x ips but browsing the Internet works fine.
I have tried:
- Editing x.ovpn to add route-nopull
- Editing x.ovpn to remove resolv-retry infinite
- Editing the service to add --pull-filter ignore redirect-gateway as a parameter to the binary
- Editing /etc/openvpn/server/server.conf to remove all the push DNS and push route stuff
I'm on Ubuntu 18.04 on the server and up-to-date W10 on the clients. Again, the main goal is to avoid the VPN entirely for all but 10.x traffic.
Really appreciate any help.