InfoSec Write-ups

A collection of write-ups from the best hackers in the world on topics ranging from bug bounties and CTFs to vulnhub machines, hardware challenges and real life encounters. Subscribe to our weekly newsletter for the coolest infosec updates: https://weekly.infosecwriteups.com/

Follow publication

Member-only story

How to Set up an Access Point with Hostapd

Frost
InfoSec Write-ups
Published in
3 min readMay 30, 2023

--

In this tutorial, I will show you how to set up a Wi-Fi Access Point using hostapd, a popular open-source software package for creating Wi-Fi networks on Linux systems.

Install Hostapd & Dnsmasq

For the Access Point to work, you’ll need two items:

  • hostapd — the Access Point software.
  • dnsmasq — a DHCP server that will provide IP addresses to the clients.

So, start up the Linux system, and in the terminal type:

apt install dnsmasq hostapd

Set up the Access Point

Run the “iwconfig” command to see the available wireless network interfaces (wlan0, wlan1…).

Use a wireless device that supports Access Point Mode. In my case, I am using a wireless adapter with chipset Atheros AR9271 with interface name wlan0.

Once you have identified your wireless interface, set up the configuration files using the nano text editor in the terminal.

nano dnsmasq.conf

--

--

Published in InfoSec Write-ups

A collection of write-ups from the best hackers in the world on topics ranging from bug bounties and CTFs to vulnhub machines, hardware challenges and real life encounters. Subscribe to our weekly newsletter for the coolest infosec updates: https://weekly.infosecwriteups.com/

Written by Frost

Technology enthusiast with a special interest for self-improvement & cybersecurity. https://fastskill.net

No responses yet

Write a response