Patrick31698
(Themenstarter)
Anmeldungsdatum: 6. Februar 2008
Beiträge: 676
|
Hallo,
also mit dem veränderten Skript läuft es schlechter - besser gesagt gar nicht.
Ich sehe den AP gar nicht.
pi@raspberrypi ~ $ sudo ./instant_AP-WLAN_Bridge.sh -start
-e Konfiguration ausführen ...
/etc/init.d/isc-dhcp-server: 1: /etc/default/isc-dhcp-server: -e: not found
[FAIL] Stopping ISC DHCP server: dhcpd failed!
dnsmasq: Kein Prozess gefunden
dhclient: Kein Prozess gefunden
wpa_cli: Kein Prozess gefunden
wpa_action: Kein Prozess gefunden
isc-dhcp-server: Kein Prozess gefunden
net.ipv4.ip_forward = 0
lösche Bridge und Konfiguration ...
interface wlan1 does not exist!
bridge br0 does not exist!
br0: ERROR while getting interface flags: Kein passendes Gerät gefunden
bridge br0 doesn't exist; can't delete it
entferne WLAN-Konfiguration ...
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan1 ; No such device.
lösche iptables-Filter ...
rmmod iptable_nat
rmmod nf_nat_ipv4
rmmod ipt_MASQUERADE
rmmod nf_nat
rmmod xt_conntrack
rmmod iptable_filter
rmmod ip_tables
rmmod x_tables
Bridge & WLAN Access-Point Konfiguration beendet.
-e Starte alle Dienste, und Verbindungen ...
-e
lege Konfigurationsdatei wpa_supplicant.tmp an.
-e
lege Konfigurationsdatei /etc/default/isc-dhcp-server an:
-e DHCPD_CONF=/etc/dhcp/dhcpd.conf
INTERFACES=br0
-e
lege Konfigurationsdatei /etc/dhcp/dhcpd.conf an:
-e subnet 192.168.3.0 netmask 255.255.255.0 { range 192.168.3.10 192.168.3.20; }
option routers 192.168.3.1;
option domain-name-servers 192.168.2.1;
find: "/sys/class/net/wlan1/device/driver/module/drivers/": Datei oder Verzeichnis nicht gefunden
WLAN-Treibermodul 1 erkannt
WLAN-Treibermodul 2 rt2800usb erkannt
lade Module rt2800usb
Error: missing parameters. See -h.
setze Stromsparmechanismen für wlan1 (Powersave = off)
command failed: No such device (-19)
setze Stromsparmechanismen für wlan0 (Powersave = off)
setze Sendeleistung des WLAN-Adapters wlan0 (15dBm)
setze Sendeleistung des WLAN-Adapters wlan1 (15dBm)
Error for wireless request "Set Tx Power" (8B26) :
SET failed on device wlan1 ; No such device.
-e setze Regionseinstellungen des Systems (Regionscode DE)
Starte hostapd-Service
Configuration file: /etc/hostapd_wlanbridge.conf
Failed to update rate sets in kernel module
Using interface wlan0 with hwaddr 00:0f:55:a8:bd:11 and ssid 'WLAN_AP'
random: Only 16/20 bytes of strong random data available from /dev/random
random: Not enough entropy pool available for secure operations
WPA: Not enough entropy in random pool for secure operations - update keys later when the first station connects
verwende zweiten WLAN-Adapter wlan0
starte Verbindung zu WLAN-Accesspoint 74:31:70:60:A7:FB - EasyBox-60A743
Using interface wlan1 with hwaddr
-e einen Moment bitte, starte wpa_supplicant ...
ioctl[SIOCSIWPMKSA]: Invalid argument
ioctl[SIOCSIWMODE]: Device or resource busy
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWPMKSA]: Invalid argument
Bridge-Schnittstelle initialisieren (statisch):
-e Bridge: br0 IP-Adresse: 192.168.3.1 Broadcast: 192.168.3.255 Netzmaske: 255.255.255.0
-e starte isc-dhcp-server
DHCP-Range isc-dhcp-server:
-e Schnittstelle: br0 Startadresse: 192.168.3.10 Endadresse: 192.168.3.20 Lease: infinite
/etc/init.d/isc-dhcp-server: 1: /etc/default/isc-dhcp-server: -e: not found
dhcpd self-test failed. Please fix /etc/dhcp/dhcpd.conf.
The error was:
Internet Systems Consortium DHCP Server 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/etc/dhcp/dhcpd.conf line 1: semicolon expected.
-e subnet
^
Configuration file errors encountered -- exiting
aktiviere Port-Forwarding ...
net.ipv4.ip_forward = 1
-e Konfiguration beendet.
-e System DNS-Check und Routing:
nameserver 192.168.2.1
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.3.1 0.0.0.0 UG 1 0 0 br0
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
-e Konfiguration Bridge:
br0 Link encap:Ethernet Hardware Adresse 00:0f:55:a8:bd:11
inet Adresse:192.168.3.1 Bcast:192.168.3.255 Maske:255.255.255.0
bridge name bridge id STP enabled interfaces
br0 8000.000f55a8bd11 yes eth0
wlan0
port no mac addr is local? ageing timer
1 00:0f:55:a8:bd:11 yes 0.00
2 b8:27:eb:67:61:6e yes 0.00
br0
bridge id 8000.000f55a8bd11
designated root 8000.000f55a8bd11
root port 0 path cost 0
max age 20.00 bridge max age 20.00
hello time 2.00 bridge hello time 2.00
forward delay 2.00 bridge forward delay 2.00
ageing time 300.00
hello timer 1.28 tcn timer 0.00
topology change timer 0.00 gc timer 295.64
flags
eth0 (2)
port id 8002 state disabled
designated root 8000.000f55a8bd11 path cost 100
designated bridge 8000.000f55a8bd11 message age timer 0.00
designated port 8002 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
wlan0 (1)
port id 8001 state disabled
designated root 8000.000f55a8bd11 path cost 100
designated bridge 8000.000f55a8bd11 message age timer 0.00
designated port 8001 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
-e Konfiguration lokales LAN (keine IP-Adresse im Bridged-Mode!):
eth0 Link encap:Ethernet Hardware Adresse b8:27:eb:67:61:6e
-e Konfiguration WLAN (keine IP-Adresse im Bridged-Mode!):
wlan1: Fehler beim Auslesen der Schnittstelleninformation: Gerät nicht gefunden
wlan1 No such device
Controll-Interface:
mon.wlan1 No such device
Virtuelles WLAN-Interface im Infrastruktur-Modus:
wlan0 Link encap:Ethernet Hardware Adresse 00:0f:55:a8:bd:11
wlan0 IEEE 802.11bgn Mode:Master Tx-Power=20 dBm
Power Management:off
-e Regionseinstellung des WLAN-Adapters:
country DE:
(2400 - 2483 @ 40), (N/A, 20)
(5150 - 5350 @ 80), (N/A, 20), NO-OUTDOOR
(5470 - 5725 @ 80), (N/A, 26), DFS
(57240 - 65880 @ 2160), (N/A, 40), NO-OUTDOOR
Dienstestatus:
/etc/init.d/isc-dhcp-server: 1: /etc/default/isc-dhcp-server: -e: not found
Status of ISC DHCP server: dhcpd is not running. cat /etc/dhcp/dhcpd.conf
-e subnet 192.168.3.0 netmask 255.255.255.0 { range 192.168.3.10 192.168.3.20; }
option routers 192.168.3.1;
option domain-name-servers 192.168.2.1; pi@raspberrypi ~ $ ifconfig
br0 Link encap:Ethernet Hardware Adresse 00:0f:55:a8:bd:11
inet Adresse:192.168.3.1 Bcast:192.168.3.255 Maske:255.255.255.0
inet6-Adresse: fe80::20f:55ff:fea8:bd11/64 Gültigkeitsbereich:Verbindung
UP BROADCAST MULTICAST MTU:1500 Metrik:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:0 (0.0 B) TX bytes:418 (418.0 B)
eth0 Link encap:Ethernet Hardware Adresse b8:27:eb:67:61:6e
UP BROADCAST MULTICAST MTU:1500 Metrik:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
UP LOOPBACK RUNNING MTU:65536 Metrik:1
RX packets:137 errors:0 dropped:0 overruns:0 frame:0
TX packets:137 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:12996 (12.6 KiB) TX bytes:12996 (12.6 KiB)
mon.wlan0 Link encap:UNSPEC Hardware Adresse 00-0F-55-A8-BD-11-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:30 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:9360 (9.1 KiB) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet Hardware Adresse 00:0f:55:a8:bd:11
UP BROADCAST MULTICAST MTU:1500 Metrik:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:0 (0.0 B) TX bytes:1124 (1.0 KiB)
|
elektronenblitz63
Anmeldungsdatum: 16. Januar 2007
Beiträge: 29307
Wohnort: NRW
|
Hallo, da ist anscheinend beim Kopieren etwas schief gelaufen - irgendwo mehrere Syntaxfehler im Skript - achte auf die Ausgaben
|
Patrick31698
(Themenstarter)
Anmeldungsdatum: 6. Februar 2008
Beiträge: 676
|
Ich habe das funktionierende Skript mit den angepassen Parametern versorgt.
Das Skript selber ist ja unverändert (?) Jetzt sehe ich den AP wieder, kann mich aber nicht an dem AP anmelden. Irgendwie läuft der Ralink Sick nicht zusammen mit dem Logitech Stick. Beide Sticks einzeln laufen mit dieser /etc/network/interfaces auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet static
address 192.168.2.222
netmask 255.255.255.0
gateway 192.168.2.1 Dann leuchtet auch die Kontroll LED.
Lasse ich aber das Skript mit der "bereinigten" interfaces laufen, bleibt der Ralink Stick ohne sichtbare Aktivität.
Bin übrigens gerade mit dem Ralink Stick zum tippen dieses Posts unterwegs
|
elektronenblitz63
Anmeldungsdatum: 16. Januar 2007
Beiträge: 29307
Wohnort: NRW
|
Zeige bitte welche Module geladen werden, wenn beide Sticks angeschlossen sind.
lsmod Der Ralink-Stick soll denn Accesspoint mittels hostapd aufbauen, der Realtek-Stick die Verbindung zum vorhandenen Router.
|
Patrick31698
(Themenstarter)
Anmeldungsdatum: 6. Februar 2008
Beiträge: 676
|
i@raspberrypi ~ $ lsmod
Module Size Used by
arc4 1695 2
rt2800usb 17279 0
rt2800lib 80619 1 rt2800usb
crc_ccitt 1541 1 rt2800lib
rt2x00usb 11669 1 rt2800usb
rt2x00lib 44799 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 329373 3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211 211002 2 mac80211,rt2x00lib
rfkill 19567 1 cfg80211
snd_bcm2835 18169 0
r8712u 169973 0
snd_soc_bcm2708_i2s 5486 0
regmap_mmio 2818 1 snd_soc_bcm2708_i2s
snd_soc_core 128166 1 snd_soc_bcm2708_i2s
regmap_spi 1913 1 snd_soc_core
snd_pcm_dmaengine 5481 1 snd_soc_core
snd_pcm 81518 3 snd_bcm2835,snd_soc_core,snd_pcm_dmaengine
snd_page_alloc 5168 1 snd_pcm
regmap_i2c 1657 1 snd_soc_core
snd_compress 8136 1 snd_soc_core
snd_seq 54581 0
snd_timer 20353 2 snd_pcm,snd_seq
snd_seq_device 6485 1 snd_seq
leds_gpio 2055 0
led_class 4119 2 leds_gpio,rt2x00lib
snd 61518 7 snd_bcm2835,snd_soc_core,snd_timer,snd_pcm,snd_seq,snd_seq_device,snd_compress
evdev 10497 6 hat das was zu sagen, wenn die HW Adresse nicht in den Meldungen auftaucht?
verwende zweiten WLAN-Adapter wlan0
starte Verbindung zu WLAN-Accesspoint 74:31:70:60:A7:FB - Easybox-60A743
Using interface wlan1 with hwaddr
einen Moment bitte, starte wpa_supplicant ...
|
Patrick31698
(Themenstarter)
Anmeldungsdatum: 6. Februar 2008
Beiträge: 676
|
elektronenblitz63 schrieb:
Der Ralink-Stick soll denn Accesspoint mittels hostapd aufbauen, der Realtek-Stick die Verbindung zum vorhandenen Router.
Brauchen die Ralink Sticks nicht eine andere hostapd Version?
|
elektronenblitz63
Anmeldungsdatum: 16. Januar 2007
Beiträge: 29307
Wohnort: NRW
|
Patrick31698 schrieb: Brauchen die Ralink Sticks nicht eine andere hostapd Version?
Nein, hostapd läuft direkt mit dem Ralink-Modul rt2800usb, mit den Realtek-Treibern gibt es Probleme. Ob deine im Skript definierte Konfiguration für die Verbindung zum Router läuft kannst Du wie folgt testen:
sudo killall wpa_supplicant
sudo wpa_supplicant -D wext -i wlan1 -c wpa_supplicant.tmp -d
Nach ein paar Sekundenn einem weiteren Terminalfenster eine IP-Adresse anfordern:
sudo dhclient wlan1
ifconfig wlan1
iwconfig wlan1
|
Patrick31698
(Themenstarter)
Anmeldungsdatum: 6. Februar 2008
Beiträge: 676
|
Starte ich mit angesteckten WLAN Sticks kommt folgendes raus:
pi@raspberrypi ~ $ sudo killall wpa_supplicant
pi@raspberrypi ~ $ sudo wpa_supplicant -D wext -i wlan1 -c wpa_supplicant.tmp -d
wpa_supplicant v1.0
random: Trying to read entropy from /dev/random
Initializing interface 'wlan1' conf 'wpa_supplicant.tmp' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file 'wpa_supplicant.tmp' -> '/home/pi/wpa_supplicant.tmp'
Reading configuration file '/home/pi/wpa_supplicant.tmp'
ctrl_interface='/var/run/wpa_supplicant'
eapol_version=1
ap_scan=1
Priority group 0
id=0 ssid='Easybox-60A743'
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
Could not read interface wlan1 flags: No such device
WEXT: Could not set interface 'wlan1' UP
wlan1: Failed to initialize driver interface
Failed to add interface wlan1
wlan1: Cancelling scan request
wlan1: Cancelling authentication timeout pi@raspberrypi ~ $ sudo dhclient wlan1
Cannot find device "wlan1"
pi@raspberrypi ~ $ ifconfig wlan1
wlan1: Fehler beim Auslesen der Schnittstelleninformation: Gerät nicht gefunden
pi@raspberrypi ~ $ iwconfig wlan1
wlan1 No such device ziehe ich die Sticks kurz ab und stecke sie in den laufenden Pi: sudo killall wpa_supplicant
pi@raspberrypi ~ $ sudo wpa_supplicant -D wext -i wlan1 -c wpa_supplicant.tmp -d
wpa_supplicant v1.0
random: Trying to read entropy from /dev/random
Initializing interface 'wlan1' conf 'wpa_supplicant.tmp' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file 'wpa_supplicant.tmp' -> '/home/pi/wpa_supplicant.tmp'
Reading configuration file '/home/pi/wpa_supplicant.tmp'
ctrl_interface='/var/run/wpa_supplicant'
eapol_version=1
ap_scan=1
Priority group 0
id=0 ssid='Easybox-60A743'
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
SIOCGIWRANGE: WE(compiled)=22 WE(source)=16 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf flags 0x0
netlink: Operstate: linkmode=1, operstate=5
wlan1: Own MAC address: 00:1f:1f:d7:c5:56
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=4 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=5 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wlan1: RSN: flushing PMKID list in the driver
wlan1: Setting scan request: 0 sec 100000 usec
WPS: Set UUID for interface wlan1
WPS: UUID based on MAC address - hexdump(len=16): bc 23 3d 2a 42 ae 51 9f 96 93 46 16 6d 17 49 52
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized
wlan1: Added interface wlan1
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b1a len=40
wlan1: State: DISCONNECTED -> SCANNING
wlan1: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 10 seconds
EAPOL: disable timer tick
EAPOL: Supplicant port status: Unauthorized
Scan timeout - try to get results
wlan1: Event SCAN_RESULTS (3) received
Received 439 bytes of scan results (1 BSSes)
wlan1: BSS: Start scan result update 1
wlan1: BSS: Add new id 0 BSSID 74:31:70:60:a7:fb SSID 'EasyBox-60A743'
wlan1: New scan results available
wlan1: Selecting BSS from priority group 0
wlan1: 0: 74:31:70:60:a7:fb ssid='EasyBox-60A743' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=84 wps
wlan1: skip - SSID mismatch
wlan1: No suitable network found
wlan1: Setting scan request: 5 sec 0 usec
wlan1: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 10 seconds
Scan timeout - try to get results
wlan1: Event SCAN_RESULTS (3) received
Received 439 bytes of scan results (1 BSSes)
wlan1: BSS: Start scan result update 2
wlan1: New scan results available
wlan1: Selecting BSS from priority group 0
wlan1: 0: 74:31:70:60:a7:fb ssid='EasyBox-60A743' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=82 wps
wlan1: skip - SSID mismatch
wlan1: No suitable network found
wlan1: Setting scan request: 5 sec 0 usec
wlan1: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 10 seconds
Scan timeout - try to get results
wlan1: Event SCAN_RESULTS (3) received
Received 311 bytes of scan results (1 BSSes)
wlan1: BSS: Start scan result update 3
wlan1: New scan results available
wlan1: Selecting BSS from priority group 0
wlan1: 0: 74:31:70:60:a7:fb ssid='EasyBox-60A743' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=86 wps
wlan1: skip - SSID mismatch
wlan1: No suitable network found
wlan1: Setting scan request: 5 sec 0 usec
wlan1: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 10 seconds
Scan timeout - try to get results
wlan1: Event SCAN_RESULTS (3) received
Received 311 bytes of scan results (1 BSSes)
wlan1: BSS: Start scan result update 4
wlan1: New scan results available
wlan1: Selecting BSS from priority group 0
wlan1: 0: 74:31:70:60:a7:fb ssid='EasyBox-60A743' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=88 wps
wlan1: skip - SSID mismatch
wlan1: No suitable network found
wlan1: Setting scan request: 5 sec 0 usec
wlan1: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 10 seconds
Scan timeout - try to get results
wlan1: Event SCAN_RESULTS (3) received
Received 311 bytes of scan results (1 BSSes)
wlan1: BSS: Start scan result update 5
wlan1: New scan results available
wlan1: Selecting BSS from priority group 0
wlan1: 0: 74:31:70:60:a7:fb ssid='EasyBox-60A743' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=84 wps
wlan1: skip - SSID mismatch
wlan1: No suitable network found
wlan1: Setting scan request: 5 sec 0 usec
wlan1: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 10 seconds
Scan timeout - try to get results
wlan1: Event SCAN_RESULTS (3) received
Received 311 bytes of scan results (1 BSSes)
wlan1: BSS: Start scan result update 6
wlan1: New scan results available
wlan1: Selecting BSS from priority group 0
wlan1: 0: 74:31:70:60:a7:fb ssid='EasyBox-60A743' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=86 wps
wlan1: skip - SSID mismatch
wlan1: No suitable network found
wlan1: Setting scan request: 5 sec 0 usec
wlan1: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 10 seconds
Scan timeout - try to get results
wlan1: Event SCAN_RESULTS (3) received
Received 311 bytes of scan results (1 BSSes)
wlan1: BSS: Start scan result update 7
wlan1: New scan results available
wlan1: Selecting BSS from priority group 0
wlan1: 0: 74:31:70:60:a7:fb ssid='EasyBox-60A743' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=86 wps
wlan1: skip - SSID mismatch
wlan1: No suitable network found
wlan1: Setting scan request: 5 sec 0 usec
wlan1: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 10 seconds
Scan timeout - try to get results
wlan1: Event SCAN_RESULTS (3) received
Received 311 bytes of scan results (1 BSSes)
wlan1: BSS: Start scan result update 8
wlan1: New scan results available
wlan1: Selecting BSS from priority group 0
wlan1: 0: 74:31:70:60:a7:fb ssid='EasyBox-60A743' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=82 wps
wlan1: skip - SSID mismatch
wlan1: No suitable network found
wlan1: Setting scan request: 5 sec 0 usec
wlan1: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 10 seconds SSID mismatch ?? ifconfig wlan1
wlan1 Link encap:Ethernet Hardware Adresse 00:1f:1f:d7:c5:56
UP BROADCAST MULTICAST MTU:1500 Metrik:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
pi@raspberrypi ~ $ iwconfig wlan1
wlan1 unassociated Nickname:"rtl_wifi"
Mode:Managed Access Point: Not-Associated Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
|
elektronenblitz63
Anmeldungsdatum: 16. Januar 2007
Beiträge: 29307
Wohnort: NRW
|
SSID mismatch ??
Ja, da werden fälschlicherweise „Single-Quotes“ übernommen:
ssid='Easybox-60A743' Im Skript sollte es so aussehen:
## Accesspoint Konfiguration für den Verbindungsaufbau zum vorhandenen WLAN
# SSID (Name) des WLAN Accesspoints eintragen
ssid="EasyBox-60A743"
Etwas weiter unten wird die Konfigurationsdatei angelegt, da stimmt verm. etwas nicht. So sollte es im Skript aussehen:
## WLAN-Verbindung vorbereiten
echo -e "\nlege Konfigurationsdatei $configfile an.\n"
echo $ctrliface > $configfile
echo $eapolv >> $configfile
echo $apscan >> $configfile
echo 'network={' >> $configfile
echo ssid='"'$ssid'"' >> $configfile
echo bssid=$mac >> $configfile
echo proto=$proto >> $configfile
echo key_mgmt=$key_mgmt >> $configfile
echo pairwise=$pairwise>> $configfile
echo group=$group >> $configfile
echo psk='"'$psk'"' >> $configfile
echo '}' >> $configfile
Die Zeile kann man auch vereinfachen:
echo ssid=$ssid >> $configfile
...
echo psk=$psk >> $configfile (bei psk= ebenfalls) In der angelegten Konfigurationsdatei wpa_supplicant.tmp entsprechend:
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
network={
ssid="EasyBox-60A743"
...
|
Patrick31698
(Themenstarter)
Anmeldungsdatum: 6. Februar 2008
Beiträge: 676
|
Den Part verstehe ich jetzt nicht so ganz.... Ich schreibe da jetzt entweder echo ssid='"'$ssid'"' >> $configfile ODER > echo ssid=$ssid >> $configfile rein?
und analog an ein paar Zeilen weiter unten das ganze auch für PSK ? elektronenblitz63 schrieb:
Etwas weiter unten wird die Konfigurationsdatei angelegt, da stimmt verm. etwas nicht. So sollte es im Skript aussehen:
## WLAN-Verbindung vorbereiten
echo -e "\nlege Konfigurationsdatei $configfile an.\n"
echo $ctrliface > $configfile
echo $eapolv >> $configfile
echo $apscan >> $configfile
echo 'network={' >> $configfile
echo ssid='"'$ssid'"' >> $configfile
echo bssid=$mac >> $configfile
echo proto=$proto >> $configfile
echo key_mgmt=$key_mgmt >> $configfile
echo pairwise=$pairwise>> $configfile
echo group=$group >> $configfile
echo psk='"'$psk'"' >> $configfile
echo '}' >> $configfile
Die Zeile kann man auch vereinfachen:
echo ssid=$ssid >> $configfile
...
echo psk=$psk >> $configfile (bei psk= ebenfalls)
|
Patrick31698
(Themenstarter)
Anmeldungsdatum: 6. Februar 2008
Beiträge: 676
|
Ich krieg die Krise..... Also ein Fehler war das meine Easybox in wirklichkeit EasyBox heißt. Aber es geht immer noch nicht. Ich glaube mittlerweile, dass es irgendwo an der Hardware (zu wenig Strom auf dem aktiven Hub?) liegt. Seltsamerweise startet der dhcp Server meist auch erst, wenn ich das Skript 2 mal laufen lasse. pi@raspberrypi ~ $ sudo wpa_supplicant -D wext -i wlan1 -c wpa_supplicant.tmp -d
wpa_supplicant v1.0
random: Trying to read entropy from /dev/random
Initializing interface 'wlan1' conf 'wpa_supplicant.tmp' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file 'wpa_supplicant.tmp' -> '/home/pi/wpa_supplicant.tmp'
Reading configuration file '/home/pi/wpa_supplicant.tmp'
ctrl_interface='/var/run/wpa_supplicant'
eapol_version=1
ap_scan=1
Priority group 0
id=0 ssid='EasyBox-60A743'
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
SIOCGIWRANGE: WE(compiled)=22 WE(source)=16 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf flags 0x0
netlink: Operstate: linkmode=1, operstate=5
wlan1: Own MAC address: 00:1f:1f:d7:c5:56
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=4 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=5 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wlan1: RSN: flushing PMKID list in the driver
wlan1: Setting scan request: 0 sec 100000 usec
WPS: Set UUID for interface wlan1
WPS: UUID based on MAC address - hexdump(len=16): bc 23 3d 2a 42 ae 51 9f 96 93 46 16 6d 17 49 52
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized
Using existing control interface directory.
wlan1: Added interface wlan1
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b1a len=40
wlan1: State: DISCONNECTED -> SCANNING
wlan1: Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 10 seconds
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
EAPOL: disable timer tick
EAPOL: Supplicant port status: Unauthorized
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Scan timeout - try to get results
wlan1: Event SCAN_RESULTS (3) received
Received 591 bytes of scan results (2 BSSes)
wlan1: BSS: Start scan result update 1
wlan1: BSS: Add new id 0 BSSID 00:0f:55:a8:bd:11 SSID 'WLAN_AP'
wlan1: BSS: Add new id 1 BSSID 74:31:70:60:a7:fb SSID 'EasyBox-60A743'
wlan1: New scan results available
wlan1: Selecting BSS from priority group 0
wlan1: 0: 00:0f:55:a8:bd:11 ssid='WLAN_AP' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=100
wlan1: skip - SSID mismatch
wlan1: 1: 74:31:70:60:a7:fb ssid='EasyBox-60A743' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=92 wps
wlan1: selected based on RSN IE
wlan1: selected BSS 74:31:70:60:a7:fb ssid='EasyBox-60A743'
wlan1: Request association: reassociate: 0 selected: 74:31:70:60:a7:fb bssid: 00:00:00:00:00:00 pending: 00:00:00:00:00:00 wpa_state: SCANNING
wlan1: Trying to associate with 74:31:70:60:a7:fb (SSID='EasyBox-60A743' freq=2412 MHz)
FT: Stored MDIE and FTIE from (Re)Association Response - hexdump(len=0):
wlan1: Cancelling scan request
wlan1: WPA: clearing own WPA/RSN IE
wlan1: Automatic auth_alg selection: 0x1
wlan1: RSN: using IEEE 802.11i/D9.0
wlan1: WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 2 proto 2
wlan1: WPA: clearing AP WPA IE
WPA: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 01 00
wlan1: WPA: using GTK CCMP
wlan1: WPA: using PTK CCMP
wlan1: WPA: using KEY_MGMT WPA-PSK
wlan1: WPA: not using MGMT group cipher
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
wlan1: No keys have been configured - skip key clearing
wlan1: State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_psk
wlan1: Association request to the driver failed
wlan1: Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - EAP fail=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portControl=Auto
EAPOL: Supplicant port status: Unauthorized
wlan1: RSN: added PMKSA cache candidate 74:31:70:60:a7:fb prio 1000
wlan1: RSN: processing PMKSA candidate list
wlan1: RSN: not in suitable state for new pre-authentication
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b04 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b1a len=22
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
wlan1: RX EAPOL from 74:31:70:60:a7:fb
wlan1: Not associated - Delay processing of received EAPOL frame
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 74:31:70:60:a7:fb
wlan1: Event ASSOC (0) received
wlan1: State: ASSOCIATING -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
wlan1: Associated to a new BSS: BSSID=74:31:70:60:a7:fb
wlan1: No keys have been configured - skip key clearing
wlan1: Associated with 74:31:70:60:a7:fb
wlan1: WPA: Association event - clear replay counter
wlan1: WPA: Clear old PTK
EAPOL: External notification - portEnabled=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portValid=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - EAP success=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: enable timer tick
EAPOL: SUPP_BE entering state IDLE
wlan1: Setting authentication timeout: 10 sec 0 usec
wlan1: Cancelling scan request
wlan1: Process pending EAPOL frame that was received just before association notification
wlan1: RX EAPOL from 74:31:70:60:a7:fb
wlan1: Setting authentication timeout: 10 sec 0 usec
wlan1: IEEE 802.1X RX: version=1 type=3 length=117
wlan1: EAPOL-Key type=2
wlan1: key_info 0x8a (ver=2 keyidx=0 rsvd=0 Pairwise Ack)
wlan1: key_length=16 key_data_length=22
replay_counter - hexdump(len=8): 00 00 00 00 00 00 0c e3
key_nonce - hexdump(len=32): f8 4b d4 a4 e1 78 74 36 6b f1 55 51 b3 53 8f c3 cd 26 fd 64 d0 60 c2 1c 50 e6 3b 88 3d 8c 80 3b
key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wlan1: State: ASSOCIATED -> 4WAY_HANDSHAKE
wlan1: WPA: RX message 1 of 4-Way Handshake from 74:31:70:60:a7:fb (ver=2)
RSN: msg 1/4 key data - hexdump(len=22): dd 14 00 0f ac 04 07 b5 4c 26 2d 01 83 8c 31 57 38 08 eb 63 7e c2
WPA: PMKID in EAPOL-Key - hexdump(len=22): dd 14 00 0f ac 04 07 b5 4c 26 2d 01 83 8c 31 57 38 08 eb 63 7e c2
RSN: PMKID from Authenticator - hexdump(len=16): 07 b5 4c 26 2d 01 83 8c 31 57 38 08 eb 63 7e c2
wlan1: RSN: no matching PMKID found
WPA: Renewed SNonce - hexdump(len=32): 83 a7 03 c4 a1 9f e1 c9 94 1b 83 0d 25 3b 1e 4a c6 ee e2 b0 65 7d 24 2f 55 48 26 31 cd 25 f8 6f
WPA: PTK derivation - A1=00:1f:1f:d7:c5:56 A2=74:31:70:60:a7:fb
WPA: Nonce1 - hexdump(len=32): 83 a7 03 c4 a1 9f e1 c9 94 1b 83 0d 25 3b 1e 4a c6 ee e2 b0 65 7d 24 2f 55 48 26 31 cd 25 f8 6f
WPA: Nonce2 - hexdump(len=32): f8 4b d4 a4 e1 78 74 36 6b f1 55 51 b3 53 8f c3 cd 26 fd 64 d0 60 c2 1c 50 e6 3b 88 3d 8c 80 3b
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=48): [REMOVED]
WPA: WPA IE for msg 2/4 - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 0c e3
wlan1: WPA: Sending EAPOL-Key 2/4
WPA: KCK - hexdump(len=16): [REMOVED]
WPA: Derived Key MIC - hexdump(len=16): 42 8c ef f5 b5 e5 bd 11 41 fa 17 69 bf 99 fa 0e
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
WEXT: if_removed already cleared - ignore event
wlan1: RX EAPOL from 74:31:70:60:a7:fb
wlan1: IEEE 802.1X RX: version=1 type=3 length=151
wlan1: EAPOL-Key type=2
wlan1: key_info 0x13ca (ver=2 keyidx=0 rsvd=0 Pairwise Install Ack MIC Secure Encr)
wlan1: key_length=16 key_data_length=56
replay_counter - hexdump(len=8): 00 00 00 00 00 00 0c e4
key_nonce - hexdump(len=32): f8 4b d4 a4 e1 78 74 36 6b f1 55 51 b3 53 8f c3 cd 26 fd 64 d0 60 c2 1c 50 e6 3b 88 3d 8c 80 3b
key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
key_rsc - hexdump(len=8): 93 4f 00 00 00 00 00 00
key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
key_mic - hexdump(len=16): 21 dc d7 d6 8a 93 0d aa c3 4d cc ab 8a 83 bb 32
RSN: encrypted key data - hexdump(len=56): fa 8d 27 22 ca 30 eb e2 5c 7c 00 bb 5c dc 2a da 7a 63 25 81 2c 87 94 e3 3a 85 30 d9 96 4c 4c 3e 8c a8 b4 7e 85 87 6e 14 9a d5 05 05 2b 99 e6 54 00 8f 06 36 91 8a 2a 55
WPA: decrypted EAPOL-Key key data - hexdump(len=48): [REMOVED]
wlan1: State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
wlan1: WPA: RX message 3 of 4-Way Handshake from 74:31:70:60:a7:fb (ver=2)
WPA: IE KeyData - hexdump(len=48): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 01 00 dd 16 00 0f ac 01 02 00 92 70 40 23 16 ba 35 dd 9c 72 3d fb 73 07 12 36 dd 00
WPA: RSN IE in EAPOL-Key - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 01 00
WPA: GTK in EAPOL-Key - hexdump(len=24): [REMOVED]
wlan1: WPA: Sending EAPOL-Key 4/4
WPA: KCK - hexdump(len=16): [REMOVED]
WPA: Derived Key MIC - hexdump(len=16): 79 1f 27 a7 56 a3 6e 61 69 d4 59 58 bf 07 ed ae
wlan1: WPA: Installing PTK to the driver
wpa_driver_wext_set_key: alg=3 key_idx=0 set_tx=1 seq_len=6 key_len=16
EAPOL: External notification - portValid=1
wlan1: State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
RSN: received GTK in pairwise handshake - hexdump(len=18): [REMOVED]
WPA: Group Key - hexdump(len=16): [REMOVED]
wlan1: WPA: Installing GTK to the driver (keyidx=2 tx=0 len=16)
WPA: RSC - hexdump(len=6): 93 4f 00 00 00 00
wpa_driver_wext_set_key: alg=3 key_idx=2 set_tx=0 seq_len=6 key_len=16
wlan1: WPA: Key negotiation completed with 74:31:70:60:a7:fb [PTK=CCMP GTK=CCMP]
wlan1: Cancelling authentication timeout
wlan1: State: GROUP_HANDSHAKE -> COMPLETED
wlan1: CTRL-EVENT-CONNECTED - Connection to 74:31:70:60:a7:fb completed (auth) [id=0 id_str=]
wpa_driver_wext_set_operstate: operstate 0->1 (UP)
netlink: Operstate: linkmode=-1, operstate=6
EAPOL: External notification - portValid=1
EAPOL: External notification - EAP success=1
EAPOL: SUPP_PAE entering state AUTHENTICATING
EAPOL: SUPP_BE entering state SUCCESS
EAP: EAP entering state DISABLED
EAPOL: SUPP_PAE entering state AUTHENTICATED
EAPOL: Supplicant port status: Authorized
EAPOL: SUPP_BE entering state IDLE
EAPOL authentication completed successfully
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
WEXT: if_removed already cleared - ignore event
EAPOL: startWhen --> 0
EAPOL: disable timer tick
wlan1: RSN: processing PMKSA candidate list
wlan1: RSN: not in suitable state for new pre-authentication
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17
Ignore event for foreign ifindex 17 pi@raspberrypi ~ $ sudo ./instant_AP-WLAN_Bridge.sh -start
Konfiguration ausführen ...
[FAIL] Stopping ISC DHCP server: dhcpd failed!
dnsmasq: Kein Prozess gefunden
dhclient: Kein Prozess gefunden
wpa_cli: Kein Prozess gefunden
wpa_action: Kein Prozess gefunden
isc-dhcp-server: Kein Prozess gefunden
hostapd: Kein Prozess gefunden
net.ipv4.ip_forward = 0
lösche Bridge und Konfiguration ...
br0: ERROR while getting interface flags: Kein passendes Gerät gefunden
bridge br0 does not exist!
bridge br0 does not exist!
br0: ERROR while getting interface flags: Kein passendes Gerät gefunden
bridge br0 doesn't exist; can't delete it
entferne WLAN-Konfiguration ...
lösche iptables-Filter ...
rmmod iptable_nat
rmmod nf_nat_ipv4
rmmod ipt_MASQUERADE
rmmod nf_nat
rmmod xt_conntrack
rmmod iptable_filter
rmmod ip_tables
rmmod x_tables
Bridge & WLAN Access-Point Konfiguration beendet.
Starte alle Dienste, und Verbindungen ...
lege Konfigurationsdatei wpa_supplicant.tmp an.
lege Konfigurationsdatei /etc/default/isc-dhcp-server an:
DHCPD_CONF=/etc/dhcp/dhcpd.conf
INTERFACES=br0
lege Konfigurationsdatei /etc/dhcp/dhcpd.conf an:
subnet 192.168.3.0 netmask 255.255.255.0 { range 192.168.3.10 192.168.3.20; }
option routers 192.168.3.1;
option domain-name-servers 192.168.2.1;
WLAN-Treibermodul 1 rt2800usb erkannt
WLAN-Treibermodul 2 r8712u erkannt
lade Module rt2800usb r8712u
setze Stromsparmechanismen für wlan1 (Powersave = off)
command failed: No such device (-19)
setze Stromsparmechanismen für wlan0 (Powersave = off)
setze Sendeleistung des WLAN-Adapters wlan0 (15dBm)
setze Sendeleistung des WLAN-Adapters wlan1 (15dBm)
Error for wireless request "Set Tx Power" (8B26) :
SET failed on device wlan1 ; Function not implemented.
setze Regionseinstellungen des Systems (Regionscode DE)
Starte hostapd-Service
Configuration file: /etc/hostapd_wlanbridge.conf
Failed to update rate sets in kernel module
Using interface wlan0 with hwaddr 00:0f:55:a8:bd:11 and ssid 'WLAN_AP'
verwende zweiten WLAN-Adapter wlan0
starte Verbindung zu WLAN-Accesspoint 74:31:70:60:A7:FB - EasyBox-60A743
Using interface wlan1 with hwaddr
einen Moment bitte, starte wpa_supplicant ...
ioctl[SIOCSIWPMKSA]: Invalid argument
ioctl[SIOCSIWMODE]: Device or resource busy
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWPMKSA]: Invalid argument
Bridge-Schnittstelle initialisieren (statisch):
Bridge: br0 IP-Adresse: 192.168.3.1 Broadcast: 192.168.3.255 Netzmaske: 255.255.255.0
starte isc-dhcp-server
DHCP-Range isc-dhcp-server:
Schnittstelle: br0 Startadresse: 192.168.3.10 Endadresse: 192.168.3.20 Lease: infinite
[ ok ] Starting ISC DHCP server: dhcpd.
aktiviere Port-Forwarding ...
net.ipv4.ip_forward = 1
Konfiguration beendet.
System DNS-Check und Routing:
nameserver 192.168.2.1
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.3.1 0.0.0.0 UG 1 0 0 br0
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
Konfiguration Bridge:
br0 Link encap:Ethernet Hardware Adresse 00:0f:55:a8:bd:11
inet Adresse:192.168.3.1 Bcast:192.168.3.255 Maske:255.255.255.0
bridge name bridge id STP enabled interfaces
br0 8000.000f55a8bd11 yes eth0
wlan0
port no mac addr is local? ageing timer
1 00:0f:55:a8:bd:11 yes 0.00
2 b8:27:eb:67:61:6e yes 0.00
br0
bridge id 8000.000f55a8bd11
designated root 8000.000f55a8bd11
root port 0 path cost 0
max age 20.00 bridge max age 20.00
hello time 2.00 bridge hello time 2.00
forward delay 2.00 bridge forward delay 2.00
ageing time 300.00
hello timer 0.59 tcn timer 0.00
topology change timer 0.00 gc timer 292.83
flags
eth0 (2)
port id 8002 state disabled
designated root 8000.000f55a8bd11 path cost 100
designated bridge 8000.000f55a8bd11 message age timer 0.00
designated port 8002 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
wlan0 (1)
port id 8001 state disabled
designated root 8000.000f55a8bd11 path cost 100
designated bridge 8000.000f55a8bd11 message age timer 0.00
designated port 8001 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
Konfiguration lokales LAN (keine IP-Adresse im Bridged-Mode!):
eth0 Link encap:Ethernet Hardware Adresse b8:27:eb:67:61:6e
Konfiguration WLAN (keine IP-Adresse im Bridged-Mode!):
wlan1 Link encap:Ethernet Hardware Adresse 00:1f:1f:d7:c5:56
Mode:Auto Access Point: Not-Associated Sensitivity:0/0
Power Management:off
Controll-Interface:
mon.wlan1 No such device
Virtuelles WLAN-Interface im Infrastruktur-Modus:
wlan0 Link encap:Ethernet Hardware Adresse 00:0f:55:a8:bd:11
wlan0 IEEE 802.11bgn Mode:Master Tx-Power=20 dBm
Power Management:off
Regionseinstellung des WLAN-Adapters:
country DE:
(2400 - 2483 @ 40), (N/A, 20)
(5150 - 5350 @ 80), (N/A, 20), NO-OUTDOOR
(5470 - 5725 @ 80), (N/A, 26), DFS
(57240 - 65880 @ 2160), (N/A, 40), NO-OUTDOOR
Dienstestatus:
Status of ISC DHCP server: dhcpd is running.
|