TAP driver support in FreeBSD (Developing)

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
kennylam
Posts: 3
Joined: Fri Mar 06, 2015 12:56 pm

TAP driver support in FreeBSD (Developing)

Post by kennylam » 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
Last edited by kennylam on Mon Mar 09, 2015 7:40 am, edited 1 time in total.

kennylam
Posts: 3
Joined: Fri Mar 06, 2015 12:56 pm

Re: TAP driver support in FreeBSD

Post by kennylam » Mon Mar 09, 2015 7:40 am

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.

mountie
Posts: 2
Joined: Wed Mar 18, 2015 3:56 pm

Re: TAP driver support in FreeBSD (Developing)

Post by mountie » Wed Mar 18, 2015 3:58 pm

I think I have exactly same issue. (FreeBSD, no securenat)
Can you share your patch? I can test from my server as well.

onal
Posts: 2
Joined: Thu Mar 19, 2015 2:48 am
Contact:

Re: TAP driver support in FreeBSD (Developing)

Post by onal » Thu Mar 19, 2015 2:57 am

Thanks kenny

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: TAP driver support in FreeBSD (Developing)

Post by thisjun » Fri Mar 27, 2015 7:20 am

Please send a pull request on GitHub.

kennylam
Posts: 3
Joined: Fri Mar 06, 2015 12:56 pm

Re: TAP driver support in FreeBSD (Developing)

Post by kennylam » Sun Nov 01, 2015 7:34 pm

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

Post Reply