hostap -> can it act as a client?

Vaidehi Kasarekar vaidehi_30
Sun Jul 6 19:49:16 PDT 2003




Hi all,

I guess, i have configured hostap drivers with my SMC card. I have doubt regarding the operations of hostap. I would like to understand more about hostap.

As far my understanding, Hostap: as the name, allows our machine, to act as a accesspoint. It is a software which emulates the behaviour of the accesspoint. 

However, my aim is not to make it behave like an accesspoint and have one more wireless lan (WIRELESSLAN2). I already have got a wireless LAN, which has MAC address filtering. (WIRELESSLAN1) I am using Libradiate, and am trying to inject a packet on the wireless network. This is my ultimate motive. 

I am confused abt the following:
1)If Libradiate uses Hostap. This means i have to configure my ifcfg-wlan0 with a different network alltogether. (WIRELESSLAN2) (with my machine -with
hostap module acting as an accesspoint). (Am I right?)

However i want to emulate a client to client attack in my already existing wireless LAN (WIRELESSLAN1), which
means that i should configure my wlan0 interface, as a
client to this wireless lan (WIRELESSLAN1). I am
getting problems in configuring this.
My routing table shows:
[root at vaidehi inject]# route
ernel IP routing table
Destination Gateway Genmask Flags
Metric Ref Use Iface
129.93.68.128 * 255.255.255.128 U 
0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 
0 0 0 lo
default kickapoo-2.cs.u 0.0.0.0 UG 
0 0 0 eth0
Clearly, it does not have any wlan0 enteries.

I add them:
ifconfig wlan0 10.10.1.3 netmask 255.255.255.0
Now my routing table is:
[root at vaidehi inject]# route
Kernel IP routing table
Destination Gateway Genmask Flags
Metric Ref Use Iface
129.93.68.128 * 255.255.255.128 U 
0 0 0 eth0
10.10.1.0 * 255.255.255.0 U 
0 0 0 wlan0
127.0.0.0 * 255.0.0.0 U 
0 0 0 lo
default 10.10.1.5 0.0.0.0 UG 
0 0 0 wlan0
default kickapoo-2.cs.u 0.0.0.0 UG 
0 0 0 eth0

My IP address is 10.10.1.3

If i traceroute, to 10.10.1.5 (gateway), i get
[root at vaidehi inject]# traceroute -i wlan0 10.10.1.5
traceroute to 10.10.1.5 (10.10.1.5), 30 hops max, 38 byte packets
1 10.10.1.3 (10.10.1.3) 2992.296 ms !H 3003.252 ms!H 2993.461 ms !H

But if i ping to 10.10.1.5, 
[root at vaidehi inject]# ping -I wlan0 10.10.1.5
PING 10.10.1.5 (10.10.1.5) from 10.10.1.3 wlan0: 56(84) bytes of data.
>From 10.10.1.3 icmp_seq=1 Destination Host Unreachable
>From 10.10.1.3 icmp_seq=2 Destination Host Unreachable
>From 10.10.1.3 icmp_seq=3 Destination Host Unreachable

--- 10.10.1.5 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% loss, time 4019ms, pipe 3

Why is this happenning? Does this mean that the SMC card, and my laptop, where i have configured the
hostap driver cannot act as a client to my already existing WIRELESSLAN1?

My /var/log/kernel.log and messages show log enteries 
This is my kernel.log
Jul 6 14:11:16 vaidehi kernel: hostap_cs: hostap_cs.c0.0.0 2002-04-24 (SSH Communications Security Corp, Jouni Malinen)
Jul 6 14:11:16 vaidehi kernel: hostap_cs: hostap_cs.c 0.0.0 2002-04-24 (SSH Communications Security Corp,
Jouni Malinen)
Jul 6 14:11:16 vaidehi kernel: hostap_cs: (c) SSH Communications Security Corp 
Jul 6 14:11:16 vaidehi kernel: hostap_cs: (c) SSH Communications Security Corp 
Jul 6 14:11:16 vaidehi kernel: hostap_cs: setting Vcc=33 (constant)
Jul 6 14:11:16 vaidehi kernel: hostap_cs:CS_EVENT_CARD_INSERTION
Jul 6 14:11:16 vaidehi kernel: prism2_config()
Jul 6 14:11:16 vaidehi kernel: hostap_cs: setting Vcc=50 (from config)
Jul 6 14:11:16 vaidehi kernel: CISTPL_MANFID: 0x0156, 0x0002
Jul 6 14:11:16 vaidehi kernel: Lucent-based card
Jul 6 14:11:16 vaidehi kernel: Checking CFTABLE_ENTRY 0x01 (default 0x01)
Jul 6 14:11:16 vaidehi kernel: IO window settings: cfg->io.nwin=1 dflt.io.nwin=1
Jul 6 14:11:16 vaidehi kernel: io->flags = 0x0046, io.base=0x0000, len=64
Jul 6 14:11:17 vaidehi kernel: hostap_cs: index 0x01: Vcc 5.0, irq 3, io 0x0100-0x013f
Jul 6 14:11:17 vaidehi kernel: hostap_cs: index 0x01: Vcc 5.0, irq 3, io 0x0100-0x013f
Jul 6 14:11:17 vaidehi kernel: hostap_cs: Registered netdevice wlan0
Jul 6 14:11:17 vaidehi kernel: hostap_cs: Registered netdevice wlan0
Jul 6 14:11:17 vaidJul 6 14:11:17 vaidehi kernel: prism2_hw_config: initialized in 8778 iterations
Jul 6 14:11:17 vaidehi kernel: wlan0: NIC: id=0x8002 v1.0.0
Jul 6 14:11:17 vaidehi kernel: wlan0: NIC: id=0x8002 v1.0.0
Jul 6 14:11:17 vaidehi kernel: wlan0: PRI: id=0x15 v0.3.0
Jul 6 14:11:17 vaidehi kernel: wlan0: PRI: id=0x15 v0.3.0
Jul 6 14:11:17 vaidehi kernel: wlan0: STA: id=0x1f v0.7.6
Jul 6 14:11:17 vaidehi kernel: wlan0: STA: id=0x1f v0.7.6
Jul 6 14:11:17 vaidehi kernel: wlan0: prism2_open
Jul 6 14:12:51 vaidehi kernel: Enabling monitor mode(1)
Jul 6 14:12:51 vaidehi kernel: wlan0: INFO - fid=0x02a5 - len=2 type=0xf200
Jul 6 14:12:51 vaidehi kernel: LinkStatus=2 (Disconnected)
vaidehi kernel: prism2_hw_config()


I think that though i have SMC 2632W card, hostap works on this. 

I was suggested to upgrade my firmware. However i think it is not the firmware issue. 

(Please correct me if i am wrong) if this works, then I wont have to upgrade my firmware.

 

Thanks

-Vaideh




---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20030706/1d253253/attachment.htm 



More information about the Hostap mailing list