hostapd WI FI

  • Автор


#!/bin/bash
#!
tunctl -u pi -t uap0
ifconfig uap0 up




# /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,12

/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
# pre-up  iw phy phy0 interface add uap0 type __ap    || true
# up      ifup uap0    || true
  • 0

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

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