TAP driver support in FreeBSD (Developing)
Posted: Fri Mar 06, 2015 1:07 pm
After reading TunTap.h and some information about Universial TAP/TUN driver, and discovered that SoftEther for MacOS X already supported TAP. Theoretically says, the TAP driver could work on FreeBSD.
Let's goes through some basic
1. TAP/TUN driver is a way to let user-land application simulate a kernel space driver (tapX/tunX) via character devices (/dev/tapX)
2. FreeBSD included Universal TAP/TUN driver already, and so in MacOS X, which shares the same TAP driver headers.
3 OpenVPN is already using Universal TAP/TUN driver in FreeBSD with TAP adapter support.
Just had a quick look on source codes, it seems that there's some limitation caused by VLAN, which is in "VlanUnix.c" and make the TAP driver support was disabled in FreeBSD.
So, I wanted to knows:
1) Will there be any plan to get TAP driver working in FreeBSD?
2) Are there any technical difficulties causing leak of support in FreeBSD?
If it is just a problem of time, I may be able to offer some help on coding.
The problems I am facing are:
1) The host OS cannot connect to virtual hub by LocalBridge. e.g. Other clients in the same virtual hub are addressed within 192.168.1.0/24 network and can communicate with others, but I can't make the host OS connected even using 192.168.1.1/24 IP address, only DHCP requests from host OS were forwarded to the virtual hub.
2) I need to use host OS as router, instead of SecureNAT, as I need those firewall capabilities
Let's goes through some basic
1. TAP/TUN driver is a way to let user-land application simulate a kernel space driver (tapX/tunX) via character devices (/dev/tapX)
2. FreeBSD included Universal TAP/TUN driver already, and so in MacOS X, which shares the same TAP driver headers.
3 OpenVPN is already using Universal TAP/TUN driver in FreeBSD with TAP adapter support.
Just had a quick look on source codes, it seems that there's some limitation caused by VLAN, which is in "VlanUnix.c" and make the TAP driver support was disabled in FreeBSD.
So, I wanted to knows:
1) Will there be any plan to get TAP driver working in FreeBSD?
2) Are there any technical difficulties causing leak of support in FreeBSD?
If it is just a problem of time, I may be able to offer some help on coding.
The problems I am facing are:
1) The host OS cannot connect to virtual hub by LocalBridge. e.g. Other clients in the same virtual hub are addressed within 192.168.1.0/24 network and can communicate with others, but I can't make the host OS connected even using 192.168.1.1/24 IP address, only DHCP requests from host OS were forwarded to the virtual hub.
2) I need to use host OS as router, instead of SecureNAT, as I need those firewall capabilities