OPNsense Forum

English Forums => Hardware and Performance => Topic started by: alphastar on January 16, 2018, 12:29:20 pm

Title: OPNsense WiFi FAQ, Guide & Quick Config
Post by: alphastar on January 16, 2018, 12:29:20 pm
Decided to create this post based on my (awesome!) experiences with OPNsense 16.x to 18.x so far...and (not so awesome) WiFi support in the latest FreeBSD RELEASE (https://www.freebsd.org/releases/) (currently 11.1-RELEASE in OPNsense 18.1.x).


Overview:

Firstly, if you haven't yet, gather info to determine if your hardware is supported by OPNsense.  First stops are the the Hardware and Performance forum board (https://forum.opnsense.org/index.php?board=21.0) and (of course) the OPNsense User Manual (https://docs.opnsense.org/manual.html).

You can always confirm your FreeBSD and OPNsense version in Lobby > Dashboard and System > Firmware > Updates, as it will depend on the exact OPNsense 18.x (currently, or later) release you have installed.

Also, OPNsense hardware support also depends on at least two things from FreeBSD: the FreeBSD kernel it's based on and the corresponding Hardware Notes for that FreeBSD RELEASE.  Both can be found at the FreeBSD Release Notes page (https://www.freebsd.org/relnotes.html).  Experienced users may wish to proceed directly to the FreeBSD 11.1-RELEASE Hardware Notes (WLAN Section) (https://www.freebsd.org/releases/11.1R/hardware.html#wlan) related to OPNsense 18.x.


Important! - FreeBSD WiFi Caveats:

Certain WiFi drivers only support "station mode" with certain hardware i.e. as a wireless client (PC)connecting to an existing router/AP - e.g. this Intel Dual Band Wireless AC-3160 on OPNsense 18.x (https://forum.opnsense.org/index.php?topic=6844.0). 

On a related note, the FreeBSD kernel (up to 11.1-RELEASE) unlike Linux, does not yet have complete support for 802.11ac (http://adrianchadd.blogspot.ca/2017/04/bringing-up-80211ac-on-freebsd.html), so ANY supported WiFi Interfaces will be limited to 802.11n.  Note that depending on your hardware and config, you may only be able to select either the 2.4GHz ("802.11ng") or the 5GHz ("802.11na") bands, but not both simultaneously.

Additionally, (IMHO) the best supported FreeBSD AP hardware running "hostap mode" (i.e. as WiFi routers, Access Points, etc.) use the "ath(4)" (http://www.freebsd.org/cgi/man.cgi?query=ath&sektion=4&manpath=freebsd-release-ports)driver and Atheros ARxxxx hardware..   However, you will likely have to set "Standard = 802.11na" (5GHz mode) and Channel = "na - 1xx" (5GHz) along with WPA2/AES under Interfaces to obtain optimum speed. 

Some USB adapters under FreeBSD/OPNsense *do* work in "hostap mode" (https://forum.opnsense.org/index.php?topic=4447.0), but also tend to be limited to 802.11b/g/a (or any supported combination thereof) - even though the hardware and/or FreeBSD driver may support higher speeds and capabilities.

Taken together, these limitations are why the defacto standard (popular choice?) is to pair an external WiFi router or AP with FreeBSD/OPNsense firewalls.


OPNsense WiFi Quick Config Guide:



Troubleshooting:

NOTE: You can also search for your FreeBSD WiFi driver name (https://www.freebsd.org/releases/11.1R/hardware.html#wlan) e.g. ath, ral, run... under System > Log File to give you more diagnostic info on exactly what is happening with the specific driver(s) behind the scenes.

Additionally, here are some additional links and steps I took (including FreeBSD commands in an SSH session) (https://forum.opnsense.org/index.php?topic=4447.0) to troubleshoot USB/WiFi issues I encountered while trying to get partially supported AEx000 Linksys USB adapters working with OPNsense.
Title: Re: OPNsense WiFi FAQ, Guide & Quick Config
Post by: franco on January 17, 2018, 10:13:14 pm
I've set this sticky for prolonged exposure; many thanks for this!  :)


Cheers,
Franco