Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2007 14:41:32 +0900
From:      Randy Bush <randy@psg.com>
To:        freebsd-net@freebsd.org
Subject:   ath wep confusion
Message-ID:  <18275.26892.441538.563720@roam.psg.com>

next in thread | raw e-mail | index | archive | help
i know wep sucks caterpillar snot. but, for layer nine reasons, i
am trying to get it going on a soekris 5501 to a winxp machine and
am pretty confused.

first, if i run open, with wep off at both ends, no problem. if i
enable wep, i get what seems line a simplex, one-way, connection.

first, the plan

		     Soekris 5501
		.-----------------------.
		|                       |
		|              b ---ath0|
		|              r        |  LAN
     external   |              i --- vr1|
    ------------|vr0---NAT---- d        |  DHCP
       WAN      |              g --- vr2|
		|              e        |  Clients
		|              0 --- vr3|
		|                       |
		`-----------------------'

    - vr0 gets address via DHCP from external link
    - bridge0 is hard coded as 192.168.0.1/24
    - dhcpd runs on bridge0 for the range 192.168.0.100-199 to feed
      the LAN

this works if ath0 is wepless. turn on wep, and the soekris hears
the winxp machine asking for dhcp, but the winxp machine does not
hear the reply.

the tasty bits of /etc/rc.conf are:

    ifconfig_vr0=DHCP
    cloned_interfaces=bridge0
    ifconfig_bridge0="192.168.0.1 addm vr1 addm vr2 addm vr3 up addm ath0"
    ifconfig_vr1=up
    ifconfig_vr2=up
    ifconfig_vr3=up
    ifconfig_ath0="channel 4 ssid rgnet-aden wep wepkey 13-characters mediaopt hostap up"

as i said, this fails. the soekris sees incoming dhcp requests, but
the responses (which show in tcpdump on the soekris) are not
received by the wireless winxp host. but if i then

    ifconfig ath0 -wep

at the command line, and then try from winxp, all is fine.

so my assumption is there is something i do not understand about
wep keying betweek a freebsd ath hostap and winxp.

clue bat, please.

randy




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18275.26892.441538.563720>