Skip to content

Instantly share code, notes, and snippets.

@valeth
Last active November 26, 2016 23:53
Show Gist options
  • Save valeth/3482a2d923722a94c2900d3a5b66dfa8 to your computer and use it in GitHub Desktop.
Save valeth/3482a2d923722a94c2900d3a5b66dfa8 to your computer and use it in GitHub Desktop.
simple WPA supplicant example conf
[Match]
Name=*
[Network]
DHCP=yes
ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel
eapol_version=1
fast_reauth=1
update_config=1
# WPA2
network={
ssid="Your SSID"
key_mgmt=WPA-PSK
proto=RSN
pairwise=CCMP TKIP
group=CCMP TKIP
psk=
}
# WPA
network={
ssid="Your SSID"
key_mgmt=WPA-PSK
proto=WPA
pairwise=TKIP
group=TKIP
psk=
}
@valeth
Copy link
Author

valeth commented Nov 26, 2016

Checklist

  • wpa_supplicant-IFNAME.conf in /etc/wpa_supplicant/
  • 20-dhcp.network in /etc/systemd/network/
  • wpa_supplicant@IFNAME service enabled and started
  • systemd-networkd service enabled and started
  • systemd-resolved service enabled and started
  • /run/systemd/resolve/resolv.conf symlinked to /etc/resolv.conf

replace IFNAME with the name of your wireless network device

to enable and start services use systemctl enable --now SERVICE

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