Client config ifconfig-push format changed?

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
jlinkels58
OpenVpn Newbie
Posts: 1
Joined: Sun Jan 07, 2024 1:04 pm

Client config ifconfig-push format changed?

Post by jlinkels58 » Sun Jan 07, 2024 1:24 pm

I have an OpenVPN server running version 2.3.4.
The server.conf contains this line:

Code: Select all

server 172.16.84.0 255.255.255.0
One of the clients has this config file:
/etc/openvpn/clients/client1
contents

Code: Select all

ifconfig-push 172.16.84.53 172.16.84.54
This works correct.
The config is according to https://openvpn.net/community-resources ... -policies/

Now I have set up a new server, version 2.5.1
The server.conf contains this line:

Code: Select all

server 10.89.32.0 255.255.255.0
One of the clients has this config file:
/etc/openvpn/clients/aserv
contents

Code: Select all

ifconfig-push 10.89.32.5 10.89.32.6
Which is exactly according to the specification on the aforementioned web page.
The configuration of the client fails however.

Code: Select all

net_addr_v4_add: 10.89.32.5/-1 dev tun0
aserv ovpn-vpn-lwd[6507]: sitnl_send: rtnl: generic error (-22): Invalid argument
When I remove the client config file the client get assigned the first address from the pool 10.89.32.2 and works correctly.

But I want to assign this specific address to my client.
When I edit the client config file to contain:

Code: Select all

ifconfig-push 10.89.32.5 255.255.255.0
it also works correctly. But it is not according to the instructions.
That format I found in various user forums (not OpenVPN)
I have used the old format as in the manual for decades, literally
Has this format been changed, or what?

Client: Openvpn 2.5.1
Debian Bullseye

Server: OpenVPN 2.5.1
Raspian Bullsey

Post Reply