OPNSense as WiFi Client + WiFi access piont + LAN Router

Started by ARMADA, January 21, 2018, 09:04:26 PM

Previous topic - Next topic
Hello!

I'm newbie in "Sense" world,
I have old netbook on Atom N270, and want to make something strange ;)

USB Wifi adapter - set up as wifi client
Internal LAN card and internal WiFi adapter - as local router.

How to set up it?
How to assign interfaces?
How to connect as client?

It detects:
USB Wifi as ath0
Internal WiFi as ath0_wlan0
LAN Card as msk0

Quote from: ARMADA on January 21, 2018, 09:18:37 PM
It detects:
USB Wifi as ath0
Internal WiFi as ath0_wlan0
LAN Card as msk0

Assign interfaces as follows:

ATH0 - WAN
MSK0 - LAN
ATH0_WLAN0 - OPT1 (if you want, rename it to something like Wi-Fi LAN, or alike...)

If you need clients from MSK0 and ATH0_WLAN0 to be in the same network, you need to bridge these two interfaces.

Ok, thank you!

I assign this interfaces. How to set up wifi client?

Quote from: ARMADA on January 21, 2018, 09:18:37 PM
It detects:
USB Wifi as ath0
Internal WiFi as ath0_wlan0
LAN Card as msk0
Hmm,
for me it looks that the usb wifi isn't identified! What chipset used by the usb wifi stick!?

IMHO it looks that only the internal wifi is identified. 'ath0' means the first interface with Atheros chipset. The ath-driver supports AFAIK no usb devices!
Take a look into manpage: https://www.freebsd.org/cgi/man.cgi?ath(4)
So the ath0 is the internal wifi card. ath0_wlan0 ist the wireless clone no. 1 of it.
No usb wifi!

best regards
Dirk



monstermania must be right, sorry for my first answer, I wasn't paying attention to the ath0 & ath0_wlan0 thing.

monstermania, then i disconnect USB Stick - ath0_wlan0 disappears.

MB: Samsung N308
CPU: Atom N270
North: Calistoga-GCE (i945GCE)
South: 82801GBM (ICH7-M)
LAN: Marvell Yukon 88E8040 PCI-E Fast Ethernet Adapter
WIFI: Qualcomm Atheros AR5007EG Wireless Network Adapter
WiFi USB: Netgear WNA1100 N150 Wireless USB Adapter (Chipset: Atheros AR9002U WI1 chip1: Atheros AR9271)

PS. I already install LEDE, just nevermind  ;)
With help of community we figure what we need this packages (on LEDE): kmod-ath5k kmod-ath9k-htc ath9k-htc-firmware kmod-sky2 kmod-usb-hid luci-ssl hostapd wpa-supplicant.

@Armada
The AR9271 Chipset won't supported by FreeBSD!
https://wiki.freebsd.org/dev/ath(4) -> Read the First Section Supported Hardware
The best results with usb wifi and FreeBSD i get with the RALINK RT5370 Chipset. I used 2 of these usb sticks into my OPNsense. They worked like a charme for over 1 year.
But now i use an external AP because the Ralink-devices only supports 54Mbit!

In general wifi and FreeBSD is no good combination! Better use an external AP.