OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of alphastar »
  • Show Posts »
  • Topics
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

  • Messages
  • Topics
  • Attachments

Topics - alphastar

Pages: [1]
1
Hardware and Performance / OPNsense WiFi FAQ, Guide & Quick Config
« 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 (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 and (of course) the OPNsense User Manual.

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.  Experienced users may wish to proceed directly to the FreeBSD 11.1-RELEASE Hardware Notes (WLAN Section) 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. 

On a related note, the FreeBSD kernel (up to 11.1-RELEASE) unlike Linux, does not yet have complete support for 802.11ac, 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)" 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", 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:

  • Start with Interfaces > Wireless > Devices to see what hardware has been recognized successfully by the system.
  • Next, either Add or Assign interfaces under Interfaces > Assignment to map a wireless device to a new or existing Interface created there.
    Interfaces > [INT#] should be configured with any additional settings like Enable Interface, SSID, Minimum Standard and WPA Pre-Shared Key (in addition to the recommendations above) to configure appropriate speeds, channels, etc.
  • You may also need to create a Bridge to the [LAN] interface, configure DHCP, or create/modify the Firewall as additional (optional) steps.  For more info, see the OPNsense User Manual.
  • Lastly, you should be able to see the results in Lobby > Dashboard and Interfaces > Overview.


Troubleshooting:

NOTE: You can also search for your FreeBSD WiFi driver name 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) to troubleshoot USB/WiFi issues I encountered while trying to get partially supported AEx000 Linksys USB adapters working with OPNsense.

2
17.1 Legacy Series / [SOLVED] USB/WiFi 802.11n capability in 17.1 kernel/if_run(4)
« on: February 05, 2017, 04:29:18 pm »
Trying to connect to a mixed-mode AP in 802.11n mode (300Mbps) does not seem possible with run0_wlan1 interface (USB Linksys AE1000):

dmesg
Code: [Select]
run0: <Linksys Linksys AE1000, class 0/0, rev 2.00/1.01, addr 1> on usbus0
run0: MAC/BBP RT3572 (rev 0x0221), RF RT3052 (MIMO 2T2R), address 00:25:9c:f8:41:3e
wlan1: changing name to 'run0_wlan1'
run0: firmware RT3071 ver. 0.33 loaded
run0: firmware RT3071 ver. 0.33 loaded
run0_wlan1: link state changed to UP

ifconfig
Code: [Select]
run0_wlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:25:9c:f8:41:3e
        inet6 fe80::225:9cff:fef8:413e%run0_wlan1 prefixlen 64 scopeid 0x9
        inet 192.168.0.56 netmask 0xffffff00 broadcast 192.168.0.255
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet DS/11Mbps mode 11b
        status: associated
        ssid ISP channel 6 (2437 MHz 11b) bssid 12:34:65:a3:ac:ca:fe
        regdomain FCC country CA authmode WPA2/802.11i privacy ON
        deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 30 bmiss 7
        scanvalid 60 roaming MANUAL
        groups: wlan

# ifconfig run0_wlan1 list caps
drivercaps=d85c501<STA,IBSS,HOSTAP,SHSLOT,SHPREAMBLE,MONITOR,MBSS,WPA1,WPA2,WME,WDS>
cryptocaps=1b<WEP,TKIP,AES_CCM,TKIPMIC>

Note the line that says media: IEEE 802.11 Wireless Ethernet DS/11Mbps mode 11b.

Under Interfaces, the Speed and duplex is set to Default (no preference, typically autoselect) (DS and OFDM options for b, g, and n are options) and Standard is set to 802.11a (802.11b and 802.11g are options).

wpa_supplicant
Code: [Select]
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
#fast_reauth=1
network={
ssid="ISP"
scan_ssid=1
priority=5
key_mgmt=WPA-PSK
psk="password"
pairwise=CCMP
group=CCMP

Does the if_run(4) USB driver support 802.11n in OPNsense 17.1?

Pages: [1]
OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2