network-manager openvpn can't setup tun

Bug #298366 reported by u-foka
2
Affects Status Importance Assigned to Milestone
network-manager-openvpn (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: network-manager-openvpn

Hy!

I tryed to use openvpn with networkmanager and a tap interface
My problem was how openvpn (running as a regular user) can't setup the new tap interface because /dev/net/tun has only write access by root.

The solution was really simple:
Added a new group identifying users who has acces to tun
# sudo addgroup --system tunusers
Added myself into that group
# sudo adduser u-foka tunusers
Changed the last line in /etc/udev/rules.d/20-names.rules to add rw rights to that group on tun
The original line: KERNEL=="tun", NAME="net/%k"
My new one: KERNEL=="tun", NAME="net/%k", GROUP="tunusers", MODE="660"

I reported this to help others can't use it, and maybe someone may release a bugfix. I say someone because I don't known ho is responsive of this. Because this isn't part of network-manager-openvpn.

Thanks!
u-foka

P.S.: I'm using an up-to-date Intrepid installed from the release disc.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.