Код: Выделить всё
# cat hostapd.conf
# Define interface
interface=wlan4
bridge=br0
driver=nl80211
debug=0
# Set access point name
ssid=wi-fi_router
country_code=SU
# Station MAC address -based authentication
# Please note that this kind of access control requires a driver that uses
# hostapd to take care of management frame processing and as such, this can be
# used with driver=hostap or driver=nl80211, but not with driver=madwifi.
# 0 = accept unless in deny list
# 1 = deny unless in accept list
# 2 = use external RADIUS server (accept/deny lists are searched first)
macaddr_acl=0
# Accept/deny lists are read from separate files (containing list of
# MAC addresses, one per line). Use absolute path name to make sure that the
# files can be read on SIGHUP configuration reloads.
#accept_mac_file=/etc/hostapd/hostapd.accept
deny_mac_file=/etc/hostapd/hostapd.deny
logger_syslog=-1
logger_syslog_level=0
dump_file=/tmp/hostapd.dump
# Set access point harware mode to 802.11g
hw_mode=g
# Set access point harware mode to 802.11n
ieee80211n=1
ieee80211d=1
# Set WIFI channel (can be easily changed)
channel=2
# Enable WPA2 only (1 for WPA, 2 for WPA2, 3 for WPA + WPA2)
#peerkey=1
#eapol_version=2
#eap_server=0
eap_reauth_period=36000000000
#eapol_key_index_workaround=0
#beacon_int=100
#wpa_group_rekey=600
auth_algs=3
wmm_enabled=1
ht_capab=[HT20] [SHORT-GI-20] [RX-STBC1]
wpa=2
wpa_key_mgmt=WPA-PSK
#wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP
wpa_passphrase=1234567890