Temat: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Witam wszystkich. Posiadam 2 routery tp-link WR1043ND. Wgralem do obu openwrt. Jeden chce ustawic jako access point a drugi jako client. Openwrt mam wgrane z tad http://ecco.selfip.net/tl-wr1043nd-luci/ . Ustawiam wszystko tak jak tutaj jest opisane http://eko.one.pl/?p=openwrt-wr1043nd przez winscp ale po wejsciu w interfejs graficzny luci i wcisnieciu scan nic nie wykrywa. Jak to ustawic? Od wczoraj sie mecze i nic z tego. Pomocy!

2

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Jeżeli ręczenie ustawiłeś to po co jeszcze w luci mieszasz? Zrób konfigurację, na AP wydaj polecenie wifi, jak wystartuje to na kliencie to samo i masz.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3 (edytowany przez kowalmisiek 2010-07-04 22:44:37)

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Cezary srednio sie znam na linuxsie. Raczej bym powiedzial ze jestem zielony. Wlaczylem winscp i skopiowalem ustawienia ze strony http://eko.one.pl/?p=openwrt-wr1043nd. Zmienilem haslo zeby w obu bylo takie samo i mac wlasny wpisalem. Zrobilem to samo w ap jak i w cliencie. Potem wlaczylem putty i wpisalem taka komende "# wifi" i enter. Nic sie w putty nie pojawilo ze jest cos wlaczone ale dobra. Odlaczylem kabel ethernet od ap i probowalem po ip wejsc z clienta na ap przez wifi ale nie wchodzi. Jakies propozycje? Juz sie zastanawiam czy od nowa softu nie wgrac i jeszcze raz ustawiac?

Bylbym wdzieczny jak bys opisal co dokladnie sie robi od wgrania golego softu az do nawiazania polaczenia?

Edit
Zrobilem failsafe na obu routerkach. Po kolei zaczalem wszystko robic omijajac szerokim lukiem luci. I jakis postep jest. Access point udalo mi sie uruchomic. Wrzucilem ze stronki dane do ap i potem w putty wpisalem wifi i sie udalo. Gorzej jest niestety z clientem. Wrzucilem wszystko jak nalezy przez winscp i w putty wpisuje wifi i wywala bledy. Tak to wyglada.
http://ifotos.pl/mini/Beztytulu_esepxh.jpg

4

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Pierwsza sprawa - putty ma logowanie poleceń, wiec screenshotów nie musisz dawać tylko output smile
Druga - pokaz wynik poleceń

cat /etc/config/network
cat /etc/config/wireless

na jednym i drugim urządzeniu

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

No wiec tak. To jest to urzadzenie ktore ma bledy czyli client.

cat /etc/config/network

root@OpenWrt:~# wifi
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
udhcpc (v1.15.3) started
root@OpenWrt:~# Sending discover...
Sending discover...
Sending discover...

root@OpenWrt:~# cat /etc/config/network
config 'interface' 'loopback'
       option 'ifname'   'lo'
       option 'proto'    'static'
       option 'ipaddr'   '127.0.0.1'
       option 'netmask'  '255.0.0.0'

config 'interface' 'lan'
        option 'ifname'   'eth0.1'
        option 'type'     'bridge'
        option 'proto'    'static'
        option 'ipaddr'   '192.168.1.60'
        option 'netmask'  '255.255.255.0'

config 'interface' 'wan'
        option 'ifname' 'eth0.2'
        option 'proto' 'dhcp'

config 'interface' '3g'
        option 'device' '/dev/ttyUSB0'
        option 'apn' 'internet'
        option 'service' 'umts'
        option 'proto' '3g'
        option 'hotplug' 1
        option 'pincode' '0000'

config 'switch'
        option 'name' 'rtl8366rb'
        option 'reset' '1'
        option 'enable_vlan' '1'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '1'
        option 'ports' '1 2 3 4 5t'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '2'
        option 'ports' '0 5t'
root@OpenWrt:~#



cat /etc/config/wireless

config wifi-device radio0
        option type mac80211
        option channel 5
        option macaddr  94:0c:6d:ee:61:70
        option hwmode 11ng
        option htmode HT20
        list ht_capab HT40+
        list ht_capab HT40-
        list ht_capab SHORT-GI-40
        list ht_capab DSSS_CCK-40
        option disabled 0
        option country PL

    config wifi-iface
        option device radio0
        option network wan
        option mode sta
        option ssid ISP
        option encryption psk2
        option key 1234567890

A tu jest drugie urzadzenie czyli AP


root@OpenWrt:~# cat /etc/config/network
config 'interface' 'loopback'
       option 'ifname'   'lo'
       option 'proto'    'static'
       option 'ipaddr'   '127.0.0.1'
       option 'netmask'  '255.0.0.0'

config 'interface' 'lan'
        option 'ifname'   'eth0.1'
        option 'type'     'bridge'
        option 'proto'    'static'
        option 'ipaddr'   '192.168.1.1'
        option 'netmask'  '255.255.255.0'

config 'interface' 'wan'
        option 'ifname' 'eth0.2'
        option 'proto' 'dhcp'

config 'interface' '3g'
        option 'device' '/dev/ttyUSB0'
        option 'apn' 'internet'
        option 'service' 'umts'
        option 'proto' '3g'
        option 'hotplug' 1
        option 'pincode' '0000'

config 'switch'
        option 'name' 'rtl8366rb'
        option 'reset' '1'
        option 'enable_vlan' '1'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '1'
        option 'ports' '1 2 3 4 5t'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '2'
        option 'ports' '0 5t'
root@OpenWrt:~#


root@OpenWrt:~# cat /etc/config/wireless
    config wifi-device radio0
        option type mac80211
        option channel 5
        option macaddr  94:0c:6d:ae:b6:ca
        option hwmode 11ng
        option htmode HT20
        list ht_capab HT40+
        list ht_capab HT40-
        list ht_capab SHORT-GI-40
        list ht_capab DSSS_CCK-40
        option disabled 0
        option country PL

    config wifi-iface
        option device radio0
        option network lan
        option mode ap
        option ssid OpenWrt
        option encryption psk2
        option key 1234567890


Dzieki z gory za odpowiedz.

6

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Na pierwszy rzut oka wszystko gra.

Czy klient po

 iw dev wlan0 scan 

widzi ap?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7 (edytowany przez kowalmisiek 2010-07-05 10:12:07)

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Hmmm na pierwszy rzut oka kontrolka od wlan sie w ogole nie zaswiecila tak jak by wifi nie bylo wlaczone.
Edit.
Po wifi jak probuje wejsc na z clienta na ap nie moge wiec wifi na cliencie napewno nie dziala chyba ze da sie to jakos inaczej sprawdzic czy dziala czy nie. Na ap kontrolka WLAN sie swieci caly czac a na client jest wylaczona.

8

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Czekaj. Taka konfiguracja to klient z natem, wiec nie możesz mieć takiej samej adresami.

Jeżeli ap masz ip 192.168.1.60 z maską 255.255.255.0 to klient ma mieć coś innego, np. 192.168.2.1 z maską 255.255.255.0.

Po kontrolkach nie patrz, one są sterowane programowo. Zwykłym ping/router/ifconfig sprawdz czy istnieje połączenie.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Hmmm nie wiem jak sie pinguje w putty wiec zrobilem to na dosie. Powiem tak ze dziwna sprawa. Na starej konfiguracji czyli na ip 192.168.1.1 bylo tak

odpowiedz z 192.168.1.7(moj komputer)host docelowy jest nie osiagalny
odpowiedz z 192.168.1.7host docelowy jest nie osiagalny
odpowiedz z 192.168.1.7host docelowy jest nie osiagalny
odpowiedz z 192.168.1.7host docelowy jest nie osiagalny
wyslane=4 odebrane=4 utracone=0


a jak zmienilem na 192.168.2.1 to caly czas jest

"uplynal limit czasu zadania"

10

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Kurcze musze isc do pracy. Bede po 21. Mam nadzieje ze cos wymyslisz Cezary bo ja juz nie mam pomyslow.

11 (edytowany przez kowalmisiek 2010-07-05 21:35:57)

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Po wpisaniu w putty tej komendy wywala mi taki blad

"root@OpenWrt:~# iw dev wlan0 scan
command failed: Device or resource busy (-16)
" Jak by komenda byla zla.

Jak w LUCI ustawiam clienta na tryb ad-hoc to po scanowaniu w luci wykrywa mi ap ale tam niema w tej luci mazliwosci "connect" no i lipa.

Tak to wyglada. http://ifotos.pl/mini/siec_eswwwp.jpg

Po ustawieniu w routerze ktory ma byc klientem funkcji ad-hoc po skanowaniu pojawia sie mac mojego tplinka i cos jeszcze z identyczna sila nie wiem co to jest. Na tym ad-hoc po wpisaniu w putty "wifi" wlaczyla sie dioda od wlan ale nadal nie moge wejsc na ap. Kurcze zwariowac mozna. Poradz cos Cezary!

12

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Więc jeszcze raz, zakładając że oba są po failsafe
- ap: ustawiasz disabled na 0, encryption na psk2, key na wymagane hasło. Reboot i już działa jako normalny ap. Dodatkowo możesz zmienić ssid, ustawić ht_capb itd.
- apclient: ustawiasz disabled na 0, enryption na psk2, key jak wyżej. Typ radia na sta, siec na wan oraz adres ip: z domyślnego 192.168.1.1 na 192.168.2.1. Reboot - powinien podłączyć się do tego pierwszego, a komputer podłączony kablem pod ten drugi powinien dostać adres ip z klasy 192.168.2.0/24

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

13 (edytowany przez rpc 2010-07-06 07:04:57)

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

nie wiem czy dobrze widzę niech kolega mnie poprawi ale:
1.jeden wr1043nd ma być podłączony do ISP w trybie ap client (sta) po wifi. To on bedzie dostarczał internet do twojej sieci. Adresacja to 192.168.1.0/24
2.drugi ap wr1043nd ma być podłączony do pierwszego routera portem lan-lan czyli nie musi być inna adresacja wręcz powinna być ta sama. Na drugim routerze port wan nie jest podłączony
schemat
ISP <---> (wifi sta) wr1043nd (lan=192.168.1.60) <--> (lan=192.168.1.1) wr1043nd (wifi ap to client)

Po pierwsze wyłącz dhcp na drugim routerze bo się żrą między sobą. W sieci może być tylko jeden serwer dhcp
Po drugie na razie wywal opcje:
        list ht_capab HT40+
        list ht_capab HT40-
no i zmień numer kanału na inny a AP np. na 1 z 5 (kanały mają byc różne)

Pozostaje jeszcze problem wifi sta (komunikaty o błędach) czyli
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument

w katalogu /var/run powinien być plik wpa_supplicant-wlan0.conf
proszę wkleić zawartość tego pliku tutaj

proszę uruchomić komendy ręcznie w konsoli

killall wpa_supplicant
wpa_supplicant -b br-lan -dd -i wlan0 -c /var/run/wpa_supplicant-wlan0.conf

a wynik wkleić tutaj (działanie kolega przerwie CTRL+C)

druga rzecz z tego co widzę to te błędy będą się pojawiać i są związane ze sterownikiem i nie powinny przeszkadzać - jeszcze to się przeanalizuje. Ale jak kolega wywoła wifi to program działa patrz

ps ax

na liście winien być wpa_supplicant (zresztą wynik też tu wklej)
poza tym jak kolega zrobi co wyżej napisałem się okaże czy poprawnie loguje się do sieci.


No to czekamy na logi

ps. jak kolega będzie wklejał logi to proszę je umieścić między znacznikami code proszę sobie poczytać tutaj http://eko.one.pl/forum/help.php?section=bbcode

14 (edytowany przez kowalmisiek 2010-07-06 07:26:51)

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Internet ma wychodzic z AP a nie z clienta. Narazie kombinuje jak uzyskac polaczenie. Port wan bedzie uzywany w AP w pppoe pod netie na lini tp ale na ten moment chce tylko sie polaczyc.
No wiec tak. Wynik po komendzie wpa_supplicant -b br-lan -dd -i wlan0 -c /var/run/wpa_supplicant-wlan0.conf

RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=8
Received 711 bytes of scan results (2 BSSes)
BSS: Start scan result update 37
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - SSID mismatch
No suitable network found
Setting scan request: 0 sec 0 usec
Starting AP scan for specific SSID(s)
Scan requested (ret=0) - scan timeout 30 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=8
Received 711 bytes of scan results (2 BSSes)
BSS: Start scan result update 38
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - SSID mismatch
No suitable network found
Setting scan request: 0 sec 0 usec
Starting AP scan for specific SSID(s)
Scan requested (ret=0) - scan timeout 30 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=8
Received 711 bytes of scan results (2 BSSes)
BSS: Start scan result update 39
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - SSID mismatch
No suitable network found
Setting scan request: 0 sec 0 usec
Starting AP scan for specific SSID(s)
Scan requested (ret=0) - scan timeout 30 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=8
Received 711 bytes of scan results (2 BSSes)
BSS: Start scan result update 40
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - SSID mismatch
No suitable network found
Setting scan request: 0 sec 0 usec
Starting AP scan for specific SSID(s)
Scan requested (ret=0) - scan timeout 30 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=8
Received 711 bytes of scan results (2 BSSes)
BSS: Start scan result update 41
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - SSID mismatch
No suitable network found
Setting scan request: 0 sec 0 usec
Starting AP scan for specific SSID(s)
Scan requested (ret=0) - scan timeout 30 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=8
Received 712 bytes of scan results (2 BSSes)
BSS: Start scan result update 42
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - SSID mismatch
No suitable network found
Setting scan request: 0 sec 0 usec
Starting AP scan for specific SSID(s)
Scan requested (ret=0) - scan timeout 30 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=8
Received 711 bytes of scan results (2 BSSes)
BSS: Start scan result update 43
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - SSID mismatch
No suitable network found
Setting scan request: 0 sec 0 usec
Starting AP scan for specific SSID(s)
Scan requested (ret=0) - scan timeout 30 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=8
Received 711 bytes of scan results (2 BSSes)
BSS: Start scan result update 44
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - SSID mismatch
No suitable network found
Setting scan request: 0 sec 0 usec
Starting AP scan for specific SSID(s)
Scan requested (ret=0) - scan timeout 30 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=8
Received 711 bytes of scan results (2 BSSes)
BSS: Start scan result update 45
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - SSID mismatch
No suitable network found
Setting scan request: 0 sec 0 usec
Starting AP scan for specific SSID(s)
Scan requested (ret=0) - scan timeout 30 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=8
Received 711 bytes of scan results (2 BSSes)
BSS: Start scan result update 46
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 94:0c:6d:ae:b6:ca ssid='OpenWrt' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:1f:a4:8a:85:33 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - SSID mismatch
No suitable network found
Setting scan request: 0 sec 0 usec
Starting AP scan for specific SSID(s)
Scan requested (ret=0) - scan timeout 30 seconds
^CCTRL-EVENT-TERMINATING - signal 2 received
Removing interface wlan0
No keys have been configured - skip key clearing
State: SCANNING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_set_countermeasures
No keys have been configured - skip key clearing
BSS: Remove id 0 BSSID 94:0c:6d:ae:b6:ca SSID 'OpenWrt'
BSS: Remove id 1 BSSID 00:1f:a4:8a:85:33 SSID ''
Cancelling scan request
Cancelling authentication timeout
netlink: Operstate: linkmode=0, operstate=6
root@OpenWrt:~#

A tu wynik po drugiej komendzie PS AX

root@OpenWrt:~# ps ax
  PID USER       VSZ STAT COMMAND
    1 root      1364 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [events/0]
    5 root         0 SW   [khelper]
    8 root         0 SW   [async/mgr]
   41 root         0 SW   [sync_supers]
   43 root         0 SW   [bdi-default]
   45 root         0 SW   [kblockd/0]
   70 root         0 SW   [kswapd0]
   71 root         0 SW   [aio/0]
   72 root         0 SW   [crypto/0]
   84 root         0 SW   [mtdblockd]
   90 root         0 SW   [ar71xx-spi]
  225 root         0 SW   [ipolldevd]
  280 root         0 SWN  [jffs2_gcd_mtd3]
  295 root      1364 S    init
  314 root      1368 S    syslogd -C16
  316 root      1352 S    klogd
  330 root       772 S    /sbin/hotplug2 --override --persistent --set-worker /
  468 root         0 SW   [cfg80211]
  607 root         0 SW   [khubd]
  659 root         0 SW   [phy0]
 1134 root      1136 S    /usr/sbin/dropbear -p 22 -P /var/run/dropbear.1.pid
 1142 root      2100 S    /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -t
 1146 root      1044 S    vsftpd
 1173 root      2624 S N  smbd -D
 1175 root      2124 S    nmbd -D
 1188 root      1360 S    watchdog -t 5 /dev/watchdog
 2726 root      1360 S    udhcpc -t 0 -i eth0.2 -b -p /var/run/dhcp-eth0.2.pid
 3073 nobody     904 S    /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/ -
 3253 root      1364 S    udhcpc -t 0 -i wlan0 -b -p /var/run/dhcp-wlan0.pid -O
 3322 root      1192 S    /usr/sbin/dropbear -p 22 -P /var/run/dropbear.1.pid
 3323 root      1364 S    -ash
 3336 root      1356 R    ps ax
root@OpenWrt:~#

A tu z katalogu
var/run/

ctrl_interface=/var/run/wpa_supplicant-wlan0
network={
    scan_ssid=1
    ssid="ISP"
    
    key_mgmt=WPA-PSK
    proto=RSN
    
    psk="1234567890"

15

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

W jednym masz ustawiony ssid ISP a w drugim OpenWrt. Mają być takie same przecież...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

16

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Ssid zmienione i w obu jest juz OpenWrt

17 (edytowany przez kowalmisiek 2010-07-06 08:31:08)

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Hmmm. Dziwna sprawa jest. Zrobilem failsafe na obu routerach i jeszcze raz ustawilem z wpisanym ssid tym samym i jest pewien sukces ale nie do konca. Ustawilem wszystko tak jak nalezy i lacza sie ale mozna to laczenie nazwac monologiem. Po ustawieniu w winscp wszystkiego jak nalezy i zresetowaniu powiedzmy ze sie polaczyly oba. Z AP moge wchodzic na clienta ale z clienta na AP nie moge. Kiedy z Ap puszczam pingi do clienta odpowiedzi dochodza ale jak z clienta puszczam na AP to nic nie dochodzi. Wiecie o co chodzi z tym? Moze to przez to dhcp? Gdzie to sie zmienia?
PS W obu routerach urzywam portow lan a nie wan jak by to mialo w czyms pomoc ale w obu konfiguracjach ustawilem na LAN

18 (edytowany przez rpc 2010-07-06 08:38:18)

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

po kolei usystematyzujmy to wszystko

masz już link to dobrze

Ustawiłeś w różnych podsieciach oba routery ? bo tak powinno być
AP(ap) - 192.168.1.0/24 192.168.1.1
APCLIENT(sta) - 192.168.2.0/24 192.168.2.1(static lan), 192.168.1.60(static wan)

jak rozumiem pingujesz z AP port WAN apclient czyli np. adres 192.168.1.60 poprawnie to jest wszystko ok

i jak rozumiem na APCLIENT nie możesz pingować AP czyli ping 192.168.1.1 ?


podaj w takim razie na poczatek logi z obu routerów:

route -n
ifconfig

ps. w routerze APCLIENT musisz użyć portu WAN nie LAN. Niestety tryb bridge nie działa w wr1043nd (tryb sta) i będziesz miał dwie podsieci. Więc albo użyjesz wds albo będziesz miał dwie podsieci

19 (edytowany przez kowalmisiek 2010-07-06 09:11:33)

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Pingi puszczalem z AP portem LAN do Clienta i po wifi dochodzily. W obu ustawieniach wireless mialem  ustawione LAN a nie wan. Jesli to jest tak duza roznica to moge to zmienic ale w przypadku AP jak i Clienta chcial bym switcha uzywac normalnie. Dziwna sprawa jest jak chodzi o port wan. Tak jak by nie dzialal. Podlanczam wtyczke do niego w obu routerach i nie chce nawiazac polaczenia z windowsem. Na lanie laczy sie normalnie.
A tu logi:

root@OpenWrt:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan
root@OpenWrt:~#
root@OpenWrt:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 94:0C:6D:AE:B6:CA
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:368 errors:0 dropped:0 overruns:0 frame:0
          TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:64830 (63.3 KiB)  TX bytes:9609 (9.3 KiB)

eth0      Link encap:Ethernet  HWaddr 94:0C:6D:AE:B6:CA
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:555 errors:0 dropped:0 overruns:0 frame:0
          TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:126389 (123.4 KiB)  TX bytes:11000 (10.7 KiB)
          Interrupt:4

eth0.1    Link encap:Ethernet  HWaddr 94:0C:6D:AE:B6:CA
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:362 errors:0 dropped:0 overruns:0 frame:0
          TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:66034 (64.4 KiB)  TX bytes:9957 (9.7 KiB)

eth0.2    Link encap:Ethernet  HWaddr 94:0C:6D:AE:B6:CA
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

mon.wlan0 Link encap:UNSPEC  HWaddr 94-0C-6D-AE-B6-CA-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:30 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:2240 (2.1 KiB)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 94:0C:6D:AE:B6:CA
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:359 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:248 (248.0 B)  TX bytes:74391 (72.6 KiB)

root@OpenWrt:~#

PS. Jak zmienilem ip AP na inna grupe (192.168.2.1) to nie moge juz chodzic z AP na clienta.

20

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

nie rozumiesz ale po kolei

1. router który pracuje w trybie ap ustawiasz mu sieć 192.168.1.0 255.255.255.0 i adres ip lan 192.168.1.1. Port WAN na razie nie podłączasz

config 'interface' 'loopback'
       option 'ifname'   'lo'
       option 'proto'    'static'
       option 'ipaddr'   '127.0.0.1'
       option 'netmask'  '255.0.0.0'

config 'interface' 'lan'
        option 'ifname'   'eth0.1'
        option 'type'     'bridge'
        option 'proto'    'static'
        option 'ipaddr'   '192.168.1.1'
        option 'netmask'  '255.255.255.0'

config 'interface' 'wan'
        option 'ifname' 'eth0.2'
        option 'proto' 'dhcp'

config 'switch'
        option 'name' 'rtl8366rb'
        option 'reset' '1'
        option 'enable_vlan' '1'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '1'
        option 'ports' '1 2 3 4 5t'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '2'
        option 'ports' '0 5t'

    config wifi-device radio0
        option type mac80211
        option channel 5
        option macaddr  94:0c:6d:ae:b6:ca
        option hwmode 11ng
        option htmode HT20
        list ht_capab HT40+
        list ht_capab HT40-
        list ht_capab SHORT-GI-40
        list ht_capab DSSS_CCK-40
        option disabled 0
        option country PL

    config wifi-iface
        option device radio0
        option network lan
        option mode ap
        option ssid OpenWrt
        option encryption psk2
        option key 1234567890

2.do tego routera łączysz się drugim routerem w trybie apclient. gdzie w konfiguracji powinieneś mieć:

config 'interface' 'loopback'
       option 'ifname'   'lo'
       option 'proto'    'static'
       option 'ipaddr'   '127.0.0.1'
       option 'netmask'  '255.0.0.0'

config 'interface' 'lan'
        option 'ifname'   'eth0.1'
        option 'type'     'bridge'
        option 'proto'    'static'
        option 'ipaddr'   '192.168.2.1'
        option 'netmask'  '255.255.255.0'

config 'interface' 'wan'
        option 'ifname' 'eth0.2'
        option 'proto' 'static'
        option 'ipaddr'   '192.168.1.60'
        option 'netmask'  '255.255.255.0'
        option 'gateway'   '192.168.1.1'
        option 'dns'  '192.168.1.1'


config 'switch'
        option 'name' 'rtl8366rb'
        option 'reset' '1'
        option 'enable_vlan' '1'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '1'
        option 'ports' '1 2 3 4 5t'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '2'
        option 'ports' '0 5t'
config wifi-device radio0
        option type mac80211
        option channel 5
        option macaddr  94:0c:6d:ee:61:70
        option hwmode 11ng
        option htmode HT20
        list ht_capab HT40+
        list ht_capab HT40-
        list ht_capab SHORT-GI-40
        list ht_capab DSSS_CCK-40
        option disabled 0
        option country PL

    config wifi-iface
        option device radio0
        option network wan
        option mode sta
        option ssid OpenWrt
        option encryption psk2
        option key 1234567890

i tak powinno to wyglądać
w obu routerach masz wolne switche i w obu przydzielasz adresy z dhcp z tym że z innej sieci

21 (edytowany przez kowalmisiek 2010-07-06 09:52:00)

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Ustawilem w winscp dokladnie tak jak piszesz i lipa dalej jest. Roznica tylko taka ze jak zmienilem ip w ap na 192.168.1.1 a w cliencie na 192.168.2.1 to tyle ze juz przez ap nie moge wejsc na clienta czy podlanczajac wtyczke do wan czy lan efekt taki sam. Oczywiscie w windowsie zmieniam IP do odpowiedniej grupy jak sie podlanczam. Ale to jest chore sad Ide do pracy. Bede po 20

22 (edytowany przez rpc 2010-07-06 10:10:15)

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

wtyczki nigdzie nie podłączasz kurde mol ja pisałem o wan jako konfiguracji sieci a nie o WAN jako gnieździe RJ-45 niebieskim

przecież apclient łączy się bezprzewodowo z ap. kto ci kazał wtyczki podłączać ?

oba routery w tej konfiguracji luźno stoją. Co najwyżej się do nich podłączasz poprzez kabel komputerem (bądź wifi na routerze z AP)

jeśli zrobiłeś to co napisałem to z obu routerów proszę

route -n
ifconfig
iwconfig
ps ax
logread
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/firewall

wiem wiem logów aż za dużo ale trzeba się zorientować co tam masz narobione

Ps. małe wyjaśnienie. Jak masz dwie podsieci to z:
APCLIENT(192.168.2.0/24) -> AP dostaniesz się bezproblemowo do wszystkich hostów w 192.168.1.0/24
AP -> APCLIENT dostaniesz sie TYLKO do 192.168.1.60 bezproblemowo. Jak chcesz dostać się do np. 192.168.2.10 to MUSISZ ustawić jeszcze redirect na konkretne porty w /etc/config/firewall inaczej nie ma w trybie STA. Ew. możesz wykorzystać proxyarp lub routing i kropka

Ps2. co Ty tak naprawdę chcesz uzyskać ? opisz bo może nie da się tak jak chcesz. Opisz co gdzie ma być podłączone. Co jakie ma mieć adresy etc. Odnoszę wrażenie że chcesz mieć na obu urządzeniach tę samą adresację ale się tak nie da w trybie STA. Może będziemy mogli coś innego wtedy zaproponować.

23 (edytowany przez kowalmisiek 2010-07-06 20:09:31)

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Dobra wiec co chce uzyskac. Lacze 2 sieci w mojej ma byc AP i kilka komputerow podlaczonych do switcha od AP kablem. Druga siec ma swoj internet ale jedna z osob chce miec neta odemnie. I chce miec wszystkie komputery w otoczeniu sieciowym. Tak plus minus to bedzie wygladac rysunkowo. http://ifotos.pl/mini/Beztytulu_esapsp.jpg

Edit:

Teraz logi ale strasznie duzo tego jest.

AP

root@OpenWrt:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan
root@OpenWrt:~#

root@OpenWrt:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 94:0C:6D:AE:B6:CA
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:24821 errors:0 dropped:0 overruns:0 frame:0
          TX packets:344 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7957225 (7.5 MiB)  TX bytes:55546 (54.2 KiB)

eth0      Link encap:Ethernet  HWaddr 94:0C:6D:AE:B6:CA
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25201 errors:0 dropped:0 overruns:4 frame:0
          TX packets:12494 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8428475 (8.0 MiB)  TX bytes:5004066 (4.7 MiB)
          Interrupt:4

eth0.1    Link encap:Ethernet  HWaddr 94:0C:6D:AE:B6:CA
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25191 errors:0 dropped:0 overruns:0 frame:0
          TX packets:338 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8071929 (7.6 MiB)  TX bytes:55938 (54.6 KiB)

eth0.2    Link encap:Ethernet  HWaddr 94:0C:6D:AE:B6:CA
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12155 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:4947085 (4.7 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

mon.wlan0 Link encap:UNSPEC  HWaddr 94-0C-6D-AE-B6-CA-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1181 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:106981 (104.4 KiB)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 94:0C:6D:AE:B6:CA
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:75 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24730 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7914 (7.7 KiB)  TX bytes:8756721 (8.3 MiB)

root@OpenWrt:~#


root@OpenWrt:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth0.1    no wireless extensions.

eth0.2    no wireless extensions.

br-lan    no wireless extensions.

wlan0     IEEE 802.11bgn  Mode:Master  Frequency:2.432 GHz  Tx-Power=20 dBm
          RTS thr:off   Fragment thr:off
          Power Management:off

mon.wlan0  IEEE 802.11bgn  Mode:Monitor  Tx-Power=20 dBm
          RTS thr:off   Fragment thr:off
          Power Management:off

root@OpenWrt:~#


root@OpenWrt:~# ps ax
  PID USER       VSZ STAT COMMAND
    1 root      1364 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [events/0]
    5 root         0 SW   [khelper]
    8 root         0 SW   [async/mgr]
   41 root         0 SW   [sync_supers]
   43 root         0 SW   [bdi-default]
   45 root         0 SW   [kblockd/0]
   70 root         0 SW   [kswapd0]
   71 root         0 SW   [aio/0]
   72 root         0 SW   [crypto/0]
   84 root         0 SW   [mtdblockd]
   90 root         0 SW   [ar71xx-spi]
  225 root         0 SW   [ipolldevd]
  280 root         0 SWN  [jffs2_gcd_mtd3]
  295 root      1364 S    init
  314 root      1368 S    syslogd -C16
  316 root      1352 S    klogd
  330 root       772 S    /sbin/hotplug2 --override --persistent --set-worker /
  458 root         0 SW   [cfg80211]
  497 root      1360 S    udhcpc -t 0 -i eth0.2 -b -p /var/run/dhcp-eth0.2.pid
  586 root         0 SW   [khubd]
  659 root         0 SW   [phy0]
  929 root      1424 S    hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostapd
 1276 root      1136 S    /usr/sbin/dropbear -p 22 -P /var/run/dropbear.1.pid
 1284 root      2100 S    /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -t
 1318 root      1044 S    vsftpd
 1336 nobody     896 S    /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/ -
 1345 root      2624 S N  smbd -D
 1347 root      2124 S    nmbd -D
 1360 root      1360 S    watchdog -t 5 /dev/watchdog
 1753 root      1192 S    /usr/sbin/dropbear -p 22 -P /var/run/dropbear.1.pid
 1754 root      1364 S    -ash
 1762 root      1356 R    ps ax

ric
Jun  1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver usbserial_generic
Jun  1 23:15:10 OpenWrt user.info kernel: usbserial: USB Serial Driver core
Jun  1 23:15:10 OpenWrt user.info kernel: Initializing USB Mass Storage driver...
Jun  1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver usb-storage
Jun  1 23:15:10 OpenWrt user.info kernel: USB Mass Storage support registered.
Jun  1 23:15:10 OpenWrt user.info kernel: USB Serial support registered for GSM modem (1-port)
Jun  1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver option
Jun  1 23:15:10 OpenWrt user.info kernel: option: v0.7.2:USB Driver for GSM modems
Jun  1 23:15:10 OpenWrt user.info kernel: USB Serial support registered for Sierra USB modem
Jun  1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver sierra
Jun  1 23:15:10 OpenWrt user.info kernel: sierra: v.1.3.8:USB Driver for Sierra Wireless USB modems
Jun  1 23:15:10 OpenWrt user.info kernel: fuse init (API version 7.13)
Jun  1 23:15:12 OpenWrt user.info kernel: cfg80211: Calling CRDA for country: PL
Jun  1 23:15:12 OpenWrt user.info kernel: cfg80211: Regulatory domain changed to country: PL
Jun  1 23:15:12 OpenWrt user.info kernel:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jun  1 23:15:12 OpenWrt user.info kernel:     (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun  1 23:15:12 OpenWrt user.info kernel:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun  1 23:15:12 OpenWrt user.info kernel:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun  1 23:15:12 OpenWrt user.info kernel:     (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
Jun  1 23:15:12 OpenWrt user.info kernel: device wlan0 entered promiscuous mode
Jun  1 23:15:12 OpenWrt user.info kernel: br-lan: port 2(wlan0) entering forwarding state
Jun  1 23:15:16 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 IEEE 802.11: authenticated
Jun  1 23:15:16 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 IEEE 802.11: associated (aid 1)
Jun  1 23:15:16 OpenWrt user.info kernel: device wlan0 left promiscuous mode
Jun  1 23:15:16 OpenWrt user.info kernel: br-lan: port 2(wlan0) entering disabled state
Jun  1 23:15:17 OpenWrt user.info kernel: device wlan0 entered promiscuous mode
Jun  1 23:15:17 OpenWrt user.info kernel: br-lan: port 2(wlan0) entering forwarding state
Jun  1 23:15:17 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 IEEE 802.11: authenticated
Jun  1 23:15:17 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 IEEE 802.11: associated (aid 1)
Jun  1 23:15:17 OpenWrt user.info sysinit: Loading defaults
Jun  1 23:15:17 OpenWrt user.info sysinit: Loading synflood protection
Jun  1 23:15:17 OpenWrt user.info sysinit: Adding custom chains
Jun  1 23:15:18 OpenWrt user.info sysinit: Loading zones
Jun  1 23:15:18 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 IEEE 802.11: authenticated
Jun  1 23:15:18 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 IEEE 802.11: associated (aid 1)
Jun  1 23:15:18 OpenWrt user.info sysinit: Loading forwarding
Jun  1 23:15:18 OpenWrt user.info sysinit: Loading redirects
Jun  1 23:15:18 OpenWrt user.info sysinit: Loading rules
Jun  1 23:15:18 OpenWrt user.info sysinit: Loading includes
Jun  1 23:15:18 OpenWrt user.info sysinit: Loading zone defaults
Jun  1 23:15:19 OpenWrt user.notice root: adding lan (br-lan) to firewall zone lan
Jun  1 23:15:19 OpenWrt authpriv.info dropbear[1276]: Running in background
Jun  1 23:15:19 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 IEEE 802.11: authenticated
Jun  1 23:15:19 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 IEEE 802.11: associated (aid 1)
Jun  1 23:15:19 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: pairwise key handshake completed (RSN)
Jun  1 23:15:21 OpenWrt daemon.info dnsmasq[1336]: started, version 2.52 cachesize 150
Jun  1 23:15:21 OpenWrt daemon.info dnsmasq[1336]: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
Jun  1 23:15:21 OpenWrt daemon.info dnsmasq[1336]: using local addresses only for domain lan
Jun  1 23:15:21 OpenWrt daemon.warn dnsmasq[1336]: no servers found in /tmp/resolv.conf.auto, will retry
Jun  1 23:15:21 OpenWrt daemon.info dnsmasq[1336]: read /etc/hosts - 1 addresses
Jun  1 23:15:23 OpenWrt user.info sysinit: setting up led WLAN
Jun  1 23:15:23 OpenWrt user.debug kernel: ar71xx-wdt: enabling watchdog timer
Jun  1 23:25:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  1 23:35:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  1 23:45:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  1 23:55:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 00:05:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 00:15:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 00:25:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 00:35:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 00:45:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 00:55:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 01:05:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 01:15:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 01:25:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 01:35:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 01:45:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 01:55:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 02:05:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 02:15:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 02:25:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 02:35:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 02:45:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 02:55:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 03:05:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 03:15:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 03:25:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 03:35:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 03:45:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 03:55:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 04:05:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 04:15:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 04:25:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 04:35:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 04:45:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 04:55:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 05:05:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 05:15:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 05:25:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 05:35:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 05:45:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 05:55:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 06:05:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 06:15:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 06:25:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 06:35:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 06:45:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 06:55:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 07:05:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 07:15:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 07:25:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 07:35:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 07:45:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 07:55:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 08:05:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 08:15:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 08:25:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 08:35:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 08:45:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 08:55:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 09:05:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 09:13:57 OpenWrt authpriv.info dropbear[1741]: Child connection from 192.168.1.7:49475
Jun  2 09:14:06 OpenWrt authpriv.notice dropbear[1741]: password auth succeeded for 'root' from 192.168.1.7:49475
Jun  2 09:14:32 OpenWrt authpriv.info dropbear[1741]: exit after auth (root): Exited normally
Jun  2 09:15:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 09:22:06 OpenWrt authpriv.info dropbear[1753]: Child connection from 192.168.1.7:49513
Jun  2 09:22:11 OpenWrt authpriv.notice dropbear[1753]: password auth succeeded for 'root' from 192.168.1.7:49513
Jun  2 09:25:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun  2 09:25:18 OpenWrt authpriv.info dropbear[1753]: exit after auth (root): Exited normally
Jun  2 09:25:31 OpenWrt authpriv.info dropbear[1766]: Child connection from 192.168.1.7:49514
Jun  2 09:25:36 OpenWrt authpriv.notice dropbear[1766]: password auth succeeded for 'root' from 192.168.1.7:49514
root@OpenWrt:~#


root@OpenWrt:~# cat /etc/config/network
config 'interface' 'loopback'
       option 'ifname'   'lo'
       option 'proto'    'static'
       option 'ipaddr'   '127.0.0.1'
       option 'netmask'  '255.0.0.0'

config 'interface' 'lan'
        option 'ifname'   'eth0.1'
        option 'type'     'bridge'
        option 'proto'    'static'
        option 'ipaddr'   '192.168.1.1'
        option 'netmask'  '255.255.255.0'

config 'interface' 'wan'
        option 'ifname' 'eth0.2'
        option 'proto' 'dhcp'

config 'interface' '3g'
        option 'device' '/dev/ttyUSB0'
        option 'apn' 'internet'
        option 'service' 'umts'
        option 'proto' '3g'
        option 'hotplug' 1
        option 'pincode' '0000'

config 'switch'
        option 'name' 'rtl8366rb'
        option 'reset' '1'
        option 'enable_vlan' '1'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '1'
        option 'ports' '1 2 3 4 5t'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '2'
        option 'ports' '0 5t'
root@OpenWrt:~#

root@OpenWrt:~# cat /etc/config/wireles
cat: can't open '/etc/config/wireles': No such file or directory
root@OpenWrt:~#


root@OpenWrt:~# cat /etc/config/firewall
config defaults
        option syn_flood        1
        option input            ACCEPT
        option output           ACCEPT
        option forward          REJECT

config zone
        option name             lan
        option input    ACCEPT
        option output   ACCEPT
        option forward  REJECT

config zone
        option name             wan
        option input    REJECT
        option output   ACCEPT
        option forward  REJECT
        option masq             1
        option mtu_fix  1

config zone
        option name             3g
        option input    REJECT
        option output   ACCEPT
        option forward  REJECT
        option masq             1

config forwarding
        option src      lan
        option dest     3g

config forwarding
        option src      lan
        option dest     wan

# We need to accept udp packets on port 68,
# see https://dev.openwrt.org/ticket/4108
config rule
        option src              wan
        option proto            udp
        option dest_port        68
        option target           ACCEPT

#Allow ping
config rule
        option src wan
        option proto icmp
        option icmp_type echo-request
        option target ACCEPT

# include a file with users custom iptables rules
config include
        option path /etc/firewall.user


### EXAMPLE CONFIG SECTIONS
# do not allow a specific ip to access wan
#config rule
#       option src              lan
#       option src_ip   192.168.45.2
#       option dest             wan
#       option proto    tcp
#       option target   REJECT

# block a specific mac on wan
#config rule
#       option dest             wan
#       option src_mac  00:11:22:33:44:66
#       option target   REJECT

# block incoming ICMP traffic on a zone
#config rule
#       option src              lan
#       option proto    ICMP
#       option target   DROP

# port redirect port coming in on wan to lan
#config redirect
#       option src                      wan
#       option src_dport        80
#       option dest                     lan
#       option dest_ip          192.168.16.235
#       option dest_port        80
#       option proto            tcp


### FULL CONFIG SECTIONS
#config rule
#       option src              lan
#       option src_ip   192.168.45.2
#       option src_mac  00:11:22:33:44:55
#       option src_port 80
#       option dest             wan
#       option dest_ip  194.25.2.129
#       option dest_port        120
#       option proto    tcp
#       option target   REJECT

#config redirect
#       option src              lan
#       option src_ip   192.168.45.2
#       option src_mac  00:11:22:33:44:55
#       option src_port         1024
#       option src_dport        80
#       option dest_ip  194.25.2.129
#       option dest_port        120
#       option proto    tcp
root@OpenWrt:~#



LOGI z Clienta



root@OpenWrt:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0.2
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0.2
root@OpenWrt:~#




root@OpenWrt:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 94:0C:6D:EE:61:70
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1897 errors:0 dropped:0 overruns:0 frame:0
          TX packets:256 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:333133 (325.3 KiB)  TX bytes:49146 (47.9 KiB)

eth0      Link encap:Ethernet  HWaddr 94:0C:6D:EE:61:70
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2522 errors:0 dropped:0 overruns:0 frame:0
          TX packets:449 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:500741 (489.0 KiB)  TX bytes:60045 (58.6 KiB)
          Interrupt:4

eth0.1    Link encap:Ethernet  HWaddr 94:0C:6D:EE:61:70
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1897 errors:0 dropped:0 overruns:0 frame:0
          TX packets:256 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:340721 (332.7 KiB)  TX bytes:50170 (48.9 KiB)

eth0.2    Link encap:Ethernet  HWaddr 94:0C:6D:EE:61:70
          inet addr:192.168.1.60  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:505 errors:0 dropped:0 overruns:0 frame:0
          TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:97877 (95.5 KiB)  TX bytes:8832 (8.6 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:132 errors:0 dropped:0 overruns:0 frame:0
          TX packets:132 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:12226 (11.9 KiB)  TX bytes:12226 (11.9 KiB)

wlan0     Link encap:Ethernet  HWaddr 94:0C:6D:EE:61:70
          inet addr:192.168.1.60  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25248 errors:0 dropped:0 overruns:0 frame:0
          TX packets:81 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8454808 (8.0 MiB)  TX bytes:9959 (9.7 KiB)

root@OpenWrt:~#




root@OpenWrt:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth0.1    no wireless extensions.

eth0.2    no wireless extensions.

br-lan    no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"OpenWrt"
          Mode:Managed  Frequency:2.432 GHz  Access Point: 94:0C:6D:AE:B6:CA
          Bit Rate=1 Mb/s   Tx-Power=20 dBm
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=64/70  Signal level=-46 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root@OpenWrt:~#




root@OpenWrt:~# ps ax
  PID USER       VSZ STAT COMMAND
    1 root      1364 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [events/0]
    5 root         0 SW   [khelper]
    8 root         0 SW   [async/mgr]
   41 root         0 SW   [sync_supers]
   43 root         0 SW   [bdi-default]
   45 root         0 SW   [kblockd/0]
   70 root         0 SW   [kswapd0]
   71 root         0 SW   [aio/0]
   72 root         0 SW   [crypto/0]
   84 root         0 SW   [mtdblockd]
   90 root         0 SW   [ar71xx-spi]
  225 root         0 SW   [ipolldevd]
  280 root         0 SWN  [jffs2_gcd_mtd3]
  295 root      1364 S    init
  314 root      1368 S    syslogd -C16
  316 root      1352 S    klogd
  330 root       772 S    /sbin/hotplug2 --override --persistent --set-worker /
  464 root         0 SW   [cfg80211]
  568 root         0 SW   [khubd]
  725 root         0 SW   [phy0]
  947 root      1408 S    wpa_supplicant -B -P /var/run/wifi-wlan0.pid -D wext
 1304 root      1136 S    /usr/sbin/dropbear -p 22 -P /var/run/dropbear.1.pid
 1312 root      2100 S    /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -t
 1316 root      1044 S    vsftpd
 1362 nobody     900 S    /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/ -
 1371 root      2624 S N  smbd -D
 1373 root      2124 S    nmbd -D
 1386 root      1360 S    watchdog -t 5 /dev/watchdog
 1430 root      1192 S    /usr/sbin/dropbear -p 22 -P /var/run/dropbear.1.pid
 1431 root      1364 S    -ash
 1439 root      1356 R    ps ax
root@OpenWrt:~#




Jun  1 23:15:06 OpenWrt user.debug kernel: phy0: Selected rate control algorithm 'minstrel_ht'
Jun  1 23:15:06 OpenWrt user.info kernel: phy0: Atheros AR9100 MAC/BB Rev:0 AR2133 RF Rev:a2 mem=0xb80c0000, irq=2
Jun  1 23:15:07 OpenWrt user.info kernel: PPP generic driver version 2.4.2
Jun  1 23:15:08 OpenWrt user.info kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Jun  1 23:15:08 OpenWrt user.info kernel: NET: Registered protocol family 24
Jun  1 23:15:09 OpenWrt user.info kernel: ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Jun  1 23:15:09 OpenWrt user.info kernel: ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
Jun  1 23:15:09 OpenWrt user.info kernel: ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
Jun  1 23:15:09 OpenWrt user.info kernel: ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
Jun  1 23:15:09 OpenWrt user.info kernel: ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
Jun  1 23:15:09 OpenWrt user.info kernel: usb usb1: configuration #1 chosen from 1 choice
Jun  1 23:15:09 OpenWrt user.info kernel: hub 1-0:1.0: USB hub found
Jun  1 23:15:09 OpenWrt user.info kernel: hub 1-0:1.0: 1 port detected
Jun  1 23:15:09 OpenWrt user.warn kernel: nf_conntrack version 0.5.0 (460 buckets, 1840 max)
Jun  1 23:15:09 OpenWrt user.warn kernel: CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
Jun  1 23:15:09 OpenWrt user.warn kernel: nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
Jun  1 23:15:09 OpenWrt user.warn kernel: sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
Jun  1 23:15:09 OpenWrt user.notice root: Przelaczenie modemu
Jun  1 23:15:09 OpenWrt user.notice root: Autostart polaczenia 3G
Jun  1 23:15:10 OpenWrt user.notice root: Przelaczenie modemu
Jun  1 23:15:10 OpenWrt user.notice root: Autostart polaczenia 3G
Jun  1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver usbserial
Jun  1 23:15:10 OpenWrt user.info kernel: USB Serial support registered for generic
Jun  1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver usbserial_generic
Jun  1 23:15:10 OpenWrt user.info kernel: usbserial: USB Serial Driver core
Jun  1 23:15:10 OpenWrt user.info kernel: Initializing USB Mass Storage driver...
Jun  1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver usb-storage
Jun  1 23:15:10 OpenWrt user.info kernel: USB Mass Storage support registered.
Jun  1 23:15:10 OpenWrt user.info kernel: USB Serial support registered for GSM modem (1-port)
Jun  1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver option
Jun  1 23:15:10 OpenWrt user.info kernel: option: v0.7.2:USB Driver for GSM modems
Jun  1 23:15:10 OpenWrt user.info kernel: USB Serial support registered for Sierra USB modem
Jun  1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver sierra
Jun  1 23:15:10 OpenWrt user.info kernel: sierra: v.1.3.8:USB Driver for Sierra Wireless USB modems
Jun  1 23:15:11 OpenWrt user.info kernel: fuse init (API version 7.13)
Jun  1 23:15:12 OpenWrt user.info kernel: cfg80211: Calling CRDA for country: PL
Jun  1 23:15:12 OpenWrt user.info kernel: cfg80211: Regulatory domain changed to country: PL
Jun  1 23:15:12 OpenWrt user.info kernel:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jun  1 23:15:12 OpenWrt user.info kernel:     (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun  1 23:15:12 OpenWrt user.info kernel:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun  1 23:15:12 OpenWrt user.info kernel:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun  1 23:15:12 OpenWrt user.info kernel:     (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
Jun  1 23:15:13 OpenWrt user.info sysinit: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Jun  1 23:15:13 OpenWrt user.info sysinit: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Jun  1 23:15:14 OpenWrt user.info sysinit: Loading defaults
Jun  1 23:15:14 OpenWrt user.info sysinit: Loading synflood protection
Jun  1 23:15:15 OpenWrt user.info sysinit: Adding custom chains
Jun  1 23:15:15 OpenWrt user.notice rdate: Failed to sync with ptbtime3.ptb.de
Jun  1 23:15:15 OpenWrt user.info sysinit: Loading zones
Jun  1 23:15:16 OpenWrt user.info sysinit: Loading forwarding
Jun  1 23:15:16 OpenWrt user.info sysinit: Loading redirects
Jun  1 23:15:16 OpenWrt user.info sysinit: Loading rules
Jun  1 23:15:16 OpenWrt user.info sysinit: Loading includes
Jun  1 23:15:16 OpenWrt user.info sysinit: Loading zone defaults
Jun  1 23:15:16 OpenWrt user.notice rdate: Failed to sync with ptbtime2.ptb.de
Jun  1 23:15:16 OpenWrt user.notice root: adding lan (br-lan) to firewall zone lan
Jun  1 23:15:16 OpenWrt user.notice root: adding wan (wlan0) to firewall zone wan
Jun  1 23:15:17 OpenWrt authpriv.info dropbear[1304]: Running in background
Jun  1 23:15:18 OpenWrt user.debug kernel: wlan0: authenticate with 94:0c:6d:ae:b6:ca (try 1)
Jun  1 23:15:18 OpenWrt user.debug kernel: wlan0: authenticated
Jun  1 23:15:18 OpenWrt user.debug kernel: wlan0: associate with 94:0c:6d:ae:b6:ca (try 1)
Jun  1 23:15:18 OpenWrt user.debug kernel: wlan0: RX AssocResp from 94:0c:6d:ae:b6:ca (capab=0x411 status=0 aid=1)
Jun  1 23:15:18 OpenWrt user.debug kernel: wlan0: associated
Jun  1 23:15:18 OpenWrt user.debug kernel: wlan0: disassociated from 94:0c:6d:ae:b6:ca (Reason: 7)
Jun  1 23:15:18 OpenWrt user.debug kernel: wlan0: deauthenticating from 94:0c:6d:ae:b6:ca by local choice (reason=3)
Jun  1 23:15:18 OpenWrt user.info kernel: cfg80211: Calling CRDA to update world regulatory domain
Jun  1 23:15:18 OpenWrt user.info kernel: cfg80211: Calling CRDA for country: PL
Jun  1 23:15:18 OpenWrt user.info kernel: cfg80211: Regulatory domain changed to country: PL
Jun  1 23:15:18 OpenWrt user.info kernel:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jun  1 23:15:18 OpenWrt user.info kernel:     (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun  1 23:15:18 OpenWrt user.info kernel:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun  1 23:15:18 OpenWrt user.info kernel:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun  1 23:15:18 OpenWrt user.info kernel:     (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
Jun  1 23:15:19 OpenWrt user.debug kernel: wlan0: authenticate with 94:0c:6d:ae:b6:ca (try 1)
Jun  1 23:15:19 OpenWrt user.debug kernel: wlan0: authenticated
Jun  1 23:15:19 OpenWrt user.debug kernel: wlan0: associate with 94:0c:6d:ae:b6:ca (try 1)
Jun  1 23:15:19 OpenWrt user.debug kernel: wlan0: RX AssocResp from 94:0c:6d:ae:b6:ca (capab=0x411 status=0 aid=1)
Jun  1 23:15:19 OpenWrt user.debug kernel: wlan0: associated
Jun  1 23:15:19 OpenWrt user.debug kernel: wlan0: disassociated from 94:0c:6d:ae:b6:ca (Reason: 7)
Jun  1 23:15:19 OpenWrt user.debug kernel: wlan0: deauthenticating from 94:0c:6d:ae:b6:ca by local choice (reason=3)
Jun  1 23:15:19 OpenWrt user.info kernel: cfg80211: Calling CRDA to update world regulatory domain
Jun  1 23:15:19 OpenWrt user.info kernel: cfg80211: Calling CRDA for country: PL
Jun  1 23:15:20 OpenWrt user.info kernel: cfg80211: Regulatory domain changed to country: PL
Jun  1 23:15:20 OpenWrt user.info kernel:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jun  1 23:15:20 OpenWrt user.info kernel:     (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun  1 23:15:20 OpenWrt user.info kernel:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun  1 23:15:20 OpenWrt user.info kernel:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun  1 23:15:20 OpenWrt user.info kernel:     (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
Jun  1 23:15:20 OpenWrt user.debug kernel: wlan0: authenticate with 94:0c:6d:ae:b6:ca (try 1)
Jun  1 23:15:20 OpenWrt user.debug kernel: wlan0: authenticated
Jun  1 23:15:20 OpenWrt user.debug kernel: wlan0: associate with 94:0c:6d:ae:b6:ca (try 1)
Jun  1 23:15:20 OpenWrt user.debug kernel: wlan0: RX AssocResp from 94:0c:6d:ae:b6:ca (capab=0x411 status=0 aid=1)
Jun  1 23:15:20 OpenWrt user.debug kernel: wlan0: associated
Jun  1 23:15:20 OpenWrt user.debug kernel: wlan0: disassociated from 94:0c:6d:ae:b6:ca (Reason: 7)
Jun  1 23:15:20 OpenWrt user.debug kernel: wlan0: deauthenticating from 94:0c:6d:ae:b6:ca by local choice (reason=3)
Jun  1 23:15:20 OpenWrt user.info kernel: cfg80211: Calling CRDA to update world regulatory domain
Jun  1 23:15:20 OpenWrt user.info kernel: cfg80211: Calling CRDA for country: PL
Jun  1 23:15:21 OpenWrt user.info kernel: cfg80211: Regulatory domain changed to country: PL
Jun  1 23:15:21 OpenWrt user.info kernel:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jun  1 23:15:21 OpenWrt user.info kernel:     (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun  1 23:15:21 OpenWrt user.info kernel:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun  1 23:15:21 OpenWrt user.info kernel:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun  1 23:15:21 OpenWrt user.info kernel:     (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
Jun  1 23:15:21 OpenWrt daemon.info dnsmasq[1362]: started, version 2.52 cachesize 150
Jun  1 23:15:21 OpenWrt daemon.info dnsmasq[1362]: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
Jun  1 23:15:21 OpenWrt daemon.info dnsmasq-dhcp[1362]: DHCP, IP range 192.168.2.100 -- 192.168.2.250, lease time 12h
Jun  1 23:15:21 OpenWrt daemon.info dnsmasq[1362]: using local addresses only for domain lan
Jun  1 23:15:21 OpenWrt daemon.info dnsmasq[1362]: reading /tmp/resolv.conf.auto
Jun  1 23:15:21 OpenWrt daemon.info dnsmasq[1362]: using nameserver 192.168.1.1#53
Jun  1 23:15:21 OpenWrt daemon.info dnsmasq[1362]: using local addresses only for domain lan
Jun  1 23:15:21 OpenWrt daemon.info dnsmasq[1362]: read /etc/hosts - 1 addresses
Jun  1 23:15:21 OpenWrt daemon.info dnsmasq-dhcp[1362]: read /etc/ethers - 0 addresses
Jun  1 23:15:22 OpenWrt user.debug kernel: wlan0: authenticate with 94:0c:6d:ae:b6:ca (try 1)
Jun  1 23:15:22 OpenWrt user.debug kernel: wlan0: authenticated
Jun  1 23:15:22 OpenWrt user.debug kernel: wlan0: associate with 94:0c:6d:ae:b6:ca (try 1)
Jun  1 23:15:22 OpenWrt user.debug kernel: wlan0: RX AssocResp from 94:0c:6d:ae:b6:ca (capab=0x411 status=0 aid=1)
Jun  1 23:15:22 OpenWrt user.debug kernel: wlan0: associated
Jun  1 23:15:24 OpenWrt user.info sysinit: setting up led WLAN
Jun  1 23:15:24 OpenWrt user.debug kernel: ar71xx-wdt: enabling watchdog timer
Jun  1 23:15:25 OpenWrt user.notice rdate: Failed to sync with vega.cbk.poznan.pl
Jun  1 23:15:25 OpenWrt user.notice rdate: Failed to sync with ptbtime3.ptb.de
Jun  1 23:15:26 OpenWrt user.notice rdate: Failed to sync with cudns.cit.cornell.edu
Jun  1 23:15:33 OpenWrt user.info sysinit: 0.openwrt.pool.ntp.org: Unknown host
Jun  1 23:15:35 OpenWrt user.notice rdate: Failed to sync with vega.cbk.poznan.pl
Jun  1 23:15:35 OpenWrt user.notice rdate: Failed to sync with vega.cbk.poznan.pl
Jun  1 23:15:36 OpenWrt user.notice rdate: Failed to sync with ptbtime1.ptb.de
Jun  1 23:15:45 OpenWrt user.notice rdate: Failed to sync with vega.cbk.poznan.pl
Jun  1 23:16:03 OpenWrt user.info sysinit: 1.openwrt.pool.ntp.org: Unknown host
Jun  1 23:16:33 OpenWrt user.info sysinit: 2.openwrt.pool.ntp.org: Unknown host
Jun  1 23:17:03 OpenWrt user.info sysinit: 3.openwrt.pool.ntp.org: Unknown host
Jun  1 23:17:13 OpenWrt user.notice rdate: Failed to sync with ptbtime2.ptb.de
Jun  1 23:17:23 OpenWrt user.notice rdate: Failed to sync with ptbtime2.ptb.de
Jun  1 23:17:33 OpenWrt user.notice rdate: Failed to sync with cudns.cit.cornell.edu
Jun  2 09:30:04 OpenWrt authpriv.info dropbear[1430]: Child connection from 192.168.2.7:49524
Jun  2 09:30:11 OpenWrt authpriv.notice dropbear[1430]: password auth succeeded for 'root' from 192.168.2.7:49524
root@OpenWrt:~#




root@OpenWrt:~# cat /etc/config/network
config 'interface' 'loopback'
       option 'ifname'   'lo'
       option 'proto'    'static'
       option 'ipaddr'   '127.0.0.1'
       option 'netmask'  '255.0.0.0'

config 'interface' 'lan'
        option 'ifname'   'eth0.1'
        option 'type'     'bridge'
        option 'proto'    'static'
        option 'ipaddr'   '192.168.2.1'
        option 'netmask'  '255.255.255.0'

config 'interface' 'wan'
        option 'ifname' 'eth0.2'
        option 'proto' 'static'
        option 'ipaddr'   '192.168.1.60'
        option 'netmask'  '255.255.255.0'
        option 'gateway'   '192.168.1.1'
        option 'dns'  '192.168.1.1'


config 'interface' '3g'
        option 'device' '/dev/ttyUSB0'
        option 'apn' 'internet'
        option 'service' 'umts'
        option 'proto' '3g'
        option 'hotplug' 1
        option 'pincode' '0000'

config 'switch'
        option 'name' 'rtl8366rb'
        option 'reset' '1'
        option 'enable_vlan' '1'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '1'
        option 'ports' '1 2 3 4 5t'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '2'
        option 'ports' '0 5t'
root@OpenWrt:~#




root@OpenWrt:~# cat /etc/config/wireless
config wifi-device radio0
        option type mac80211
        option channel 5
        option macaddr  94:0c:6d:ee:61:70
        option hwmode 11ng
        option htmode HT20
        list ht_capab HT40+
        list ht_capab HT40-
        list ht_capab SHORT-GI-40
        list ht_capab DSSS_CCK-40
        option disabled 0
        option country PL

    config wifi-iface
        option device radio0
        option network wan
        option mode sta
        option ssid OpenWrt
        option encryption psk2
        option key 1234567890
root@OpenWrt:~#




root@OpenWrt:~# cat /etc/config/firewall
config defaults
        option syn_flood        1
        option input            ACCEPT
        option output           ACCEPT
        option forward          REJECT

config zone
        option name             lan
        option input    ACCEPT
        option output   ACCEPT
        option forward  REJECT

config zone
        option name             wan
        option input    REJECT
        option output   ACCEPT
        option forward  REJECT
        option masq             1
        option mtu_fix  1

config zone
        option name             3g
        option input    REJECT
        option output   ACCEPT
        option forward  REJECT
        option masq             1

config forwarding
        option src      lan
        option dest     3g

config forwarding
        option src      lan
        option dest     wan

# We need to accept udp packets on port 68,
# see https://dev.openwrt.org/ticket/4108
config rule
        option src              wan
        option proto            udp
        option dest_port        68
        option target           ACCEPT

#Allow ping
config rule
        option src wan
        option proto icmp
        option icmp_type echo-request
        option target ACCEPT

# include a file with users custom iptables rules
config include
        option path /etc/firewall.user


### EXAMPLE CONFIG SECTIONS
# do not allow a specific ip to access wan
#config rule
#       option src              lan
#       option src_ip   192.168.45.2
#       option dest             wan
#       option proto    tcp
#       option target   REJECT

# block a specific mac on wan
#config rule
#       option dest             wan
#       option src_mac  00:11:22:33:44:66
#       option target   REJECT

# block incoming ICMP traffic on a zone
#config rule
#       option src              lan
#       option proto    ICMP
#       option target   DROP

# port redirect port coming in on wan to lan
#config redirect
#       option src                      wan
#       option src_dport        80
#       option dest                     lan
#       option dest_ip          192.168.16.235
#       option dest_port        80
#       option proto            tcp


### FULL CONFIG SECTIONS
#config rule
#       option src              lan
#       option src_ip   192.168.45.2
#       option src_mac  00:11:22:33:44:55
#       option src_port 80
#       option dest             wan
#       option dest_ip  194.25.2.129
#       option dest_port        120
#       option proto    tcp
#       option target   REJECT

#config redirect
#       option src              lan
#       option src_ip   192.168.45.2
#       option src_mac  00:11:22:33:44:55
#       option src_port         1024
#       option src_dport        80
#       option dest_ip  194.25.2.129
#       option dest_port        120
#       option proto    tcp
root@OpenWrt:~#

24 (edytowany przez rpc 2010-07-06 21:01:57)

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

zanim coś zaproponuję powiedz mi jeszcze jedno
czy w otoczeniu sieciowym widzieć się winny wszystkie komputery tzn. twoje i kolegi jednocześnie ? Czy on ma swoje otoczenie sieciowe a ty swoje ?

i jak ma wyglądać firewall ? Obie sieci mają być jakoś odizolowane czy to nie jest ważne i nie ma być żadnego firewalla między sieciami ?

25 (edytowany przez kowalmisiek 2010-07-06 21:10:05)

Odp: Tryb AP i AP Client na WR1043ND jak skonfigurowac?

Firewalla miedzy sieciami nie potrzebuje. A komputery chce zeby byly widoczne w sieci wszystkie. Fajnie by bylo jeszcze gdyby byla taka mazliwosc zebym mial dostep jako alternatywe do internetu z jego liveboxa ale to nie konieczne jak to jest jakis klopot.