Blog

I came across this script after a long struggle to set up a hotspot using my computer’s internet service, wired or wirelss. Create_ap script uses hostapd + dnsmasq + iptables to create a NATed Access Point OR hostapd + brctl + dhclient to create a bridged Access Point. The default behavior is a NATed Access Point,see here or github.

Requirement and Eligibility Check

You need a nl80211 compatible wireless device, which supports the AP operating mode. Check with the following:

To check whether you can use your wifi (instead of ethernet) as access point (a wireless repeater). I do use this feature so that I can use my VPN service from my laptop instead of setting up VPN on my phone to save my phone battery.

I want the hotspot to be on when the system start; however, create_ap has to wait until the system is up and running. If create_ap fires before a valid network is established, it will unmanage/disable the interface and results in failed network. You have to delete the line in NetworkManager.conf,