Page 1 of 1

Get Public IP of VPN Server to Client

Posted: Thu May 28, 2020 9:08 am
by naveenkakapuri
Is there a way to have public IP at client end same as that of Softether VPN server, once the client connection is established.

Currently if we see the public IP at client end it remains same as provided by ISP, it needs to be as that of the VPNServer.

Re: Get Public IP of VPN Server to Client

Posted: Thu May 28, 2020 10:22 am
by drkrool
Please explain your use case. The way I see it, if you go on the internet to check your ip from an website either from the softether server or the client, you will have the network's internet IP provided from the ISP in both case.

Re: Get Public IP of VPN Server to Client

Posted: Thu May 28, 2020 10:29 am
by naveenkakapuri
Here is the use case.

I have installed SoftEther on a server whose public IP is X.X.X.X

When i connect to it from client having public IP Y.Y.Y.Y, I want client to have same public IP that is X.X.X.X while it is connected to the VPN server.

This is to help users to be able to access resources which have IP based restrictions ONLY Server IP X.X.X.X is allowed to access those resources.

If you use any third Party VPN services like NORD VPN or SUrfeasy VPN, you get the IP of Server at the client end while connected to VPN server.

Re: Get Public IP of VPN Server to Client

Posted: Thu May 28, 2020 10:43 am
by drkrool
I don't quite get how it's possible you don't get the server's ip adress.

When I connect to my server (192.168.3.X) from client (192.168.1.X), the vpn pool the DHCP in my server's lan and provides me an IP in the 192.168.3.X and uses the server's ISP to access the internet.

Isn't it what you are getting?

Re: Get Public IP of VPN Server to Client

Posted: Thu May 28, 2020 12:49 pm
by naveenkakapuri
Maybe I am not able to put my issue correctly, if you are aware when you have restrictions based on IP addresses in OTT or Corporate networks it is based on IP address.
So if you want to connect to that website you need to be having IP that is allowed.
In order to do so we usually have paid VPN services like NordVPN, when you connect to that it gives you option to choose server of a particular region and you get the public IP of that region on your PC.

I wanted to use SoftEther instead of these paid VPN services

Re: Get Public IP of VPN Server to Client

Posted: Thu May 28, 2020 12:53 pm
by drkrool
Oh ok. Have you tried the securenat feature, that would seems to fit your need

Re: Get Public IP of VPN Server to Client

Posted: Thu May 28, 2020 9:17 pm
by ziddey
it routes over the vpn by default unless you've ticked "no adjustments of routing table" in advanced settings in the client manager.

edge cases would be:
1. you're connecting via ipv6. there's a setting you can change for this, but I haven't tested for any issues.
2. the ip of the web server you're trying to access is on-link (no gateway required)

Re: Get Public IP of VPN Server to Client

Posted: Fri May 29, 2020 7:30 am
by naveenkakapuri
Thanks had forgotten about SecureNat, that resolved the issue.

Re: Get Public IP of VPN Server to Client

Posted: Fri May 29, 2020 7:31 am
by drkrool
Glad it woked!

Re: Get Public IP of VPN Server to Client

Posted: Fri May 29, 2020 8:44 am
by naveenkakapuri
Now I am facing another issue, the net speed after connecting to VPN Server is very very slow.

My Server has a good Upload and Download speed around 300 Mbps, whereas when i connect to VPN server using client, the speed I get is less than 10 kbps

Please suggest if there are any changes or configuration i can do

The client speed is around 90 Mpbs when not connected to VPN.

Re: Get Public IP of VPN Server to Client

Posted: Fri May 29, 2020 8:47 am
by drkrool
Is it by any chance using a linux OS?

Re: Get Public IP of VPN Server to Client

Posted: Fri May 29, 2020 8:58 am
by naveenkakapuri
No both VPN server had windows 2016 and VPN Client on Windows 10

Re: Get Public IP of VPN Server to Client

Posted: Fri May 29, 2020 9:08 am
by drkrool
Hmm.. Do you already have a NAT so the securenat would be a double-nat?

Re: Get Public IP of VPN Server to Client

Posted: Fri May 29, 2020 9:50 am
by naveenkakapuri
The Server is on AWS lightsail, I belive it has NAT as the local IP is mapped to Public IP.

Re: Get Public IP of VPN Server to Client

Posted: Mon Jun 01, 2020 10:03 am
by naveenkakapuri
I now tried to install it on a new server at a different datacenter which is a stand alone server with direct WAN IP.

There is no NAT.

However, still the speed over the VPN client is a issue.

This happens only when i enable SecureNAT so that I can get Server IP at Client end.

Re: Get Public IP of VPN Server to Client

Posted: Mon Jun 01, 2020 10:10 am
by drkrool
Securenat uses a lot more cpu usage. Check how's the cpu usage/load, it could very well be that