hostapd WI-FI

  • Автор
/etc/network/interfaces

auto uap0

iface uap0 inet static

address 192.168.55.1/24
broadcast 192.168.55.255

pre-up iptables-restore < /etc/network/iptables.rules
tunctl -t uap0 -u pi
hwaddress ether a0:b1:c2:d3:e4:f5 uap0

pre-up  iw phy phy0 interface add uap0 type __ap    || true
up      ifup uap0    || true

/etc/dnsmasq.conf

pid-file=/var/run/dnsmasq/dnsmasq.pid
log-facility=/var/log/dnsmasq.log
user=dnsmasq
group=dnsmasq
no-resolv
no-poll
stop-dns-rebind
clear-on-reload
bind-interfaces
domain-needed
bogus-priv
interface=uap0
no-dhcp-interface=lo,wlan0
listen-address=127.0.0.1,192.168.0.1,192.168.1.1,192.168.4.1
dhcp-range=192.168.55.10,192.168.55.100,255.255.255.0,12h
dhcp-option=3,192.168.55.1

# /etc/hostapd/hostapd.conf
interface=uap0
driver=nl80211
ssid=my_ssid
hw_mode=g
ieee80211n=1
ht_capab=[HT40-][SHORT-GI-40]
channel=6
# macaddr_acl=0
macaddr_acl=1
accept_mac_file=/etc/hostapd/hostapd.accept
wmm_enabled=1
auth_algs=1
ignore_broadcast_ssid=0
# ignore_broadcast_ssid=1 # hidden
wpa=2
wpa_psk_file=/etc/hostapd/hostapd.wpa_psk
# wpa_passphrase=##**###
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
  • 0

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

Для написания комментариев необходимо зарегистрироваться