[nos-bbs] Problem attaching tun device

Michael Curry dgspotman at gmail.com
Thu Feb 23 13:43:00 EST 2012


JNOS version: 2.0i
OS: Ubuntu 10.10

Problem: When loading autoexec.nos, JNOS complains about my "attach tun"
line:

input line: attach tun tun0 1500 0

and this message appears in the log file:

09:56:16  - unable to setup tunnel

Looking at the source code of tun_attach() in tun.c, this suggests that the
tun device is being successfully opened, but that the subsequent
ioctl(tunfd,TUNSETIFF,&ifr) call is failing (although no information on the
nature of the failure is logged).

The tun device is present, as shown by:

% ls -l /dev/net/tun
crw-rw-rw- 1 root root 10, 200 2012-02-13 21:53 /dev/net/tun

This seems to smack of a permissions problem, but the permissions on the
device are open, as you can see. Anyone have any thoughts on what's going
on and how to work around it?

Thanks,

Michael, KI6TYV
-- 
This cat is pushing a watermelon out of a lake. Your argument is invalid.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tapr.org/pipermail/nos-bbs_lists.tapr.org/attachments/20120223/0aa02829/attachment.html>


More information about the nos-bbs mailing list