Wrong IP Address for Client

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
HamburgJoe
OpenVpn Newbie
Posts: 2
Joined: Mon Apr 11, 2022 3:10 pm

Wrong IP Address for Client

Post by HamburgJoe » Mon Apr 11, 2022 3:22 pm

Hi all,

I have a problem, that my clients receive a "wrong" IP-Address.

I have running Ubuntu 20.4 LTS running in VirtualBox, host is a Win 11 device.
On Ubuntu I have installed and running OpenVPN Access Server V2.10.2 with the Standard config after installation.

My Clients are able to establish a successfull connection via OpenVPN to my network. And here is my "maybe stupid" question:
The clients are receiving an 172.27.224.0 IP-Address, which I can find in Configuration -> VPN Settings.
The problem now is, that I am normally on a 192.168.55.0 network and the connected clients should get a static IP-Address (e.g. 192.168.55.200).
There is just one client connecting from time to time. And I need to connect from my PC to this static IP-Address.

When I enter the Static IP-Address for this specific user (User Management -> User Permission) I receive the error message:
There is no subnet configured for static (per-user) VPN IP addresses. Configure one on the VPN Settings page

When I am entering "Static IP Address Network (Optional)" in Configuration -> VPN Settings with the IP-Address 192.168.55.0 I am receiving the error message:
192.168.55.0 is not a canonical subnet -- the network address must be the first address in the subnet, such as 192.168.16.0

What am I missing? What do I wrong?

Your help and input is highly appreciatet.

Thank you very much in advance and have a good day

Joe

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1332
Joined: Tue Feb 16, 2021 10:41 am

Re: Wrong IP Address for Client

Post by openvpn_inc » Mon Apr 11, 2022 3:26 pm

Hello Joe,

Do not try to make the VPN clients go onto the same subnet as your real network. This will just create a conflict.

VPN stands for virtual private network. Meaning an entirely new private network that exists only virtually between the VPN server and the VPN clients. The Access Server functions as a router to make it possible to reach the real network connected to the Access Server. That means your VPN tunnels are using a completely separate virtual network, and it is supposed to be that way.

You can go to VPN Settings > Routing > Allow access to these private subnets > 192.168.55.0/24 > yes, using NAT. Then VPN clients will be able to reach IP addresses in the 192.168.55.0/24 subnet.

Kind regards,
Johan
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

HamburgJoe
OpenVpn Newbie
Posts: 2
Joined: Mon Apr 11, 2022 3:10 pm

Re: Wrong IP Address for Client

Post by HamburgJoe » Mon Apr 11, 2022 4:00 pm

Hi Johan,

I will do it this way.

Thanks a lot for clarification.

Cheers Joe

Post Reply