How to set rights for user to run OpenVPN client (Linux)
Posted: 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:
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.
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)
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.