One more step...

"Mike Avery" <[email protected]> Thu, 12 Dec 2002 11:12:51 -0700
Newsgroups gmane.network.wireless.bsd.general
Message-ID <3DF86F33.23239.A0007E@localhost>
I'm still trying to get a FreeBSD box to act as WAP.  After reading past notes, I 
put my senao card into the box, and following Warner's suggestions, the card is 
acting as an access point, and other PC's can associate with it.

However... I can't get any packets through the machine.  I've been going through 
the man pages and handbook, as well as FAQ's and HOWTO's, and figure I must 
have crossed an i and dotted a t.  Or something.

I hope someone will share some advice.

It's a 4.7 -stable machine.  I'm using a 3Com 3cr990-tx-97 fast ethernet card, 
and the Senao 200mw 802.11b card in a D-Link PCI to PCMCIA adapter.

Using the PC as a client to other AP's is no problem, so I know the adapter and 
802.11b card work.  I can also access the LAN through the 3Com card.

Here's the lines from the kernel configuration file (note- I'm not doing ipv6, so 
those lines are commented out, and I'm not doing NAT so IPDIVERT is 
commented out):
#options         MROUTING
options         IPFIREWALL
options         IPFW2
options         IPFIREWALL_VERBOSE
#options         IPFIREWALL_FORWARD
options         IPFIREWALL_VERBOSE_LIMIT=100
options         IPFIREWALL_DEFAULT_TO_ACCEPT
#options         IPV6FIREWALL
#options         IPV6FIREWALL_VERBOSE
#options         IPV6FIREWALL_VERBOSE_LIMIT=100
#options         IPV6FIREWALL_DEFAULT_TO_ACCEPT
#options         IPDIVERT
#options         IPFILTER 
#options         IPFILTER_LOG
#options         IPFILTER_DEFAULT_BLOCK
#options         IPSTEALTH
#options         TCPDEBUG

options         RANDOM_IP_ID
 
#options                ACCEPT_FILTER_DATA
#options                ACCEPT_FILTER_HTTP
 
#options         TCP_DROP_SYNFIN         #drop TCP packets with SYN+FIN
 
options         ICMP_BANDLIM

#options        DUMMYNET
options BRIDGE
#options        HZ=1000

As expected with the default ipfw to open, the only rule in place is:
# 65535 allow ip from any to any

Once the pccard is up, I execute the following:
wicontrol -i wi0 -s wave
wicontrol -i wi0 -k 0x0102030405 -v 1
wicontrol -i wi0 -e 1
wicontrol -i wi0 -T 1

ifconfig wi0 inet up ssid OtherWave mediaopt hostap channel 6
sysctl net.link.ether.bridge=1
sysctl net.link.ether.bridge_ipfw=1
sysctl net.link.ether.bridge_cfg="wi0 txp0"
sysctl net.inet.ip.forwarding=1

ifconfig tells me:
txp0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> 
mtu 1500
        options=3<rxcsum,txcsum>
        inet 192.168.2.11 netmask 0xffffff00 broadcast 192.168.2.255
        ether 00:01:02:5f:2f:8d
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
wi0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> 
mtu 1500
        ether 00:02:6f:01:c7:b6
        media: IEEE 802.11 Wireless Ethernet autoselect <hostap> (DS/2Mbps <hos)
        status: associated
        ssid OtherWave 1:OtherWave
        stationname wave
        channel 6 authmode OPEN powersavemode OFF powersavesleep 100
        wepmode MIXED weptxkey 1
        wepkey 1:64-bit

wicontrol says:
NIC serial number:                      [ SN028025867 ]
Station name:                           [ wave ]
SSID for IBSS creation:                 [ OtherWave ]
Current netname (SSID):                 [ OtherWave ]
Desired netname (SSID):                 [ OtherWave ]
Current BSSID:                          [ 00:02:6f:01:c7:b6 ]
Channel list:                           [ 2047 ]
IBSS channel:                           [ 6 ]
Current channel:                        [ 6 ]
Comms quality/signal/noise:             [ 0 81 27 ]
Promiscuous mode:                       [ Off ]
Process 802.11b Frame:                  [ Off ]
Intersil-Prism2 based card:             [ 1 ]
Port type (1=BSS, 3=ad-hoc):            [ 6 ]
MAC address:                            [ 00:02:6f:01:c7:b6 ]
TX rate (selection):                    [ 3 ]
TX rate (actual speed):                 [ 2 ]
RTS/CTS handshake threshold:            [ 2347 ]
Create IBSS:                            [ Off ]
Access point density:                   [ 1 ]
Power Mgmt (1=on, 0=off):               [ 0 ]
Max sleep time:                         [ 100 ]
WEP encryption:                         [ On ]
TX encryption key:                      [ 1 ]
Encryption keys:                        [ 0x0102030405 ][  ][  ][  ]

The signal quality is a bit of a bother... is it really 0?  I'd think that it would be 
more like 81-27, or about 54.

And finally, netstat -rn  tells me:
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.2.3        UGSc        1        0   txp0
127.0.0.1          127.0.0.1          UH          0       46    lo0
192.168.2          link#1             UC          2        0   txp0
192.168.2.3        00:90:27:8c:67:e4  UHLW        3       78   txp0   1094
192.168.2.131      00:90:27:17:a5:e4  UHLW        1      357   txp0   1129

Interestingly enough, there is no mention of wi0.  Since bridging under FreeBSD is 
new to me, I don't know if this is normal or not.

Any advice will be cheerfully accepted...

Thanks,
Mike

--
*bsd wireless list, a bawug thing <http://www.bawug.org/>
[un]subscribe: http://lists.bawug.org/mailman/listinfo/bsd-wireless/