LINUX.ORG.RU
решено ФорумAdmin

Подскажите по WiFi в Debian


0

1

Нужно сетевку wifi в режим точки доступа сделать в мосту с лан, вроде бы все настроил по гуглу

# lspci | grep Realtek
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
04:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01)
05:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
# cat /etc/hostapd/hostapd.conf
interface=wlan0
bridge=kvmbr0
driver=nl80211
ssid=блабла
country_code=US
hw_mode=g
channel=4
macaddr_acl=0
wpa=3
wpa_key_mgmt=WPA-PSK
wpa_passphrase=12345678
wpa_pairwise=TKIP CCMP
ieee80211n=1
wme_enabled=1
ht_capab=[HT40+]
# ifconfig
eth0      Link encap:Ethernet  HWaddr bc:5f:f4:8d:56:a8
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:265588 errors:0 dropped:0 overruns:0 frame:0
          TX packets:405313 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:70332909 (67.0 MiB)  TX bytes:425916823 (406.1 MiB)
          Interrupt:40 Base address:0xa000

eth1      внешний интерфейс

kvmbr0    Link encap:Ethernet  HWaddr ac:22:0b:94:ef:2e
          inet addr:192.168.168.1  Bcast:192.168.168.255  Mask:255.255.255.0
          inet6 addr: fe80::ae22:bff:fe94:ef2e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:245159 errors:0 dropped:0 overruns:0 frame:0
          TX packets:377903 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:62654021 (59.7 MiB)  TX bytes:398404772 (379.9 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2330 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2330 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:297493 (290.5 KiB)  TX bytes:297493 (290.5 KiB)

mon.wlan0 Link encap:UNSPEC  HWaddr AC-22-0B-94-EF-2E-3A-30-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:924 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:108140 (105.6 KiB)  TX bytes:0 (0.0 B)

vnet0     Link encap:Ethernet  HWaddr fe:54:00:9f:0d:45
          inet6 addr: fe80::fc54:ff:fe9f:d45/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:475 errors:0 dropped:0 overruns:0 frame:0
          TX packets:767 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:56724 (55.3 KiB)  TX bytes:76199 (74.4 KiB)

wlan0     Link encap:Ethernet  HWaddr ac:22:0b:94:ef:2e
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1680 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:176927 (172.7 KiB)
# iwconfig

wlan0     IEEE 802.11bgn  Mode:Master  Frequency:2.427 GHz  Tx-Power=20 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

mon.wlan0  IEEE 802.11bgn  Mode:Monitor  Tx-Power=20 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
# brctl show
bridge name     bridge id               STP enabled     interfaces
kvmbr0          8000.ac220b94ef2e       no              eth0
                                                        wlan0

при подключении в syslog вижу

May 27 11:56:43 server hostapd: wlan0: STA 8c:00:6d:22:05:1c IEEE 802.11: authenticated
May 27 11:56:43 server hostapd: wlan0: STA 8c:00:6d:22:05:1c IEEE 802.11: associated (aid 1)
May 27 11:56:51 server hostapd: wlan0: STA 8c:00:6d:22:05:1c IEEE 802.11: deauthenticated due to local deauth request
May 27 11:57:26 server hostapd: wlan0: STA 8c:00:6d:22:05:1c IEEE 802.11: authenticated
May 27 11:57:26 server hostapd: wlan0: STA 8c:00:6d:22:05:1c IEEE 802.11: associated (aid 1)
May 27 11:57:34 server hostapd: wlan0: STA 8c:00:6d:22:05:1c IEEE 802.11: deauthenticated due to local deauth request

★★★

Ответ на: комментарий от wolverin

вообщем вот с такими параметрами в hostapd.conf заработало

wpa=2
auth_algs=1
wpa_key_mgmt=WPA-PSK
wpa_passphrase=123
wpa_pairwise=CCMP

wolverin ★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.