1
HOWTO START VDE WITH TAP BY NON-ROOT USERS
2
(tested on FreeBSD 6.2)
4
- Look at output of "kldstat" for module "if_tap.ko",
5
if you can't find it do "kldload if_tap.ko".
7
# echo "if_tap_load=YES" >> /boot/loader.conf
8
to load it automatically at startup.
10
- Allow users to open tap interfaces:
11
# sysctl net.link.tap.user_open=1
13
# echo "net.link.tap.user_open=1" >> /etc/sysctl.conf
14
to enable it automatically at startup.
16
- Adjust devfs rules (assuming your users belong to 'vde' group):
17
# echo "own tapN root:vde" >> /etc/devfs.conf
18
# echo "perm tapN 0660" >> /etc/devfs.conf
19
N is interface number, use tap* if you want the same behaviour
22
- Create an interface:
24
# /etc/rc.d/devfs restart