OpenVPN Configuration Issue - Public IP

Solution 1:

I don't know how your specific provider is set up to work, but the VPN connection is normally set up to route all traffic through the VPN.

Check if your ISP modem is the default gateway.

$ ip route
default via 192.168.0.1 dev wlo1  proto static  metric 600

where 192.168.0.1 is my modem IP in this case. The VPN connection (tun0) should also be in this table if you've connected successfully.

Delete the default gateway, and if that fixes the IP issue (or if you can't connect at all), it means your traffic was being routed through your ISP.

$ sudo ip route del default via 192.168.0.1

You can add it again with

$ sudo ip route add default via 192.168.0.1