Client config ifconfig-push format changed?
Posted: Sun Jan 07, 2024 1:24 pm
I have an OpenVPN server running version 2.3.4.
The server.conf contains this line:
One of the clients has this config file:
/etc/openvpn/clients/client1
contents
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:
One of the clients has this config file:
/etc/openvpn/clients/aserv
contents
Which is exactly according to the specification on the aforementioned web page.
The configuration of the client fails however.
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:
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
The server.conf contains this line:
Code: Select all
server 172.16.84.0 255.255.255.0
/etc/openvpn/clients/client1
contents
Code: Select all
ifconfig-push 172.16.84.53 172.16.84.54
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
/etc/openvpn/clients/aserv
contents
Code: Select all
ifconfig-push 10.89.32.5 10.89.32.6
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
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
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