OpenVPN: Pushing IPs to clients with csr

Started by Tesla2k, May 03, 2024, 09:28:28 AM

Previous topic - Next topic
Hello,
I upated an old OpnSense installation to the current Version (24.1.6). I used csr to push specifiv IPs to my OpenVPN clients e.g. ifconfig-push 10.6.2.57 10.6.2.58.
I now learned that this has been removed and I need to use "IPv4 Tunnel Network". But when I enter 10.6.2.57/32 there the client seems to get the wrong IP. I get this message on the client:
There is a problem in your selection of --ifconfig endpoints [local=10.6.2.59, remote=10.6.2.58].

.58 and .59 insteaad off .57 and .58

What am I doing wrong? How can I fix it.

Thank You

I think I found the solution.
When I enter 10.6.2.56/32 in IPv4 Tunnel Network it works.

Hi, Tesla2k, that is indeed the right way to do it. I found myself with that same problem and arrived to the same solution.

Cheers