Hi
I have a (slightly older, but still snazzy) generic
acting as my gateway - see dmesg at bottom
my laptop internal wired NIC was acting funny, so I
thought I'd try wireless to network through my net4801
gateway. Never using my wireless card before on the
soekris (sat in the machine dormant for a year never
configured), I thought I'd finally try out the
excellent wireless support in OpenBSD.
Following the man page, I have
# cat /etc/hostname.ath0
inet 10.0.1.1 255.255.255.0 NONE media autoselect
mediaopt hostap nwid my_net chan 11
Rebooted...
I think it looks okay:
# ifconfig -a
lo0: flags=8049 mtu
33224
groups: lo
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8
sis0:
flags=8843 mtu
1500
lladdr 00:00:24:c2:41:3c
groups: egress
media: Ethernet autoselect (10baseT)
status: active
inet6 fe80::200:24ff:fec2:413c%sis0 prefixlen
64 scopeid 0x1
inet my.cable.ip.here netmask 0xf000
broadcast 255.255.255.255
sis1:
flags=8843 mtu
1500
lladdr 00:00:24:c2:41:3d
media: Ethernet autoselect (100baseTX
full-duplex)
status: active
inet 10.0.0.1 netmask 0xff00 broadcast
10.0.0.255
inet6 fe80::200:24ff:fec2:413d%sis1 prefixlen
64 scopeid 0x2
sis2: flags=8802 mtu 1500
lladdr 00:00:24:c2:41:3e
media: Ethernet autoselect (none)
status: no carrier
ath0:
flags=8863
mtu 1500
lladdr 00:02:6f:20:f5:99
media: IEEE802.11 autoselect hostap
(autoselect mode 11a hostap)
status: active
ieee80211: nwid my_net chan 11 bssid
00:02:6f:20:f5:99
inet 10.0.1.1 netmask 0xff00 broadcast
10.0.1.255
inet6 fe80::202:6fff:fe20:f599%ath0 prefixlen
64 scopeid 0x4
pflog0: flags=141 mtu 33224
pfsync0: flags=0<> mtu 1348
enc0: flags=0<> mtu 1536
and I had also changed my pf.conf to add the new
interface as seen here:
# cat /etc/pf.conf
# $OpenBSD: pf.conf,v 1.28 2004/04/29 21:03:09
frantzen Exp $
#
# See pf.conf(5) and /usr/share/pf for syntax and
examples.
# Remember to set net.inet.ip.forwarding=1 and/or
net.inet6.ip6.forwarding=1
# in /etc/sysctl.conf if packets are to be forwarded
between interfaces.
ext_if="sis0"
int_if="sis1"
wireless_if="ath0"
set block-policy return
set loginterface $ext_if
scrub in all
nat on $ext_if from !($ext_if) -> ($ext_if:0)
rdr pass on $ext_if proto tcp to port 22 -> 10.0.0.2
port 22
rdr pass on $ext_if proto tcp to port 23 -> 10.0.0.2
port 80
block log all
block drop in quick log on $ext_if proto { tcp, udp }
from any os Linux to any port ssh
pass quick on { lo0 $int_if $wireless_if } all
pass out on $ext_if proto tcp all flags S/SA keep
state
pass out on $ext_if proto { udp, icmp } all keep state
#
Yet, my WinXP with Intel 2915a/b/g can't find it when
scanning for networks to connect to.
Following the manpage again, setting a WEP key, just
in case..
# ifconfig ath0 nwkey 0x1deadbeef1
# ifconfig -a
lo0: flags=8049 mtu
33224
groups: lo
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8
sis0:
flags=8843 mtu
1500
lladdr 00:00:24:c2:41:3c
groups: egress
media: Ethernet autoselect (10baseT)
status: active
inet6 fe80::200:24ff:fec2:413c%sis0 prefixlen
64 scopeid 0x1
inet my.cable.ip.here netmask 0xf000
broadcast 255.255.255.255
sis1:
flags=8843 mtu
1500
lladdr 00:00:24:c2:41:3d
media: Ethernet autoselect (100baseTX
full-duplex)
status: active
inet 10.0.0.1 netmask 0xff00 broadcast
10.0.0.255
inet6 fe80::200:24ff:fec2:413d%sis1 prefixlen
64 scopeid 0x2
sis2: flags=8842
mtu 1500
lladdr 00:00:24:c2:41:3e
media: Ethernet autoselect (none)
status: no carrier
ath0:
flags=8863
mtu 1500
lladdr 00:02:6f:20:f5:99
media: IEEE802.11 autoselect hostap
(autoselect mode 11a hostap)
status: active
ieee80211: nwid my_net chan 11 bssid
00:02:6f:20:f5:99 nwkey 0x1deadbeef1
inet 10.0.1.1 netmask 0xff00 broadcast
10.0.1.255
inet6 fe80::202:6fff:fe20:f599%ath0 prefixlen
64 scopeid 0x4
pflog0: flags=141 mtu 33224
pfsync0: flags=0<> mtu 1348
enc0: flags=0<> mtu 1536
#
Still looks okay, yet, can't seem to find it (sitting
five feet away.)
I only have this one internal miniPCI 2915 to try
scanning it.
Did I miss a step? or any recommendations on how to
debug this? Any fancy trick I can try?
much thanks
b
dmesg:
===
OpenBSD 3.7-current (GENERIC) #1: Sun Aug 7 10:21:03
EDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by National Semi
("Geode by NSC" 586-class) 267 MHz
cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
cpu0: TSC disabled
real mem = 133799936 (130664K)
avail mem = 115503104 (112796K)
using 1658 buffers containing 6791168 bytes (6632K) of
memory
mainbus0 (root