[oconf] iproute option is not working

Need help configuring your VPN? Just post here and you'll get that help.

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
d33d34rt
OpenVpn Newbie
Posts: 3
Joined: Thu Feb 08, 2018 5:52 pm

[oconf] iproute option is not working

Post by d33d34rt » Thu Feb 08, 2018 6:15 pm

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

d33d34rt
OpenVpn Newbie
Posts: 3
Joined: Thu Feb 08, 2018 5:52 pm

Re: [oconf] iproute option is not working

Post by d33d34rt » Fri Feb 09, 2018 10:40 am

Ok reading the source code : it seems that this option have to be set while building the Makefile.

d33d34rt
OpenVpn Newbie
Posts: 3
Joined: Thu Feb 08, 2018 5:52 pm

Re: [oconf] iproute option is not working

Post by d33d34rt » Fri Feb 09, 2018 11:09 am

Okay, adding --enable-iproute to ./configure path solved my problem.

Regards,

usersina
OpenVpn Newbie
Posts: 1
Joined: Sat Jun 25, 2022 10:55 am

Re: [oconf] iproute option is not working

Post by usersina » Sat Jun 25, 2022 10:56 am

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?

Post Reply