[nos-bbs] Problem attaching tun device

ve2hom Pascal ve2hom at gmail.com
Thu Feb 23 18:07:56 EST 2012


Hello Michael,
     I think you need to be root to be able to create the tun0 interface

73 de Pascal
ve2hom

Le 23/02/12 13:43, Michael Curry a écrit :
> 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/7bf42cee/attachment.html>


More information about the nos-bbs mailing list