Strona 1 z 1

Domowy punkt dostępowy - RT2400

: 25 września 2010, 21:43
autor: tabi19
Witam wszystkich użytkowników debian.linux.pl. Jestem tutaj nowy.

Posiadam stary komputer (AMD Duron 800 MHZ, 320 MB RAM, jakaś karta grafiki 32MB, dysk 20GB). Stworzyłem z tego komputera swego rodzaju domowy serwer dedykowany, który służy mi przede wszystkim do wymiany plików między komputerami oraz jako ruter. No właśnie, ruter. Na początku komputer był skonfigurowany jako ruter ,,kablowy'' (ethernet), połączyłem go z innymi komputerami w domu (inny komputer oraz laptop) i wszystko działało poprawnie.

Niedawno wygrzebałem starą kartę wifi RT2400, wsadziłem do komputera (rutera), wkręciłem antenę i chciałem stworzyć sobie domowy punkt dostępowy. Ogólnie wszystko udało się skonfigurować (tj. hostapd, dhcp), skompilowałem jakieś nieoficjalne sterowniki do tej mojej karty. Uruchomiłem wszystko, po długich staraniach nie było już żadnych błędów od strony hostapd (które także skompilowałem, nie instalowałem z repozytoriów). Pożyczyłem od znajomego Wifi pod USB, podłączyłem pod laptopa, zainstalowałem sterowniki. Skanuję sieci. Wykryło ich 4, w tym moją. Więc klikam ,,Połącz'', wpisuję hasło, a tutaj błąd, że nie może się połączyć z siecią. Dzisiaj jeszcze jeden znajomy przyszedł z PSP i niestety tutaj też był błąd dotyczący połączenia z siecią.

System: Debian 5.0 Lenny
Jądro: 2.6.32-bpo.4-486
Karta sieciowa (wifi) w komputerze (ruterze): RT2400
Hostapd: 0.7.coś (najnowsze)

/etc/network/interfaces

Kod: Zaznacz cały

auto eth0
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet static
address 10.0.3.1
netmask 255.255.255.0

auto eth1
iface eth1 inet static
address 10.0.0.1
netmask 255.255.255.0

auto eth0_rename
iface eth0_rename inet static
address 10.0.1.1
netmask 255.255.255.0
/etc/dhcp3/dhcpd.conf

Kod: Zaznacz cały

subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.3 10.0.0.254;
default-lease-time 6100;
#option domain-name down4free.pl.;
option domain-name-servers 172.20.0.1, 194.204.152.34;
option routers 10.0.0.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;

host pc { # sieciowka nr 1 - eth1
      hardware ethernet 00:0F:EA:0B :D A:56;
      fixed-address 10.0.0.2;
  }
}


subnet 10.0.1.0 netmask 255.255.255.0 {
range 10.0.1.3 10.0.1.254;
default-lease-time 6100;
#option domain-name down4free.pl.;
option domain-name-servers 172.20.0.1, 194.204.152.34;
option routers 10.0.1.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.1.255;



host laptop { # sieciowka nr 2 = eth0_rename
        hardware ethernet 00:0F:EA:0B :D A:56;
        fixed-address 10.0.1.2;
}
}


subnet 10.0.2.0 netmask 255.255.255.0 {
range 10.0.2.3 10.0.2.254;
default-lease-time 6100;
#option domain-name down4free.pl.;
option domain-name-servers 172.20.0.1, 194.204.152.34;
option routers 10.0.2.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.2.255;

host vps {
        hardware ethernet 00:0F:EA:0B :D A:56;
        fixed-address 10.0.2.2;
}
}

subnet 10.0.3.0 netmask 255.255.255.0 {
range 10.0.3.3 10.0.3.254;
default-lease-time 6100;
#option domain-name down4free.pl.;
option domain-name-servers 172.20.0.1, 194.204.152.34;
option routers 10.0.3.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.3.255;

host wifi { # wifi - wlan0
      hardware ethernet 00:80:C6:E8:A:D 4;
      fixed-address 10.0.3.2;
  }
}
/etc/hostapd.conf

Kod: Zaznacz cały

interface=wlan0
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=blackbit
country_code=PL
hw_mode=b
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0
eapol_key_index_workaround=0
eap_server=0
wpa=1
wpa_passphrase=tajnehaslo
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
#wpa_pairwise=CCMP
channel=4
own_ip_addr=10.0.3.1
Polecenie:

Kod: Zaznacz cały

hostapd -dddd /etc/hostapd.conf
zwraca:

Kod: Zaznacz cały

Configuration file: /etc/hostapd.conf
ctrl_interface_group=0
nl80211: Register Action command failed: ret=-114 (Operation already in progress)
nl80211: Register Action match - hexdump(len=1): 06
nl80211: Failed to register Action frame processing - ignore for now
nl80211: Add own interface ifindex 7
nl80211: New interface mon.wlan0 created: ifindex=12
nl80211: Add own interface ifindex 12
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=16 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=16 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=16 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=19 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=19 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=19 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x0
RATE[3] rate=110 flags=0x0
Completing interface initialization
Mode: IEEE 802.11b  Channel: 4  Frequency: 2427 MHz
Flushing old station entries
Deauthenticate all stations
wpa_driver_nl80211_set_key: ifindex=7 alg=0 addr=(nil) key_idx=0 set_tx=1 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=7 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=7 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=7 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0 with hwaddr 00:80:c6:e8:a0:d4 and ssid 'blackbit'
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=8):
     62 6c 61 63 6b 62 69 74                           blackbit
PSK (ASCII passphrase) - hexdump_ascii(len=10): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GMK - hexdump(len=32): [REMOVED]
GTK - hexdump(len=32): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
wpa_driver_nl80211_set_key: ifindex=7 alg=2 addr=(nil) key_idx=1 set_tx=1 seq_len=0 key_len=32
nl80211: Set beacon (beacon_set=0)
wlan0: Setup of interface done.
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
Co zrobić? Co zmienić, aby dało się połączyć? Wszystkie regułki w iptables wyczyściłem na czas testów.

Proszę o pomoc.
Pozdrawiam