Page 1 of 1

Public IP showing Client not Server

Posted: Mon May 01, 2023 6:41 pm
by Bob Bertrand
My VPN server is behind a NAT router which port forwards 443 to it. I've set up SSTP on SoftEther with local bridging to a physical adapter enabled. When a client connects using MS's built in SSTP VPN client and they then go to https://whatismypublicip.com, they are getting the client's Public IP address. It is my understanding that once connected, all traffic on the client that is not on the same subnet as the client (192.168.x.y), such as this request ( 172.64.80.1) should be routed thru the SoftEther VPN server which is now the client's Default GW. Shouldn't this request show that the Public IP Address is that of the Public IP where the SoftEther server is running and not the client's Public IP address which is what it is showing? Obviously my understanding is wrong.

Re: Public IP showing Client not Server

Posted: Mon May 01, 2023 11:43 pm
by solo
Bob Bertrand wrote:
Mon May 01, 2023 6:41 pm
the SoftEther VPN server which is now the client's Default GW.
Have you actually seen the new DG address? Post as code:

Code: Select all

VPN server:
netstat -r
ipconfig /all

VPN client:
netstat -r
ipconfig /all

Re: Public IP showing Client not Server

Posted: Tue May 02, 2023 5:12 am
by shakibamoshiri
if VPN client could connect successfully and
if the default gateway has been set but the client traffic did not go to that gateway and
if client public IP remained the same (was not the remote VPN server's IP)
then the client default gateway's metric is not the least metric in the client routing table

Re: Public IP showing Client not Server

Posted: Tue May 02, 2023 7:00 am
by solo
This is SSTP. There are more reasons than metric alone.