OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: Tesla2k on May 03, 2024, 09:28:28 AM

Title: OpenVPN: Pushing IPs to clients with csr
Post by: Tesla2k on May 03, 2024, 09:28:28 AM
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
Title: Re: OpenVPN: Pushing IPs to clients with csr
Post by: Tesla2k on May 03, 2024, 09:54:44 AM
I think I found the solution.
When I enter 10.6.2.56/32 in IPv4 Tunnel Network it works.
Title: Re: OpenVPN: Pushing IPs to clients with csr
Post by: muchacha_grande on May 03, 2024, 10:21:14 PM
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