Skip to content

Instantly share code, notes, and snippets.

@ysarro
Created September 23, 2010 15:36
Show Gist options
  • Save ysarro/593812 to your computer and use it in GitHub Desktop.
Save ysarro/593812 to your computer and use it in GitHub Desktop.
Here are basic instructions for setting up the AP, things changed some for FreeBSD-8 in rc.conf though, and my most recent backup was *grumble* 6.3. I'm thinking of re-doing the thing on Friday.
/etc/rc.conf:
ifconfig_<if>="inet <ip/netmask> ssid <SSID> mediaopt hostap mode 11g media ofdm54" ;Enables interface and sets to 802.11g with the speed at 54mbit/s in Master mode
hostapd_enable="YES" ;Enables the daemon that actually manages the AP to be configured
/etc/hostapd.conf:
interface=<if>
debug=1
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=<SSID>
wpa=1 ;Enable WPA
supported_rates=540 ;Shows supported bitrates to broadcast to clients (I believe it worked in units of 100kbit/s)
basic_rates=540 ;Bitrate to start with
wpa_passphrase=<passphrase>
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment