Connected to OpenVPN server but Public IP address remains the same
-
Could anyone please tell me why my connection and invariably the traffic is not routed through the VPN despite being successfully connected to it?
IPleak.net shows the same public IP from my mobile operator.
-
@lamia Here is the error being reported - https://imgshare.io/image/screenshot-20210816-213400-copy-1080x493.pJT7bx . Pardon me for the shared link. I'm on a constrained device.
-
@lamia
Presumably your client doesn't add the routs.
Did you check "Redirect gateway" in the server settings?
Did you add anoutbound NAT rule?From the Screenshot I suspect that your client isn't compatible with the provided settings. You should export the settings with "Legacy Client" checked.
-
Enabling gateway redirect fixed it.
How can I get it to work without the redirection? Other ovpn confs from other providers don't require the redirection. Any option to (un)check in Pfsense?
-
@lamia said in Connected to OpenVPN server but Public IP address remains the same:
How can I get it to work without the redirection?
What are the concerns on this?
Directing upstream traffic to a VPN server means that the default route has to point to the servers virtual IP. This is what "redirect gateway" does in the end.
And this is what you need, if you want to use the servers public IP when accessing the internet.Other ovpn confs from other providers don't require the redirection.
Most VPN providers push the default route to the clients (push redirect-gateway def1). So it needs not to be added to the .ovpn file. This effects exactly the same on the client. It makes the client adding a default route pointing to the server.
-
@viragomann Thank you Sir.
The redirect IPv4 Gateway option in PfSense OPENVPN did the trick.