Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@machinekoder
Created June 7, 2018 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save machinekoder/00bf60e52eec0a3df6bf7177c3d7c2a7 to your computer and use it in GitHub Desktop.
Save machinekoder/00bf60e52eec0a3df6bf7177c3d7c2a7 to your computer and use it in GitHub Desktop.
place in /etc/NetworkManager/system-connections/ to create a AP hotspot under Linux
[connection]
id=Hotspot
uuid=bd4058b4-f99e-48f9-ac88-26513b9ac517
type=wifi
autoconnect=true
permissions=
[wifi]
hidden=false
mac-address=00:0F:60:06:EE:BE
mac-address-blacklist=
mode=ap
ssid=SandyBox-AP
[wifi-security]
group=ccmp;
key-mgmt=wpa-psk
pairwise=ccmp;
proto=rsn;
psk=sandybox123
[ipv4]
dns-search=
method=shared
[ipv6]
#addr-gen-mode=stable-privacy
#dns-search=
#method=ignore
method=auto
ip6-privacy=0
@machinekoder
Copy link
Author

Make sure to run sudo service network-manager restart afterward.

@machinekoder
Copy link
Author

Manual start/stop:

sudo nmcli con up Hostspot ifname wlan0
sudo nmcli con down Hostspot ifname wlan0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment