How to set rights for user to run OpenVPN client (Linux)

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
csbubbles
OpenVpn Newbie
Posts: 1
Joined: Sat Feb 05, 2011 5:17 pm

How to set rights for user to run OpenVPN client (Linux)

Post by csbubbles » Sat Feb 05, 2011 5:38 pm

OS: Fedora 14
OpenVPN client: 2.1.1 x86_64-redhat-linux-gnu


I have config files to connect to VPN via OpenVPN and it works fine under MS Windows 7.
Here is the problem on Linux...

If I start OpenVPN client as super user (using sudo actually) everything works fine. But I wouldn't like to open terminal to enter this stuff 'sudo openvpn --config ...'.
What I really want is to set OpenVPN connection via GNome Network Connections dialog and run VPN just by one click then.
But if I run just this - 'openvpn --config ...' (and the same thing happens from UI I suppose) it starts OpenVPN without super user rights, so I get the following issue:

Code: Select all

Sat Feb  5 20:29:32 2011 Note: Cannot ioctl TUNSETIFF tun0: Operation not permitted (errno=1)
Sat Feb  5 20:29:32 2011 Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Sat Feb  5 20:29:32 2011 Cannot open TUN/TAP dev /dev/tun0: No such file or directory (errno=2)
So couldn't you help me to solve this issue? How can I set this stuff up to avoid necessity to open console and run client under sudo?

PS And one more questions. Relative paths to keys don't work in config file, only absolute ones do. Is it bug or just 'feature'?

Thanks, Maxim.

User avatar
gladiatr72
Forum Team
Posts: 194
Joined: Mon Dec 13, 2010 3:51 pm
Location: Lawrence, KS

Re: How to set rights for user to run OpenVPN client (Linux)

Post by gladiatr72 » Wed Feb 09, 2011 4:51 pm

Do a search for "network-manager openvpn"

I've had mixed results with that plugin. If you're going to use it, definitely make sure you're running a recent linux distribution. The newer the version of the NM plugin, the better luck you'll have.

Regards,
Stephen
[..]I used to think it was awful that life was so unfair. [...]Wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? -Marcus Cole

Post Reply