Cards seeming connect but unable to route traffic?

Drew Dowling drewhead at drewhead.org
Wed May 5 22:01:54 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for responding Christopher.

> Are you running hostapd.
> Without it, some cards will conect, but wont route.

I was not, but I then went and compiled it and built a basic config, 
fired it up.  No change.

> also try getting Bridge Utilities 
> <http://www.eracew.net:/brtools/bridge-utils.tar.gz> and installing 
> them.  Bridging the interfacew should work.
> as a note, if you bridge, set the interfaces to promisc with the ip 0.0.0.0

Actually I needed to rebuild the kernel to enable bridging.  That seemed
as good an excuse to get to 2.6.5 so here I am.
> ex:

> ifconfig eth0 promisc 0.0.0.0 up
> ifconfig wlan0 promisc 0.0.0.0 up
> brctl addbr AP0
> brctl addif AP0 eth0
> brctl addif AP0 wlan0
> ifcofig AP0 192.168.2.100

> This example assumes that you are using 192.168.2.xx for your ip range.

For my private LAN I am.  This config seemed to kill the public network
that eth0 used (via dhcpcd).

Anyway, I'd like to try and simplify.  Instead of worring about bridging
and routing between diffrent networks (I had planned on using iptables) I
think it might be best if I proved the wireless client could talk to the
wireless AP first.

So... let me simply take eth0 out of the equasion.  I've downed it so that
ifconfig looks like:

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          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)

wlan0     Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX  
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: xxxx::xxx:xxxx:xxxx:xxxx/xx Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:528 (528.0 b)
          Interrupt:11 Memory:d0b18000-d0b19000 

I stick the card in the XP box and it *says* it connects.  dmesg shows me

wlan0: XX:XX:XX:XX:XX auth_cb - STA authenticated
wlan0: XX:XX:XX:XX:XX assoc_cb - STA associated

after the occurs.

I fire up hostapd and ifconfig now has the additionaly interface:

wlan0ap   Link encap:UNSPEC  HWaddr
XX-XX-XX-XX-XX-XX-00-00-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING MULTICAST  MTU:2290  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:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:11 Memory:d0b18000-d0b19000 

the others are unchanged.

it also spits out 
Using interface wlan0ap with hwaddr 00:02:dd:33:1d:d0 and ssid
'drewhead_wap'
Flushing old station entries
Deauthenticate all stations
wlan0: STA XX:XX:XX:XX:XX IEEE 802.11: authenticated
wlan0: STA XX:XX:XX:XX:XX IEEE 802.11: associated (aid 1)

when I stick the card in the XP box now a debug level 2 shows me:

Received 30 bytes management frame
MGMT
mgmt::auth
authentication: STA=XX:XX:XX:XX:XX auth_alg=0 auth_transaction=1
status_code=0 wep=0
  New STA
authentication reply: STA=XX:XX:XX:XX:XX auth_alg=0 auth_transaction=2
resp=0
Received 30 bytes management frame
MGMT (TX callback) ACK
mgmt::auth cb
wlan0: STA XX:XX:XX:XX:XX IEEE 802.11: authenticated
Received 48 bytes management frame
MGMT
mgmt::assoc_req
association request: STA=XX:XX:XX:XX:XX capab_info=0x11
listen_interval=1
  new AID 1
Received 36 bytes management frame
MGMT (TX callback) ACK
mgmt::assoc_resp cb
wlan0: STA XX:XX:XX:XX:XX IEEE 802.11: associated (aid 1)


At this point I think I should be able to ping one box from the other, or
connect using a service I know is running.  Everything times out.

- -- 
     Drew Dowling               Drewhead          http://www.drewhead.org
 drewhead at drewhead.org    |                    |    WWW      / \ Alpha Phi Omega
Concord, North Carolina   |                    |  Nimat     /   \  Gamma Lambda
CLEMSON UNIVERSITY ALUMNI |                    | Apatschin /_____\
      TIGER BAND!         |      VGAP4 Hosting at http://vgap.drewhead.org
-----BEGIN PGP SIGNATURE-----
Comment: Public key available at http://www.drewhead.org

iD8DBQFAmZyM8J7U7yHE638RAvbIAJsEauf3+1dfhIRVvqCZUeeFUKoF1gCgm3jB
j37gm/0cZeI+bYhUWqAUxxw=
=5n2O
-----END PGP SIGNATURE-----



More information about the HostAP mailing list