OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Tutorials and FAQs »
  • OPNSense as WiFi Client + WiFi access piont + LAN Router
« previous next »
  • Print
Pages: [1]

Author Topic: OPNSense as WiFi Client + WiFi access piont + LAN Router  (Read 11706 times)

ARMADA

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
OPNSense as WiFi Client + WiFi access piont + LAN Router
« on: January 21, 2018, 09:04:26 pm »
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?
Logged

ARMADA

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: OPNSense as WiFi Client + WiFi access piont + LAN Router
« Reply #1 on: January 21, 2018, 09:18:37 pm »
It detects:
USB Wifi as ath0
Internal WiFi as ath0_wlan0
LAN Card as msk0
Logged

Ciprian

  • Sr. Member
  • ****
  • Posts: 284
  • Karma: 50
    • View Profile
Re: OPNSense as WiFi Client + WiFi access piont + LAN Router
« Reply #2 on: January 22, 2018, 09:58:21 am »
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.
Logged

ARMADA

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: OPNSense as WiFi Client + WiFi access piont + LAN Router
« Reply #3 on: January 22, 2018, 10:01:36 pm »
Ok, thank you!

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

monstermania

  • Hero Member
  • *****
  • Posts: 524
  • Karma: 47
    • View Profile
Re: OPNSense as WiFi Client + WiFi access piont + LAN Router
« Reply #4 on: January 23, 2018, 07:50:44 am »
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


Logged

Ciprian

  • Sr. Member
  • ****
  • Posts: 284
  • Karma: 50
    • View Profile
Re: OPNSense as WiFi Client + WiFi access piont + LAN Router
« Reply #5 on: January 23, 2018, 12:12:10 pm »
monstermania must be right, sorry for my first answer, I wasn't paying attention to the ath0 & ath0_wlan0 thing.
Logged

ARMADA

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: OPNSense as WiFi Client + WiFi access piont + LAN Router
« Reply #6 on: January 23, 2018, 12:17:51 pm »
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.
« Last Edit: January 23, 2018, 12:24:27 pm by ARMADA »
Logged

monstermania

  • Hero Member
  • *****
  • Posts: 524
  • Karma: 47
    • View Profile
Re: OPNSense as WiFi Client + WiFi access piont + LAN Router
« Reply #7 on: January 23, 2018, 01:17:07 pm »
@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.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Tutorials and FAQs »
  • OPNSense as WiFi Client + WiFi access piont + LAN Router
 

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