Questions tagged [hostapd]

For questions on the creation and administration of wireless access points and networks using the user-space daemon hostapd.

hostapd is a user-space daemon that allows the creation of wireless (Wi-Fi) access points on UNIX-like systems. It provides a framework that allows client devices to connect and authenticate, forming a wireless local area network (WLAN). This WLAN may then be bridged to other networks, e.g. to provide wireless internet access.

A multitude of protocols within the IEEE 802.11 standard are supported by hostapd, along with a range of personal and enterprise authentication methods.

Read more about wireless access points on Wikipedia.

See also

101 questions
15
votes
3 answers

Creating WiFi Access point on a single interface in Linux

I am trying to create a WiFi hotspot or an access point on my Linux laptop. I am using Opensuse Kde 12.3. I found out a software called hostapd which lets you create hotspot but it requires two interfaces. One connected to the internet and the other…
adityap174
  • 340
  • 1
  • 2
  • 9
11
votes
2 answers

How to use NAT iptables rules for hostapd

My PC is equipped with two net interfaces, wlan0 & eth0, and I want to use WiFi port as an access point on wlan0. I used hostapd facility and it works properly in routing mode within the local network; users can connect to the access point and…
mackowiakp
  • 219
  • 1
  • 3
  • 8
9
votes
2 answers

"iw" and some of its commands do not return any output

I've been trying to set up my ARM based computer so that it becomes a hotspot and a client at the same time. However all of the information I've found about such functionality mention the iw command which seems to be crucial for me to solve the…
vaid
  • 3,539
  • 5
  • 16
  • 19
5
votes
2 answers

How do I use a single wireless adapter for both an access point and client on Raspberry Pi?

I have been able to create a wireless access point on my Raspberry Pi using a USB Wi-Fi dongle using hostapd on wlan0. What I would like to be able to do is have the access point be on some virtual interface (i.e. wlan0:1) or vlan (wlan0.123) and…
Gabe
  • 161
  • 1
  • 1
  • 4
5
votes
1 answer

hostapd: how to block only NetBIOS broadcasts to clients in same WLAN by applying network restrictions

I have set up a Raspberry Pi Wi-Fi hotspot via hostapd, dnsmasq and iptables routing using this excellent tutorial: https://thepi.io/how-to-use-your-raspberry-pi-as-a-wireless-access-point/. Although I skipped step 8, everything is perfectly working…
5
votes
2 answers

Get all the IP addresses given out by DHCP Server with dnsmasq and hostapd

I have created a systemd service for the hostapd application on Raspbian Jessie Lite. The source code is similar to this GitHub Gist but with IP addresses ranging in the 192.168.50.x/24. Everything works and various devices get IP addresses from the…
Shan-Desai
  • 280
  • 1
  • 3
  • 17
5
votes
2 answers

Hostapd - bridge lan + wireless

I'm trying to setup a LAN network on enp1s0 (other computers should be able to connect via this interface to the network) and wlp0s20u1 (wireless access point). There is also a othet interface that is a WAN interface, temporarily for testing it's…
4
votes
2 answers

hostapd: execute a command when there is new connection established

I need to start an arbitrary daemon when at least one WiFi network connection exists (from clients). And stop an arbitrary daemon when there is no more connections to this AP. How to do it efficiently? For now I consider polling the results of…
beemaster
  • 71
  • 1
  • 7
3
votes
2 answers

TL-WN725N Access-Point on ArchLinux + Hostapd

I bought a TL-WN725N v2 wifi usb dongle for my Raspberry. Amazon read it would work out of the box but it didn't. So I followed several tutorials to have the driver working. Now the problem is to make it work as an Access Point. Here is my…
3
votes
4 answers

IP forwarding from one interface to another on Debian 7

Background The Debian 7 that I run has the following interfaces wlan3 == Internet connection 85.5.48.64/24 wlan2 == act as an AP (hostapd) 192.168.5.1/24 I run the following settings on the terminal sudo iptables -t nat -A POSTROUTING -o wlan3 -j…
Angs
  • 914
  • 3
  • 13
  • 32
3
votes
1 answer

clients can't connect to hostapd on raspberry pi

I can't get any device (Win7, Win8 or Android) to connect to my poor man's wireless access point (raspberry pi + rtl8192cu chipset USB adapter (Belkin N300 micro) + hostapd + dnsmasq). After clicking/tapping "Connect" I simply get an error message…
crashintoty
  • 191
  • 1
  • 1
  • 7
3
votes
1 answer

hostapd: clients cannot connect

I built a small Linux system based on Buildroot. I'd like to configure Buildroot and hostapd so that the machine works as a WPA2 access point. Unfortunately, my laptop (the client) cannot connect. hostapd is printing the following line and…
SecStone
  • 216
  • 2
  • 8
3
votes
0 answers

Using Hostapd on Ubuntu 20.04 to create 5GHz access point, "Channel 153 (primary) not allowed for AP mode, flags: 0x20073 NO-IR"

I'm attempting to create a 5GHz access point running off of Ubuntu 20.04. My wireless adapter is the Intel Corporation Cannon Point-LP CNVi. Side note: 2.4GHz access points work all day long, but I require 5GHz. I've verified that the adapter…
2
votes
3 answers

How do I reach devices on a DIY wireless access point? (different subnet)

The wireless component of my router started suddenly flaking and dropping connections, so I improvised a WAP from an old netbook, wired to this router. I'm very ignorant about networking so I'm sure there's a misunderstanding on my part, but while…
Greg
  • 55
  • 1
  • 7
2
votes
0 answers

wpa_supplicant commands on openwrt

I'm trying to port a program to openwrt. Everything works fine except wpa_supplicant. I have connected to it using wpa_cli and i have discover that for many commands such as 'scan', 'scan_results', 'add_network', etc it returns UNKNOWN COMMAND…
Acampoh
  • 31
  • 4
1
2 3 4 5 6 7