Fix tunnel support in FreeBSD