OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: namflashback on July 24, 2017, 10:44:21 am

Title: Wireless WAN
Post by: namflashback on July 24, 2017, 10:44:21 am
Hi,
I was trying to setup a wireless WAN, but can't quite seem to get it to work automatically.
I made the /etc/wpa_supplicant file. I can connect running the below command
$ wpa_supplicant -c /etc/wpa_supplicant -i ath0_wlan0

However, I cannot get it to launch automatically after boot.
I tried following this guide here:
https://www.freebsd.org/doc/handbook/network-wireless.html

I adding those two lines into /etc/rc.conf file (wasn't there previously). I also tried adding those two lines to /etc/rc.d/netif. After rebooting, it still doesn't come up. After running "service netif restart", I finally got it to at least try to connect to my SSID, but it wasn't actually connecting/using WPA or something.  Also, the routing table seemed to have gotten messed up -- neither LAN's were routing over to my WAN after manually connecting.

Any suggestions? I'm quite new to freebsd. I'm more used to the linux version of rc :)
Title: Re: Wireless WAN
Post by: chemlud on July 24, 2017, 11:40:38 am
Hy!

I'm using an opnsense box with wifi WAN (USB-stick, never got an mPCI card working) configured just via the GUI. Maybe some details on the Mobo and WIFI you are using?
Title: Re: Wireless WAN
Post by: namflashback on July 24, 2017, 12:00:08 pm
Hi,
Thanks for responding.
It's a j1900 intel nuc-like system. The dashboard reads the CPU as Intel(R) Celeron(R) CPU 3215U @ 1.70GHz (2 cores)

The wireless card is a BCM43224 connected via mini pci.

How are you configuring it through the web UI?
Title: Re: Wireless WAN
Post by: namflashback on July 24, 2017, 12:21:13 pm
Its kind of odd, I plugged in a usb wireless card (AR9565) and it assigns it as ath0 as well. Now I can scan SSID's via Interfaces -> Wireless -> Status
However, I can't add ath0...comes back
Code: [Select]
Error creating interface with mode Infrastructure (BSS). The ath0 interface may not support creating more clones with the selected mode.

EDIT: the broadcom card shows up as ath0_wlan0 with the Atheros card shows up as just ath0
Title: Re: Wireless WAN
Post by: namflashback on July 24, 2017, 04:37:57 pm
Alright, I found out how to check which kernel modules are loaded...
It looks like what I thought was the broadcom card is actually the AR9565 (must have changed it out a while ago and forgot). The USB wifi card (I think) is a closed source mediatek driver that didn't load.
Anyways... to answer your question, the wireless card is an Atheros AR9565.

Is there a shell script that I could just append that wpa_supplicant command to? Can I configure it through the GUI?
Title: Re: Wireless WAN
Post by: chemlud on July 24, 2017, 04:39:03 pm
I added the device (ralink, run), assigned it to WAN and configured it (SSID, password). I use it for wifi while traveling...
Title: Re: Wireless WAN
Post by: monstermania on July 24, 2017, 05:20:59 pm
Wifi and FreeBSD is not a good combination (OPNsense based on FreeBSD)!
I't cost me many time to find Wifi-hardware than run stable.

Right now i use 2 usb wifi sticks with RALINK RT5370 Chipset plugged into my OPNsense. They use the run driver. Works perfect but only with speed of 54Mbit (802.11g).

regards
Dirk