Linux Wi-Fi hotspot with hostapd

Linux Wi-Fi hotspot with hostapd, CentOS 7.3

yum install hostapd wi rfkill</p>
<p>vim /etc/sysconfig/network-scripts/ifcfg-wlp2s0:<br />
BOOTPROTO=static<br />
HWADDR=00:11:22:33:44:55<br />
IPADDR=192.168.11.1<br />
NETMASK=255.255.255.0<br />
NM_CONTROLLED=no<br />
DEFROUTE=no<br />
IPV4_FAILURE_FATAL=no<br />
NAME=wlp2s0<br />
DEVICE=wlp2s0<br />
ONBOOT=yes</p>
<p>vim vim /etc/hostapd/hostapd.conf<br />
ctrl_interface=/var/run/hostapd<br />
ctrl_interface_group=wheel<br />
# Some usable default settings...<br />
macaddr_acl=0<br />
auth_algs=1<br />
ignore_broadcast_ssid=0<br />
# Uncomment these for base WPA &amp;amp; WPA2 support with a pre-shared key<br />
wpa=2<br />
wpa_key_mgmt=WPA-PSK<br />
wpa_pairwise=TKIP<br />
rsn_pairwise=CCMP<br />
# DO NOT FORGET TO SET A WPA PASSPHRASE!!<br />
wpa_passphrase=qqqqwwww33<br />
# Most modern wireless drivers in the kernel need driver=nl80211<br />
driver=nl80211<br />
# Customize these for your local configuration...<br />
interface=wlp2s0<br />
hw_mode=g<br />
channel=6<br />
ssid=WiFiName</p>
<p>nmcli radio wifi off<br />
rfkill unblock wlan</p>
<p>dnsmasq/iptables

Писали для себя, за возможные последствия… В общем вы поняли.