пятница, 18 марта 2016 г.

Linux Wi-Fi master

Install hostapd
 
Find or create bridge in your system. Usually your system already having bridge.

Edit configuration:
vi /etc/hostapd/hostapd.conf 

ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel

# Some usable default settings...
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=1

# Uncomment these for base WPA & WPA2 support with a pre-shared key
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
#rsn_pairwise=CCMP

# DO NOT FORGET TO SET A WPA PASSPHRASE!!
wpa_passphrase=__PASSWORD__

# Most modern wireless drivers in the kernel need driver=nl80211
driver=nl80211

# Customize these for your local configuration...
interface=wlp2s0
hw_mode=g
channel=8
ssid=__SSID__

# define internet connection
bridge=virbr0
 
hostapd may not work, if the device is managed by NetworkManager. You can mask the device:

/etc/NetworkManager/NetworkManager.conf

[keyfile]
unmanaged-devices=mac:<lthwaddr>
 
Start service hostapd


Комментариев нет:

Отправить комментарий