A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

November 17, 2014

Bridge Openvpn + non root user

Forums: 

Hi everybody,

I'm setting up an openvpn server on my computer. I want to redirect my browser traffic through it and be able to access my printer and external hdd from the outside world.

The server works correctly and I can connect to it as long as I start openvpn with root proviledges. I'd like to do that with a non root user and I'm a bit stuck.

I've edited the sudoers file so that I can use openvpn and ip without switching to root, but the server requests that I use ifconfig to change my ip address (it's a bridged VPN with a tap device). I don't think it would be safe to allow the use of ifconfig to a non root user.

What would be the best and safest way to solve this problem?

Thanks in advance.

Gaubl

Click Here!