TUN/TAP Device Driver

Edit Package tuncfg

Tuncfg is a tunneling device management and configuration daemon. The idea is that tuncfg encapsulates all root-level functionality normally required by a private networking software. Namely -
* creation of tunneling devices; this requires an access to /dev/net/tun file, which _usually_ has 700 access mask.
* configuration of the tunneling device using ifconfig, which is always a root-level operation.

Tuncfg must be run with superuser privileges. It will daemonize and open a listening domain socket /var/run/tuncfg.sock. Upon accepting the connection on this socket, it will issue an open() call for /dev/net/tun file (thus instantiating the tunneling device) and pass obtained FD to the peer process. It will also query and pass the MAC address of the device to the peer process.

It will then listen for ifconfig requests from the peer. The request contains just an IP address and mask. Tuncfg will lookup the tun device the peer owns and will assign IP/mask to it using system() call for ipconfig command.

'tuncfg' starts the daemon (it won't start twice, there's a check)
'tuncfg -d' starts the console version (useful for debugging)

Refresh
Refresh
Source Files
Filename Size Changed
tuncfg.patch 0000001060 1.04 KB
tuncfg.spec 0000002092 2.04 KB
tuncfg.tar.bz2 0000004232 4.13 KB
Latest Revision
Huaren Zhong's avatar Huaren Zhong (zhonghuaren) committed (revision 4)
Comments 0
openSUSE Build Service is sponsored by