I have Ubuntu 18.04 and openvpn 2.4.4. When I try to connect with the vpn I can't use the internet anymore, only the resources behind the vpn. I can't even ping 126.96.36.199 (all packets lost). Smh this only happened to me and not other people using the same script. However, this applies to 3 different devices of mine.
The following is the config content
dev tun client proto <tcp> <ca> </ca> <cert> </cert> <key> </key> remote-cert-eku "TLS Web Server Authentication" remote x.x.x.x z redirect-gateway def1 persist-key persist-tun verb 3 mute 20 keepalive 10 60 cipher AES-256-CBC auth SHA512 float reneg-sec 3660 nobind mute-replay-warnings auth-user-pass ;remember_connection 0 ;auto_reconnect 1
I have no idea anymore what is wrong here.
I did try the following solution approach: OpenVPN connecting but no internet access on Ubuntu 16.04 / 18.04
But it does not work. When I check the box "use connection only for resources on its network" I can access the internet but I can not access the resources on my vpn network. If I dont check that box, I cant access the internet but I can access my vpn network resources.