Здравтсвуйте, у меня проблема с раздачей WiFi с ноутбука. (Debian 7) В основном, вот что я сделал.
Текущие настройки точки доступа:
PPPoE-соединение задано через Network Manager (интерфес ppp0) фрагмент /etc/network/interfaces с параметрами WiFi-адаптера
auto wlan1
iface wlan1 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
pre-up iptables-restore < /etc/wlan2ppp.rules
правила для iptables
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -i wlan1 -o ppp0 -j ACCEPT
iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
сonf-файл для hostapd
interface=wlan1
driver=nl80211
ssid=SuperTUX
hw_mode=g
channel=6
macaddr_acl=0
ignore_broadcast_ssid=0
auth_algs=1
wpa=3
wpa_passphrase=a1b2c3d4e5
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
содержимое /etc/dnsmasq.conf (приведены только измененные строки)
...
# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv
...
# If you want dnsmasq to listen for DHCP and DNS requests only on
# specified interfaces (and the loopback) give the name of the
# interface (eg eth0) here.
# Repeat the line for more than one interface.
interface=wlan1
...
# Uncomment this to enable the integrated DHCP server, you need
# to supply the range of addresses available for lease and optionally
# a lease time. If you have more than one network, you will need to
# repeat this for each network on which you want to supply DHCP
# service.
dhcp-range=192.168.1.2,192.168.1.254,12h
...
содержимое /etc/resolv.conf (корретные адреса провайдера)
# Generated by NetworkManager
nameserver 87.253.13.14
nameserver 217.15.134.62
hostapd -B /etc/hostapd/hostapd.conf
Вот что выдаёт:
Configuration file: /etc/hostapd/hostapd.conf
Could not read interface wlan1 flags: No such device
Could not read interface wlan1 flags: No such device
nl80211 driver initialization failed.
Что не так? Помогите пожалуйста.