Public IP showing Client not Server

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
Bob Bertrand
Posts: 10
Joined: Sun Jul 31, 2022 9:40 pm

Public IP showing Client not Server

Post by Bob Bertrand » Mon May 01, 2023 6:41 pm

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.

solo
Posts: 1264
Joined: Sun Feb 14, 2021 10:31 am

Re: Public IP showing Client not Server

Post by solo » Mon May 01, 2023 11:43 pm

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

shakibamoshiri
Posts: 288
Joined: Wed Dec 28, 2022 9:10 pm

Re: Public IP showing Client not Server

Post by shakibamoshiri » Tue May 02, 2023 5:12 am

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

solo
Posts: 1264
Joined: Sun Feb 14, 2021 10:31 am

Re: Public IP showing Client not Server

Post by solo » Tue May 02, 2023 7:00 am

This is SSTP. There are more reasons than metric alone.

Post Reply