OpenVPN shows local IP address
On my new Cloudron install, OpenVPN shows as remote IP the IP address of my local router, instead of that of the VPS on which it is installed.
Didn't have this problem on previous Cloudron install, and pretty sure I set up both the same way.
How could I troubleshoot this?
I'm still racking my brain about this. In the OpenVPN settings, I've set up the DNS to point to the VPS so that AdGuard catches it.
I had also set up an OpenVPN client on the router (Freebox Pop, if anyone knows the French market), but I turned that off and it doesn't change it.
How come OpenVPN shows the router IP and not the VPS IP??
I think there is a misunderstanding here.
@abargel said in OpenVPN shows local IP address:
OpenVPN shows as remote IP the IP address of my local router, instead of that of the VPS on which it is installed.
This is correct. The "remote ip" is the actual (public) ip address of your client. Since you are sitting at home and connecting through your router, this will show your current public ip address.
Only when you're connected to your vpn and e.g. opening https://ip.me/, then you will see the public ip of your server.
@fbartels Hm, yes, thank you for taking the time to clarify this rookie mistake!
The confusion came from the fact that I am pointing the DNS of two OpenVPN servers (on VPS1 and VPS2) to the IP of VPS2 where I have AdGuard installed. I am connecting from home on both of them, and on AdGuard, one client shows the IP of VPS1, and the other client shows my home router IP. But thinking about it, this makes sense, as this is where the traffic comes from, from the point of view of AdGuard on VPS2. Correct?
As a "peace of mind" information, could you please confirm that this configuration does not in any way expose my home IP? (except to myself watching on AdGuard)
@abargel The best way to confirm this is to use one of the leak test sites like https://ipleak.org/ . There are various ways IP can be leaked (network, DNS, etc).
@girish Thanks a lot, all is good on that front! Had a bit of a scare there
@abargel As a heads up, be sure to check that on each device you use. Because (unfortunately) openvpn configs are applied differently on different clients since it's a bit platform specific.
@girish Thank you, all looking good so far!