hostapd + bridge

Timo Pannes timo.pannes at gmx.net
Sat Oct 8 17:56:47 EDT 2005


Hi,

I am using a Debian based system called "c't-Debian-Server" with an integrated 
IPCop firewall running in UML mode (User mode linux). The phsical network 
interfaces are connected to IPcop using tun/tap devices. IPCop's "blue" 
interface (for WLAN) is connected to tap2 with IP 192.168.254.1 within the 
UML. Now I want to set up a WLAN-AP with hostapd and connect it to br2. 
Without bridging it works just fine with hostapd and WPA, but after adding my 
wlan-interface to the bridge and setting up the bridge there is no connection 
anymore. Are there any ideas out there? 

Here is what I've done:

> brctl addif br2 ath0
> ifconfig br2 192.168.254.100

> brctl show
br0             8000.0040f4cdaa34       no		eth2
					tap0
br1             8000.00e07dc449fa       no		eth1
					tap1
br2             8000.ee254d91a3d9      no		ath0
					tap2
br3             8000.fa63a7d1bcde       no		tap3


> ./hostapd /etc/hostapd/hostapd.conf 
Configuration file: /etc/hostapd/hostapd.conf
Using interface ath0 with hwaddr 00:0f:3d:86:a1:ff and ssid 'wellenreiter2'
Flushing old station entries
Deauthenticate all stations
l2_packet_receive - recvfrom: Network is down
ath0: STA 00:40:0b:82:0a:98 IEEE 802.11: associated
ioctl[IEEE80211_IOCTL_DELKEY]: No such file or directory
ioctl[IEEE80211_IOCTL_SETMLME]: No such file or directory
ath0: STA 00:40:0b:82:0a:98 IEEE 802.11: deauthenticated due to local deauth 
request
ath0: STA 00:40:0b:82:0a:98 IEEE 802.11: deassociated
ath0: STA 00:40:0b:82:0a:98 IEEE 802.11: associated
ath0: STA 00:40:0b:82:0a:98 IEEE 802.11: deassociated
ioctl[IEEE80211_IOCTL_DELKEY]: No such file or directory
ioctl[IEEE80211_IOCTL_DELKEY]: No such file or directory
ioctl[IEEE80211_IOCTL_SETMLME]: No such file or directory
ath0: STA 00:40:0b:82:0a:98 IEEE 802.11: associated
....
...



and a more detailed view: 

> ./hostapd -d /etc/hostapd/hostapd.conf 
Configuration file: /etc/hostapd/hostapd.conf
Using interface ath0 with hwaddr 00:0f:3d:86:a1:ff and ssid 'wellenreiter2'
madwifi_configure_wpa: group key cipher=1
madwifi_configure_wpa: pairwise key ciphers=0xa
madwifi_configure_wpa: key management algorithms=0x2
madwifi_configure_wpa: rsn capabilities=0x0
madwifi_configure_wpa: enable WPA= 0x3
madwifi_set_privacy: enabled=1
WPA: group state machine entering state GTK_INIT
GMK - hexdump(len=32): a4 f9 7e de 23 68 82 91 5e 03 f0 9e cf d8 ea de 46 da 
70 26 dd 74 b8 c2 51 1f e2 f1 b7 2d fd 23
GTK - hexdump(len=32): cc b6 92 74 d1 9b d8 8f 0d a5 e6 0c ef 09 67 e4 95 18 
87 7b ae 8a 8e 9c 1d 8e 12 04 86 98 bb fa
WPA: group state machine entering state SETKEYSDONE
madwifi_set_key: alg=TKIP addr=00:00:00:00:00:00 key_idx=1
Flushing old station entries
madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3
Deauthenticate all stations
l2_packet_receive - recvfrom: Network is down
ath0: STA 00:40:0b:82:0a:98 IEEE 802.11: associated
  New STA
ath0: STA 00:40:0b:82:0a:98 WPA: event 1 notification
ath0: STA 00:40:0b:82:0a:98 WPA: start authentication
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:40:0b:82:0a:98 key_idx=0
ath0: STA 00:40:0b:82:0a:98 IEEE 802.1X: unauthorizing port
WPA: 00:40:0b:82:0a:98 WPA_PTK_GROUP entering state IDLE
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state AUTHENTICATION
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state AUTHENTICATION2
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state INITPSK
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state PTKSTART
ath0: STA 00:40:0b:82:0a:98 WPA: sending 1/4 msg of 4-Way Handshake
ath0: STA 00:40:0b:82:0a:98 WPA: EAPOL-Key timeout
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state PTKSTART
ath0: STA 00:40:0b:82:0a:98 WPA: sending 1/4 msg of 4-Way Handshake
ath0: STA 00:40:0b:82:0a:98 WPA: EAPOL-Key timeout
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state PTKSTART
ath0: STA 00:40:0b:82:0a:98 WPA: sending 1/4 msg of 4-Way Handshake
ath0: STA 00:40:0b:82:0a:98 WPA: EAPOL-Key timeout
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state PTKSTART
ath0: STA 00:40:0b:82:0a:98 WPA: sending 1/4 msg of 4-Way Handshake
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state DISCONNECT
madwifi_sta_deauth: addr=00:40:0b:82:0a:98 reason_code=2
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state DISCONNECTED
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:40:0b:82:0a:98 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: No such file or directory
ath0: STA 00:40:0b:82:0a:98 IEEE 802.1X: unauthorizing port
ioctl[IEEE80211_IOCTL_SETMLME]: No such file or directory
ath0: STA 00:40:0b:82:0a:98 IEEE 802.11: deauthenticated due to local deauth 
request
Custom wireless event: 'STA-TRAFFIC-STAT
mac=00:40:0b:82:0a:98
rx_packets=3
tx_packets=4
rx_bytes=411
tx_bytes=428
'
ath0: STA 00:40:0b:82:0a:98 IEEE 802.11: deassociated
ath0: STA 00:40:0b:82:0a:98 IEEE 802.11: associated
  New STA
ath0: STA 00:40:0b:82:0a:98 WPA: event 1 notification
ath0: STA 00:40:0b:82:0a:98 WPA: start authentication
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:40:0b:82:0a:98 key_idx=0
ath0: STA 00:40:0b:82:0a:98 IEEE 802.1X: unauthorizing port
WPA: 00:40:0b:82:0a:98 WPA_PTK_GROUP entering state IDLE
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state AUTHENTICATION
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state AUTHENTICATION2
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state INITPSK
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state PTKSTART
ath0: STA 00:40:0b:82:0a:98 WPA: sending 1/4 msg of 4-Way Handshake
Custom wireless event: 'STA-TRAFFIC-STAT
mac=00:40:0b:82:0a:98
rx_packets=0
tx_packets=1
rx_bytes=0
tx_bytes=107
'
ath0: STA 00:40:0b:82:0a:98 IEEE 802.11: deassociated
ath0: STA 00:40:0b:82:0a:98 WPA: event 2 notification
madwifi_del_key: addr=00:40:0b:82:0a:98 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: No such file or directory
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state DISCONNECTED
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:40:0b:82:0a:98 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: No such file or directory
ath0: STA 00:40:0b:82:0a:98 IEEE 802.1X: unauthorizing port
ioctl[IEEE80211_IOCTL_SETMLME]: No such file or directory
ath0: STA 00:40:0b:82:0a:98 IEEE 802.11: associated
  New STA                       
ath0: STA 00:40:0b:82:0a:98 WPA: event 1 notification
ath0: STA 00:40:0b:82:0a:98 WPA: start authentication
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:40:0b:82:0a:98 key_idx=0
ath0: STA 00:40:0b:82:0a:98 IEEE 802.1X: unauthorizing port
WPA: 00:40:0b:82:0a:98 WPA_PTK_GROUP entering state IDLE
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state AUTHENTICATION
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state AUTHENTICATION2
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state INITPSK
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state PTKSTART
ath0: STA 00:40:0b:82:0a:98 WPA: sending 1/4 msg of 4-Way Handshake
ath0: STA 00:40:0b:82:0a:98 WPA: EAPOL-Key timeout
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state PTKSTART
ath0: STA 00:40:0b:82:0a:98 WPA: sending 1/4 msg of 4-Way Handshake
ath0: STA 00:40:0b:82:0a:98 WPA: EAPOL-Key timeout
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state PTKSTART
ath0: STA 00:40:0b:82:0a:98 WPA: sending 1/4 msg of 4-Way Handshake
ath0: STA 00:40:0b:82:0a:98 WPA: EAPOL-Key timeout
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state PTKSTART
ath0: STA 00:40:0b:82:0a:98 WPA: sending 1/4 msg of 4-Way Handshake
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state DISCONNECT
madwifi_sta_deauth: addr=00:40:0b:82:0a:98 reason_code=2
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state DISCONNECTED
WPA: 00:40:0b:82:0a:98 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:40:0b:82:0a:98 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: No such file or directory
ath0: STA 00:40:0b:82:0a:98 IEEE 802.1X: unauthorizing port
ioctl[IEEE80211_IOCTL_SETMLME]: No such file or directory
ath0: STA 00:40:0b:82:0a:98 IEEE 802.11: deauthenticated due to local deauth 
request
Custom wireless event: 'STA-TRAFFIC-STAT
mac=00:40:0b:82:0a:98
rx_packets=3
tx_packets=4
rx_bytes=411
tx_bytes=428
.....
...




More information about the HostAP mailing list