最新記事
カテゴリ
最新記事
カテゴリ
sudo apt-get install hostapd dnsmasq
... #最終行に denyinterfaces wlan0
iface wlan0 inet static address 192.168.70.1 netmask 255.255.255.0 network 192.168.70.0 broadcast 192.168.70.255
いったん再起動
zcat /usr/share/doc/hostapd/examples/hostapd.conf.gz > ~/hostapd.conf
sudo cp ~/hostapd.conf /etc/hostapd/hostapd.conf
sudo vi /etc/default/hostapd DAEMON_CONF="/etc/hostapd/hostapd.conf"
sudo systemctl restart hostapd
if $if_up; then if [ $interface = "wlan0" ]; then systemctl restart dnsmasq fi fi