JNOS version: 2.0i<br>OS: Ubuntu 10.10 <br><br>Problem: When loading autoexec.nos, JNOS complains about my "attach tun" line:<br><br><span style="font-family:courier new,monospace">input line: attach tun tun0 1500 0</span><br>
<br>and this message appears in the log file:<br><br><span style="font-family:courier new,monospace">09:56:16 - unable to setup tunnel</span><br><br>Looking at the source code of <span style="font-family:courier new,monospace">tun_attach()</span> in tun.c, this suggests that the tun device is being successfully opened, but that the subsequent <span style="font-family:courier new,monospace">ioctl(tunfd,TUNSETIFF,&ifr)</span> call is failing (although no information on the nature of the failure is logged).<br clear="all">
<br>The tun device is present, as shown by:<br><br><span style="font-family:courier new,monospace">% ls -l /dev/net/tun</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">crw-rw-rw- 1 root root 10, 200 2012-02-13 21:53 /dev/net/tun</span><br>
<br>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?<br><br>Thanks,<br><br>Michael, KI6TYV<br>
-- <br>This cat is pushing a watermelon out of a lake. Your argument is invalid.<br><br>