Debian testing программная точка доступа из EDIMAX EW-7318USg

Knoppix

Модераторы: Warderer, Модераторы разделов

Аватара пользователя
RDV1984
Сообщения: 176
ОС: Debian GNU/Linux testing

Debian testing программная точка доступа из EDIMAX EW-7318USg

Сообщение RDV1984 »

Пытаюсь сделать программную точку доступа из карточки EDIMAX EW-7318USg.

Код: Выделить всё

toshiba:/etc/hostapd# lsusb
Bus 002 Device 002: ID 148f:2573 Ralink Technology, Corp. RT2501/RT2573 Wireless Adapter

Код: Выделить всё

toshiba:/etc/hostapd# uname -a
Linux toshiba 2.6.38-2-686 #1 SMP Sun May 8 14:49:45 UTC 2011 i686 GNU/Linux


Делаю по руководству: http://habrahabr.ru/blogs/linux/67717/
Установил hostapd из репозитария.
Настройки в hostapd.conf такие:

Код: Выделить всё

toshiba:/etc/hostapd# cat /etc/hostapd/hostapd.conf
interface=wlan1
driver=nl80211
ssid=AP1
country_code=RU
hw_mode=g
channel=1

macaddr_acl=0

#wpa=3
#wpa_key_mgmt=WPA-PSK
#wpa_passphrase=55555555
#wpa_pairwise=TKIP CCMP


Код: Выделить всё

toshiba:/etc/hostapd# cat /etc/default/hostapd
# Defaults for hostapd initscript
#
# See /usr/share/doc/hostapd/README.Debian for information about alternative
# methods of managing hostapd.
#
# Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration
# file and hostapd will be started during system boot. An example configuration
# file can be found at /usr/share/doc/hostapd/examples/hostapd.conf.gz
#
DAEMON_CONF="/etc/hostapd/hostapd.conf"

# Additional daemon options to be appended to hostapd command:-
#       -d   show more debug messages (-dd for even more)
#       -K   include key data in debug messages
#       -t   include timestamps in some debug messages
#
# Note that -B (daemon mode) and -P (pidfile) options are automatically
# configured by the init.d script and must not be added to DAEMON_OPTS.
#
DAEMON_OPTS="yes"


Далее расскоментировал строку в /etc/sysctl.conf:
net.ipv4.ip_forward=1
и делал все по инструкции до настройки dhcp сервера.
У меня файл dhcpd.conf находится тут /etc/dhcp/dhcpd.conf


Код: Выделить всё

ddns-update-style none;
option domain-name "MySuperNet";
option domain-name-servers IPS_OF_DNS_SERVERS;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet 192.168.0.0 netmask 255.255.255.0 {
        range 192.168.0.100 192.168.0.200;
        option routers 192.168.0.1;
}


Далее указываю интерфейс для раздачи айпишников:

Код: Выделить всё

toshiba:/etc/default# cat isc-dhcp-server
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/isc-dhcp-server by the maintainer scripts

#
# This is a POSIX shell fragment
#

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="wlan1"


После перезагрузки у меня точка доступа вообще не видна.
В чем может быть проблемма, куда копать?
Спасибо сказали:
Аватара пользователя
RDV1984
Сообщения: 176
ОС: Debian GNU/Linux testing

Re: Debian testing программная точка доступа из EDIMAX EW-7318USg

Сообщение RDV1984 »

Нашел ощибку вот здесь:
toshiba:/etc/hostapd# cat /etc/default/hostapd
нужно было написать

Код: Выделить всё

DAEMON_OPTS="-B"

Теперь все демоны запускаюся:

Код: Выделить всё

toshiba:/etc/init.d# /etc/init.d/hostapd status
hostapd is running.
toshiba:/etc/init.d# /etc/init.d/isc-dhcp-server status
Status of ISC DHCP server: dhcpd is running.

Точка доступа видна, но после попытки первого подключения ее видно не стало???

Код: Выделить всё

toshiba:/etc/init.d# ifconfig wlan1
wlan1     Link encap:Ethernet  HWaddr 00:1f:1f:05:a5:71
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::21f:1fff:fe05:a571/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:590 (590.0 B)  TX bytes:10492 (10.2 KiB)

toshiba:/etc/init.d# iwconfig wlan1
wlan1     IEEE 802.11bg  Mode:Master  Frequency:2.412 GHz  Tx-Power=20 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

Вот лог:

Код: Выделить всё

toshiba:/etc/init.d# tail -f /var/log/daemon.log
Jun 23 13:59:51 toshiba nmbd[3246]:   *****
Jun 23 14:00:00 toshiba dbus[2927]: [system] Activating service name='org.freedesktop.UPower' (using servicehelper)
Jun 23 14:00:01 toshiba dbus[2927]: [system] Successfully activated service 'org.freedesktop.UPower'
Jun 23 14:00:01 toshiba dbus[2927]: [system] Activating service name='org.freedesktop.UDisks' (using servicehelper)
Jun 23 14:00:01 toshiba dbus[2927]: [system] Successfully activated service 'org.freedesktop.UDisks'
Jun 23 14:00:33 toshiba hostapd: wlan1: STA 28:ef:01:cf:34:24 IEEE 802.11: authenticated
Jun 23 14:00:33 toshiba hostapd: wlan1: STA 28:ef:01:cf:34:24 IEEE 802.11: associated (aid 1)
Jun 23 14:00:33 toshiba hostapd: wlan1: STA 28:ef:01:cf:34:24 RADIUS: starting accounting session 4E030E74-00000000
Jun 23 14:05:37 toshiba hostapd: wlan1: STA 28:ef:01:cf:34:24 IEEE 802.11: disassociated due to inactivity
Jun 23 14:05:38 toshiba hostapd: wlan1: STA 28:ef:01:cf:34:24 IEEE 802.11: deauthenticated due to inactivity

После перезагрузки точка снова видна пытаюсь подключится с другого устройства:

Код: Выделить всё

oshiba:/home/dmitry# tail -f /var/log/daemon.log
Jun 23 14:32:11 toshiba polkitd[3006]: started daemon version 0.101 using authority implementation `local' version `0.101'
Jun 23 14:32:11 toshiba dbus[2100]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Jun 23 14:32:11 toshiba dbus[2100]: [system] Successfully activated service 'org.freedesktop.ConsoleKit'
Jun 23 14:32:24 toshiba dbus[2100]: [system] Activating service name='org.freedesktop.UPower' (using servicehelper)
Jun 23 14:32:24 toshiba dbus[2100]: [system] Successfully activated service 'org.freedesktop.UPower'
Jun 23 14:32:25 toshiba dbus[2100]: [system] Activating service name='org.freedesktop.UDisks' (using servicehelper)
Jun 23 14:32:25 toshiba dbus[2100]: [system] Successfully activated service 'org.freedesktop.UDisks'
Jun 23 14:32:33 toshiba hostapd: wlan1: STA e4:ec:10:bd:2f:65 IEEE 802.11: authenticated
Jun 23 14:32:33 toshiba hostapd: wlan1: STA e4:ec:10:bd:2f:65 IEEE 802.11: associated (aid 1)
Jun 23 14:32:33 toshiba hostapd: wlan1: STA e4:ec:10:bd:2f:65 RADIUS: starting accounting session 4E031587-00000000
Jun 23 14:37:39 toshiba hostapd: wlan1: STA e4:ec:10:bd:2f:65 IEEE 802.11: disassociated due to inactivity
Jun 23 14:37:40 toshiba hostapd: wlan1: STA e4:ec:10:bd:2f:65 IEEE 802.11: deauthenticated due to inactivity

Как заставить точку работать???
Спасибо сказали:
Аватара пользователя
Ленивая Бестолочь
Бывший модератор
Сообщения: 2760
ОС: Debian; gentoo

Re: Debian testing программная точка доступа из EDIMAX EW-7318USg

Сообщение Ленивая Бестолочь »

а в /etc/network/interfaces что для wlan1 написано?
Солнце садилось в море, а люди с неоконченным высшим образованием выбегали оттуда, думая, что море закипит.
Спасибо сказали:
Аватара пользователя
RDV1984
Сообщения: 176
ОС: Debian GNU/Linux testing

Re: Debian testing программная точка доступа из EDIMAX EW-7318USg

Сообщение RDV1984 »

Ленивая Бестолочь писал(а):
25.06.2011 11:03
а в /etc/network/interfaces что для wlan1 написано?

Код: Выделить всё

auto wlan1
iface wlan1 inet static
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.1
pre-up iptables-restore /etc/iptables.rules
Спасибо сказали: