Re: error on ifconfig, bssid

2006-02-05 Thread Lucas Reddinger
one more question about the same thing. i got my access point i wish
to use on a NWID that noone else uses. i specify this nwid using
ifconfig on my clients. however, as soon as i get a better signal from
another access point on a different NWID, my card switches, and my
clients lose their connection. here's what it looks like:

=
$ ifconfig wi0
wi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:80:c6:e3:1c:ff
description: dhcp
groups: egress
media: IEEE802.11 autoselect (DS11)
status: active
ieee80211: nwid linksys_9f 2dBm (auto)
inet6 fe80::280:c6ff:fee3:1cff%wi0 prefixlen 64 scopeid 0x2
inet 192.168.1.75 netmask 0xff00 broadcast 192.168.1.255
$ wicontrol
NIC serial number:  [ 3841 ]
Station name:   [ WaveLAN/IEEE node ]
SSID for IBSS creation: [ IBSS ]
Current netname (SSID): [ greenmonster ]
Desired netname (SSID): [ linksys_9f ]
Current BSSID:  [ 00:0c:41:68:70:f8 ]
Channel list:   [ 2047 ]
IBSS channel:   [ 1 ]
Current channel:[ 4 ]
Comms quality/signal/noise: [ 36 67 4 ]
Promiscuous mode:   [ Off ]
Process 802.11b Frame:  [ Off ]
Port type (1=BSS, 3=ad-hoc, 6=Host AP): [ 1 ]
MAC address:[ 00:80:c6:e3:1c:ff ]
TX rate (selection):[ 3 ]
TX rate (actual speed): [ 11 ]
Maximum data length:[ 2304 ]
RTS/CTS handshake threshold:[ 2347 ]
Create IBSS:[ Off ]
Antenna diversity (0=auto,1=pri,2=aux): [ ]
Microwave oven robustness:  [ On ]
Roaming mode(1=firm,3=disable): [ 1 ]
Access point density:   [ 1 ]
Power Management:   [ Off ]
Max sleep time: [ 100 ]
Enhanced Security mode: [ ]
Intersil Prism2-based card: [ 1 ]
Card info:  [ PRISM2 HWB3163 rev.B, Firmware 1.4.9 ]
Encryption: [ Off ]
Encryption algorithm:   [ Firmware WEP ]
Authentication type
(1=OpenSys, 2=Shared Key):  [ 1 ]
TX encryption key:  [ 1 ]
Encryption keys:[  ][  ][  ][  ]
$ sudo wicontrol -L
AP Information
ap[0]:  netname (SSID): [ greenmonster ]
BSSID:  [ 00:0c:41:68:70:f8 ]
Channel:[ 4 ]
Beacon Interval:[ 100 ]
Quality/Signal/Noise [signal]:  [ 12 / 22 / 10 ]
Capinfo:[ ESS PRIV ]
DataRate [Mbps]:[ 11.0 ]
AvailableRates [Mbps]:  [ 1.0 5.5 11.0 11.0 ]
ap[1]:  netname (SSID): [ linksys_9f ]
BSSID:  [ 00:13:10:e8:9f:44 ]
Channel:[ 6 ]
Beacon Interval:[ 100 ]
Quality/Signal/Noise [signal]:  [ 11 / 21 / 10 ]
Capinfo:[ ESS ]
DataRate [Mbps]:[ 11.0 ]
AvailableRates [Mbps]:  [ 1.0 2.0 5.5 11.0 18.0 24.0 36.0 54.0 ]
$
=

notice the:
 Current netname (SSID): [ greenmonster ]
 Desired netname (SSID): [ linksys_9f ]
but wicontrol -L proves that the other access point is still there.
this just happens when greenmonster's signal is stronger than
linksys_9f's.
sorry, but this is so frustrating to me, i can tell ifconfig to use a
certain nwid, channel, c; but as soon as it gets a better signal from
another access point, it's game over.

any help is _much_ appreciated.

lucas reddinger



Re: error on ifconfig, bssid

2006-01-29 Thread Lucas Reddinger
On 1/28/06, Damien Miller [EMAIL PROTECTED] wrote:
 setting a preferred bssid doesn't solve this at all, it just means that
 your attacker has to set her bssid (trivial) before their spoof your
 peer.

i guess you are right.

 use ipsec if you care about the traffic that does over such a link

ipsec protects the traffic, but it doesn't mean that the link won't
drop. is there any way to protect the actual radio link?

lucas



Re: error on ifconfig, bssid

2006-01-28 Thread Lucas Reddinger
hi again,

  according to an off-list e-mail, wi(4) doesn't currently support
  setting the bssid and the man page lied to me. is this the case,
  or was the error a result of something else?

 Yes wi doesn't support the relevant ioctls for setting bssid
 at this time, man page in -current has been updated to reflect this.

does wi(4) even support setting the channel?

$ sudo ifconfig wi0 chan 6
ifconfig: SIOCS80211CHANNEL: Invalid argument

the weird thing is that this seems to work:
$ sudo wicontrol wi0 -f 6

but after i run it, the interface will still choose an AP on a
different channel if the signal is stronger (both APs have the same
nwid).

so the question is: is wi(4) secure at all? if i choose to run openbsd
for a point-to-point wifi connection, i choose a specific nwid and
channel. but since i cannot select bssid nor even chan, the two nodes
just connect to the best looking signal under the given nwid. so some
wardriver comes along, sets his prism as hostap, sets his nwid the
same as mine, and sticks his antenna directly in front of one of my
node's antenna. the the point-to-point connection fails.

so i guess the two options are:
1. use different hardware that uses a differnet driver (poor solution)
2. fix wi(4)

can anyone comment on if it would be possible/hard to port features
from net/free?

thanks,
lucas



Re: error on ifconfig, bssid

2006-01-13 Thread Lucas Reddinger
 When you set the bssid, are you setting telling the card to connect to
 the AP with that bssid, or are you telling the card to use that bssid
 for itself when it's acting like an access point?

i wanted to connect to the access point that has the specified bssid.
i am using bss mode. i am not trying to do _anything_ with hostap.
this card is a client.

lucas reddinger



Re: error on ifconfig, bssid

2006-01-12 Thread Lucas Reddinger
 * Do you really want a bssid, or are you just looking for a network ID
 (nwid)?

in a previous e-mail to misc, i said:
there are three access points that i can pick up that have the same
ssid [nwid]. is there a way to specify the mac address [bssid]
of the access point i wish to use?

according to an off-list e-mail, wi(4) doesn't currently support
setting the bssid and the man page lied to me. is this the case,
or was the error a result of something else?

 * If you mean to set the bssid, are you sure your card is operating in
 BSS mode?

yes.

thanks,
lucas reddinger



error on ifconfig, bssid

2006-01-10 Thread Lucas Reddinger
hi misc,

the man page for ifconfig is very concise for bssid. why isn't this correct?

$ sudo ifconfig wi0 bssid 00:13:10:e8:9f:44
ifconfig: SIOCS80211BSSID: Invalid argument
$

thanks for your help. (more info follows)

lucas

--

$ uname -a
OpenBSD release.wingedleopard.net 3.8 GENERIC#138 i386
$ ifconfig wi0
wi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:80:c6:e3:1c:ff
description: wifi uplink
groups: egress
media: IEEE802.11 autoselect (DS11)
status: active
ieee80211: nwid linksys 2dBm (auto)
inet6 fe80::280:c6ff:fee3:1cff%wi0 prefixlen 64 scopeid 0x2
inet 192.168.1.75 netmask 0xff00 broadcast 255.255.255.0
$ dmesg
OpenBSD 3.8 (GENERIC) #138: Sat Sep 10 15:41:37 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium/MMX (GenuineIntel 586-class) 234 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX
cpu0: F00F bug workaround installed
real mem  = 100245504 (97896K)
avail mem = 84328448 (82352K)
using 1249 buffers containing 5115904 bytes (4996K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(63) BIOS, date 01/26/98, BIOS32 rev. 0 @ 0xfd850
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd6a0/0x960
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf60/128 (6 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x product 0x
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 SIS 5597/5598 Host rev 0x02
pcib0 at pci0 dev 1 function 0 SIS 85C503 System rev 0x01
pciide0 at pci0 dev 1 function 1 SIS 5513 EIDE rev 0xd0: 5597/5598:
DMA, channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: QUANTUM FIREBALL SE2.1A
wd0: 16-sector PIO, LBA, 2014MB, 4124736 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: HITACHI, CDR-8335, 0008 SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
ohci0 at pci0 dev 1 function 2 SIS 5597/5598 USB rev 0x10: irq 3,
version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: SIS OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
dc0 at pci0 dev 6 function 0 ADMtek AN983 rev 0x11: irq 12, address
00:04:5a:70:cd:18
acphy0 at dc0 phy 1: AC_UNKNOWN 10/100 PHY, rev. 0
wi0 at pci0 dev 10 function 0 National Datacomm NCP130 Rev A2 rev 0x01: irq 9
wi0: PRISM2 HWB3163 rev.B (0x8003), Firmware 0.3.0 (primary), 1.4.9
(station), address 00:80:c6:e3:1c:ff
vga1 at pci0 dev 13 function 0 S3 Trio64V2/DX rev 0x16
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ed6d netmask ff6d ttymask ffef
pctr: 586-class performance counters and user-level cycle counter enabled
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
$



wicontrol: specify both ssid and bssid as a client

2005-12-11 Thread Lucas Reddinger
hi misc,

there are three access points that i can pick up that have the same
ssid. is there a way to specify the mac address of the access point i
wish to use? i have only figured out how to specift the ssid
(wicontrol -n), but then it's a toss up which access point i get.

thanks much,

lucas reddinger

--

$ uname -a
OpenBSD release.wingedleopard.net 3.8 GENERIC#138 i386
$ sudo wicontrol -L
AP Information
ap[0]:  netname (SSID): [ linksys ]
BSSID:  [ 00:13:10:e8:9f:44 ]
Channel:[ 6 ]
Beacon Interval:[ 100 ]
Quality/Signal/Noise [signal]:  [ 24 / 31 / 7 ]
Capinfo:[ ESS ]
DataRate [Mbps]:[ 11.0 ]
AvailableRates [Mbps]:  [ 1.0 2.0 5.5 11.0 18.0 24.0 36.0 54.0 ]
ap[1]:  netname (SSID): [ linksys ]
BSSID:  [ 00:0f:66:a6:c6:63 ]
Channel:[ 6 ]
Beacon Interval:[ 100 ]
Quality/Signal/Noise [signal]:  [ 12 / 19 / 7 ]
Capinfo:[ ESS ]
DataRate [Mbps]:[ 11.0 ]
AvailableRates [Mbps]:  [ 1.0 2.0 5.5 11.0 18.0 24.0 36.0 54.0 ]
ap[2]:  netname (SSID): [ linksys ]
BSSID:  [ 00:0c:41:68:70:f8 ]
Channel:[ 6 ]
Beacon Interval:[ 100 ]
Quality/Signal/Noise [signal]:  [ 11 / 18 / 7 ]
Capinfo:[ ESS ]
DataRate [Mbps]:[ 11.0 ]
AvailableRates [Mbps]:  [ 1.0 5.5 11.0 11.0 ]
$ ifconfig wi0
wi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:80:c6:e3:1c:ff
groups: egress
media: IEEE802.11 autoselect (DS11)
status: active
ieee80211: nwid linksys 1dBm (auto)
inet6 fe80::280:c6ff:fee3:1cff%wi0 prefixlen 64 scopeid 0x2
inet 192.168.1.127 netmask 0xff00 broadcast 192.168.1.255
$ wicontrol
NIC serial number:  [ 3841 ]
Station name:   [ release ]
SSID for IBSS creation: [ IBSS ]
Current netname (SSID): [ linksys ]
Desired netname (SSID): [ linksys ]
Current BSSID:  [ 00:13:10:e8:9f:44 ]
Channel list:   [ 2047 ]
IBSS channel:   [ 1 ]
Current channel:[ 6 ]
Comms quality/signal/noise: [ 44 87 6 ]
Promiscuous mode:   [ Off ]
Process 802.11b Frame:  [ Off ]
Port type (1=BSS, 3=ad-hoc, 6=Host AP): [ 1 ]
MAC address:[ 00:80:c6:e3:1c:ff ]
TX rate (selection):[ 3 ]
TX rate (actual speed): [ 11 ]
Maximum data length:[ 2304 ]
RTS/CTS handshake threshold:[ 2347 ]
Create IBSS:[ Off ]
Antenna diversity (0=auto,1=pri,2=aux): [ ]
Microwave oven robustness:  [ On ]
Roaming mode(1=firm,3=disable): [ 1 ]
Access point density:   [ 1 ]
Power Management:   [ Off ]
Max sleep time: [ 100 ]
Enhanced Security mode: [ ]
Intersil Prism2-based card: [ 1 ]
Card info:  [ PRISM2 HWB3163 rev.B, Firmware 1.4.9 ]
Encryption: [ Off ]
Encryption algorithm:   [ Firmware WEP ]
Authentication type
(1=OpenSys, 2=Shared Key):  [ 1 ]
TX encryption key:  [ 1 ]
Encryption keys:[  ][  ][  ][  ]
$ dmesg
OpenBSD 3.8 (GENERIC) #138: Sat Sep 10 15:41:37 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium/MMX (GenuineIntel 586-class) 234 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX
cpu0: F00F bug workaround installed
real mem  = 100245504 (97896K)
avail mem = 84328448 (82352K)
using 1249 buffers containing 5115904 bytes (4996K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(63) BIOS, date 01/26/98, BIOS32 rev. 0 @ 0xfd850
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd6a0/0x960
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf60/128 (6 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x product 0x
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 SIS 5597/5598 Host rev 0x02
pcib0 at pci0 dev 1 function 0 SIS 85C503 System rev 0x01
pciide0 at pci0 dev 1 function 1 SIS 5513 EIDE rev 0xd0: 5597/5598:
DMA, channel 0 configured to compatibility