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
TAP driver support in FreeBSD (Developing)
-
- Posts: 3
- Joined: Fri Mar 06, 2015 12:56 pm
TAP driver support in FreeBSD (Developing)
Last edited by kennylam on Mon Mar 09, 2015 7:40 am, edited 1 time in total.
-
- Posts: 3
- Joined: Fri Mar 06, 2015 12:56 pm
Re: TAP driver support in FreeBSD
My follow-up action is to implement it by myself.
The current progress is nice, TAP device was connected to SoftEther, just have few adjustments has to be done.
How can I submit the patch? I had forked SoftEtherVPN on GitHub, and will publish my work on it.
The current progress is nice, TAP device was connected to SoftEther, just have few adjustments has to be done.
How can I submit the patch? I had forked SoftEtherVPN on GitHub, and will publish my work on it.
-
- Posts: 2
- Joined: Wed Mar 18, 2015 3:56 pm
Re: TAP driver support in FreeBSD (Developing)
I think I have exactly same issue. (FreeBSD, no securenat)
Can you share your patch? I can test from my server as well.
Can you share your patch? I can test from my server as well.
-
- Posts: 2
- Joined: Thu Mar 19, 2015 2:48 am
Re: TAP driver support in FreeBSD (Developing)
Thanks kenny
-
- Posts: 2458
- Joined: Mon Feb 24, 2014 11:03 am
Re: TAP driver support in FreeBSD (Developing)
Please send a pull request on GitHub.
-
- Posts: 3
- Joined: Fri Mar 06, 2015 12:56 pm
Re: TAP driver support in FreeBSD (Developing)
Just getting it back after few months, my work was uploaded to github
https://github.com/kennylam777/SoftEthe ... reeBSD-TAP
It is not completed yet, and not updated with the most update branch yet
https://github.com/kennylam777/SoftEthe ... reeBSD-TAP
It is not completed yet, and not updated with the most update branch yet