Created attachment 1606 [details] check for open tun/tap device Freebsd allows a non-root user to open a tap device (net.link.tap.user_open=1) at which point it can be marked up automatically (net.link.tap.up_on_open=1) so that root access is not required to get a functioning tap server side. #ifdef SSH_TUN_FREEBSD version of sys_tun_open in openbsd-compat/port-tun.c dosen't allow for this. It will successfully open a tap for non-root but will then attempt to IFF_UP which will fail. Test if the interface is already marked up and leave alone if it is. At this time, up on open is only available to tap devices.
Created attachment 1911 [details] /home/djm/sshd-tun-iff_up.diff Unified diff format against current
Comment on attachment 1911 [details] /home/djm/sshd-tun-iff_up.diff I think this can make release.
Patch applied. This will be in OpenSSH 5.6, due soon.
With the release of OpenSSH 5.6p1 this bug is now considered closed. If you have further problems please reopen or file a new bug as appropriate.