[gentoo] 香港政府 wifi 通加密版 wpa_supplicant 設定檔

分享使用 wpa_supplicant 連香港政府的 freegovwifi-e (WPA2-Enterprise)

作業系統:  gentoo
硬件:  acer 1810tz , intel link 1000 (wlan0)
軟件:  wpa_supplicant

Gentoo 網絡設定檔 : /etc/conf.d/net
  1. modules=( "ifconfig" )
  2. modules=( "dhcpcd" )
  3. modules=( "ifplugd" )
  4. modules=( "wpa_supplicant" )
  5. dhcp_eth0="release nontp nonis nosendhost"
  6. dhcp_wlan0="release nontp nonis nosendhost"
  7. ifplugd_eth0="--api-mode=auto"
  8. ifplugd_wlan0="--api-mode=auto"
  9. wpa_supplicant_wlan0="-Dwext"
  10. associate_timeout_wlan0=20
  11. config_eth0=( "dhcp" )
  12. config_wlan0=( "dhcp" )
複製代碼
wpa_supplicant 設定檔 /etc/wpa_supplicant/wpa_supplicant.conf
  1. ctrl_interface=/var/run/wpa_supplicant
  2. ctrl_interface_group=0
  3. eapol_version=1
  4. ap_scan=1
  5. fast_reauth=1
  6. network={
  7.   ssid="freegovwifi-e"
  8.   scan_ssid=0
  9.   priority=0
  10.   proto=RSN
  11.   mode=0
  12.   key_mgmt=WPA-EAP
  13.   eap=PEAP
  14.   auth_alg=OPEN
  15.   pairwise=CCMP
  16.   group=CCMP TKIP
  17.   identity="govwifi"
  18.   password="govwifi"
  19.   phase2="auth=MSCHAPV2"
  20. }
複製代碼