Using WPA2 in FreeBSD

Using WPA2 wireless encryption in FreeBSD is actually very simple. The package that supports this is wpa_supplicant and it’s located in ports/security. Install it via your favorite method, packages or ports, and then create a wpa_supplicant.conf file in /etc as follows:

ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
network={
    ssid="YourNetSSID"
    key_mgmt=WPA-PSK
    psk="YourSharedKey"
}

Finally tell your rc.conf file to use the new configuration:

ifconfig_iwi0="WPA DHCP"
Share