Page 1 of 1

[oconf] iproute option is not working

Posted: Thu Feb 08, 2018 6:15 pm
by d33d34rt
Dear all,

I'm trying to run unpriviledge OpenVpn client & server.
For this I've followed the available documentation :https://openvpn.net/index.php/open-sour ... l#security

Everything is okay (my users can access ip command using the sudo tricks, but when it comes with the iproute to link it, it does not work.
I got the following message :

Code: Select all

  d33d34rt@/home/d33d34rt % openvpn --iproute /usr/bin/ipunpriv --config client.conf
Options error: Unrecognized option or missing or extra parameter(s) in [CMD-LINE]:1: iproute (2.4.4)
Use --help for more information.

When putting this setting in my conf file I got the same error

Code: Select all

d33d34rt@/home/d33d34rt % openvpn client.conf
Options error: Unrecognized option or missing or extra parameter(s) in /home/d33d34rt/Filer/Packages/OpenVPN/client.conf:25: iproute (2.4.4)
Use --help for more information.
Looking at the man, the command seems correct (either in CLI or directly in the script).

I'm using Arch client and Debian server. Both comes from the last OpenVpn version I compiled (I just disabled lzo on the server).
The version are 2.4.4.

Does anyone encoutered the same issue ?

Help is appreciated.

Thanks

Re: [oconf] iproute option is not working

Posted: Fri Feb 09, 2018 10:40 am
by d33d34rt
Ok reading the source code : it seems that this option have to be set while building the Makefile.

Re: [oconf] iproute option is not working

Posted: Fri Feb 09, 2018 11:09 am
by d33d34rt
Okay, adding --enable-iproute to ./configure path solved my problem.

Regards,

Re: [oconf] iproute option is not working

Posted: Sat Jun 25, 2022 10:56 am
by usersina
I'm a bit confused. So I should uninstall openvpn from pacman and build it on my own with the --enable-iproute from the source code at https://github.com/OpenVPN/openvpn?