Get Public IP of VPN Server to Client

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
naveenkakapuri
Posts: 9
Joined: Thu May 28, 2020 9:05 am

Get Public IP of VPN Server to Client

Post by naveenkakapuri » Thu May 28, 2020 9:08 am

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.

drkrool
Posts: 47
Joined: Mon May 25, 2020 4:38 am
Location: Quebec, Canada

Re: Get Public IP of VPN Server to Client

Post by drkrool » Thu May 28, 2020 10:22 am

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.

naveenkakapuri
Posts: 9
Joined: Thu May 28, 2020 9:05 am

Re: Get Public IP of VPN Server to Client

Post by naveenkakapuri » Thu May 28, 2020 10:29 am

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.

drkrool
Posts: 47
Joined: Mon May 25, 2020 4:38 am
Location: Quebec, Canada

Re: Get Public IP of VPN Server to Client

Post by drkrool » Thu May 28, 2020 10:43 am

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?

naveenkakapuri
Posts: 9
Joined: Thu May 28, 2020 9:05 am

Re: Get Public IP of VPN Server to Client

Post by naveenkakapuri » Thu May 28, 2020 12:49 pm

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

drkrool
Posts: 47
Joined: Mon May 25, 2020 4:38 am
Location: Quebec, Canada

Re: Get Public IP of VPN Server to Client

Post by drkrool » Thu May 28, 2020 12:53 pm

Oh ok. Have you tried the securenat feature, that would seems to fit your need

ziddey
Posts: 16
Joined: Sat May 09, 2020 6:42 pm

Re: Get Public IP of VPN Server to Client

Post by ziddey » Thu May 28, 2020 9:17 pm

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)

naveenkakapuri
Posts: 9
Joined: Thu May 28, 2020 9:05 am

Re: Get Public IP of VPN Server to Client

Post by naveenkakapuri » Fri May 29, 2020 7:30 am

Thanks had forgotten about SecureNat, that resolved the issue.

drkrool
Posts: 47
Joined: Mon May 25, 2020 4:38 am
Location: Quebec, Canada

Re: Get Public IP of VPN Server to Client

Post by drkrool » Fri May 29, 2020 7:31 am

Glad it woked!

naveenkakapuri
Posts: 9
Joined: Thu May 28, 2020 9:05 am

Re: Get Public IP of VPN Server to Client

Post by naveenkakapuri » Fri May 29, 2020 8:44 am

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.

drkrool
Posts: 47
Joined: Mon May 25, 2020 4:38 am
Location: Quebec, Canada

Re: Get Public IP of VPN Server to Client

Post by drkrool » Fri May 29, 2020 8:47 am

Is it by any chance using a linux OS?

naveenkakapuri
Posts: 9
Joined: Thu May 28, 2020 9:05 am

Re: Get Public IP of VPN Server to Client

Post by naveenkakapuri » Fri May 29, 2020 8:58 am

No both VPN server had windows 2016 and VPN Client on Windows 10

drkrool
Posts: 47
Joined: Mon May 25, 2020 4:38 am
Location: Quebec, Canada

Re: Get Public IP of VPN Server to Client

Post by drkrool » Fri May 29, 2020 9:08 am

Hmm.. Do you already have a NAT so the securenat would be a double-nat?

naveenkakapuri
Posts: 9
Joined: Thu May 28, 2020 9:05 am

Re: Get Public IP of VPN Server to Client

Post by naveenkakapuri » Fri May 29, 2020 9:50 am

The Server is on AWS lightsail, I belive it has NAT as the local IP is mapped to Public IP.

naveenkakapuri
Posts: 9
Joined: Thu May 28, 2020 9:05 am

Re: Get Public IP of VPN Server to Client

Post by naveenkakapuri » Mon Jun 01, 2020 10:03 am

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.

drkrool
Posts: 47
Joined: Mon May 25, 2020 4:38 am
Location: Quebec, Canada

Re: Get Public IP of VPN Server to Client

Post by drkrool » Mon Jun 01, 2020 10:10 am

Securenat uses a lot more cpu usage. Check how's the cpu usage/load, it could very well be that

Post Reply