Re: OSPF: routing instabilities

2007-08-24 Thread Toni Mueller
Note to self:

On Wed, 22.08.2007 at 17:13:30 +0200, Toni Mueller [EMAIL PROTECTED] wrote:
 I have routing problems with OSPF. For reasons I don't understand right
 now, routing does not get adapted in the right way.

looking into the plus42.html file, it looks like I should be (or at
least start) running snapshots, right?


Best,
--Toni++



Re: OSPF: routing instabilities

2007-08-24 Thread Claudio Jeker
On Fri, Aug 24, 2007 at 10:46:00AM +0200, Toni Mueller wrote:
 Note to self:
 
 On Wed, 22.08.2007 at 17:13:30 +0200, Toni Mueller [EMAIL PROTECTED] wrote:
  I have routing problems with OSPF. For reasons I don't understand right
  now, routing does not get adapted in the right way.
 
 looking into the plus42.html file, it looks like I should be (or at
 least start) running snapshots, right?
 

-current is always the best release of OpenBSD. Running -current helps us
to identify issues early and solve them quickly.
So yes, run snapshots.

-- 
:wq Claudio



Re: OSPF: routing instabilities

2007-08-24 Thread Claudio Jeker
On Wed, Aug 22, 2007 at 05:13:30PM +0200, Toni Mueller wrote:
 Hi,
 
 I have routing problems with OSPF. For reasons I don't understand right
 now, routing does not get adapted in the right way.
 
 Given are some OSPF speakers in a network /24 and a few dumb(er) boxen
 which have subnets of said /24 behind them. There are static routes
 pointing from some of the OSPF speakers to the networks behind the dumb
 boxen, with these mentioned as the gateway. I have redistribute
 static in all ospfd.conf's. More often than not, the OSPF speakers
 announce those routes with themselves set as the destination, and
 sometimes even take away dynamic announcements from other OSPF
 speakers, and typically announce foreign networks (which are behind
 other routers) with themselves as the destination (in BGP speak: set
 nexthop self). Often, the routing table, as shown with netstat -rnf
 inet, shows the correct route for packets destined for networks which
 the machine advetised itself (erronously) as the gateway, but packets
 then don't go out the same interface to the real gateway. In OSPF, or
 with route get, the display can be really different and eg. not show
 any further hops to the destination. Such things happen every few days,
 randomly, and while the network is otherwise completely undisturbed
 (ie, nobody's configuring anything, and there are no other outages,
 too).  I'm replacing bogus dynamic routes with static routes, working
 towards the abolishment of OSPF, but this is quite undesirable for
 other reasons.
 
 Any ideas about how to debug (and solve) this are most welcome!
 
 All relevant are OpenBSD 4.1/i386 -stable, as of May 24th, and a Cisco.
 

All redistributed networks are originated with a nexthop of the ospf
router. That is how it works for the moment and changing that is not
simple as you need to know if the nexthop you intend to use is reachable
by the other ospf routers. Make sure you only announce static routes that
are behind the router that redistributes them.

-- 
:wq Claudio



Redundant OpenBSD routers crashing

2007-08-24 Thread Renaud Allard
Hello,

I have two machines running OpenBSD 4.2-beta (GENERIC) #338, but this
happened with 4.1-stable as well.
The machines have 8 gigabit interfaces and are only doing routing/nat
with pfsync and carp. It seems that after about 15 days, all memory is
consumed and no resources are available. The machine does not drop
into ddb, but it doesn't do any routing anymore and one cannot log in.
Worse is that it doesn't switch to slave config as carp still works.

The running processes are:
USER   PID %CPU %MEM   VSZ   RSS TT  STAT  STARTED   TIME COMMAND
root 1  0.0  0.0   488   344 ??  Is 9:48AM0:00.00 /sbin/init
root 30326  0.0  0.1   480   648 ??  Is 9:48AM0:00.00 syslogd: 
[priv] (syslogd)
_syslogd  8338  0.0  0.1   508   700 ??  S  9:48AM0:00.03 syslogd -a 
/var/empty/dev/log
root 13976  0.0  0.0   560   440 ??  Is 9:48AM0:00.00 pflogd: 
[priv] (pflogd)
_pflogd   6715  0.0  0.0   624   376 ??  S  9:48AM0:04.08 pflogd: 
[running] -s 116 -i pflog0 -f /var/log/pflog (pflogd)
root 23821  0.0  0.1   464   744 ??  Is 9:48AM0:00.00 ntpd: [priv] 
(ntpd)
_ntp 26144  0.0  0.1   444   728 ??  S  9:48AM0:00.01 ntpd: ntp 
engine (ntpd)
proxy 5028  0.0  0.1   400   796 ??  Ss 9:48AM0:00.02 
/usr/sbin/ftp-proxy -r -a 193.74.204.2 -m200 -D6
root  3452  0.0  0.1   464   692 ??  Is 9:48AM0:00.01 inetd
root 21364  0.0  0.2   720  1596 ??  Is 9:48AM0:00.14 /usr/sbin/sshd
root  9707  0.0  0.1   696   848 ??  Ss 9:48AM0:00.01 cron
root 22940  0.0  0.2  3212  2292 ??  Ss 9:50AM0:00.34 sshd: [EMAIL 
PROTECTED] (sshd)
root 29071  0.0  0.1   476   524 p0  Ss 9:50AM0:00.01 -ksh (ksh)
root  9580  0.0  0.0   428   220 p0  R+11:02AM0:00.00 ps -auxww
root   972  0.0  0.1   380   756 00  Is+9:48AM0:00.00 
/usr/libexec/getty std.9600 tty00
root 19971  0.0  0.1   320   764 C0  Is+9:48AM0:00.00 
/usr/libexec/getty Pc ttyC0
root  4736  0.0  0.1   364   748 C1  Is+9:48AM0:00.00 
/usr/libexec/getty Pc ttyC1
root 28778  0.0  0.1   244   748 C2  Is+9:48AM0:00.00 
/usr/libexec/getty Pc ttyC2
root  1788  0.0  0.1   408   752 C3  Is+9:48AM0:00.00 
/usr/libexec/getty Pc ttyC3
root 13802  0.0  0.1   456   756 C5  Is+9:48AM0:00.00 
/usr/libexec/getty Pc ttyC5

So nothing really overly complex here.
top show this for a machine with 7 days uptime:
20 processes:  19 idle, 1 on processor
CPU states:  0.0% user,  0.0% nice,  0.1% system,  9.8% interrupt, 90.1% idle
Memory: Real: 6816K/620M act/tot  Free: 380M  Swap: 0K/1024M used/tot

As you can see, virtual memory is pretty high and raises constantly.

The machine has only 5 carp interfaces and 5 real interfaces (4 sk and 1 msk) 
up.
Any input on what the problem could be would be great.
Feel free to ask me to make some tests.

Some sysctls are set over the default:
net.inet.ip.forwarding=1
ddb.panic=0
ddb.console=1
kern.maxclusters=65535
net.inet.ip.redirect=0 
net.inet6.ip6.redirect=0
net.inet.carp.preempt=1
net.inet.carp.log=1

# netstat -m
2123 mbufs in use:
2109 mbufs allocated to data
11 mbufs allocated to packet headers
3 mbufs allocated to socket names and addresses
2/146/65536 mbuf clusters in use (current/peak/max)
2176 Kbytes allocated to network (24% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines


dmesg is here:
OpenBSD 4.2-beta (GENERIC) #338: Fri Jul 27 03:00:11 MDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 3.20GHz (GenuineIntel 686-class) 3.21 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,CNXT-ID,CX16,xTPR
real mem  = 1072197632 (1022MB)
avail mem = 1029156864 (981MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/29/05, BIOS32 rev. 0 @ 0xf9680, SMBIOS 
rev. 2.2 @ 0xf0800 (39 entries)
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 3.0 @ 0xf/0xbde4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfbca0/272 (15 entries)
pcibios0: PCI Exclusive IRQs: 5 9 10 11 12
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82801FB LPC rev 0x00)
pcibios0: PCI bus #5 is the last bus
bios0: ROM list: 0xc/0xa800! 0xcc000/0x8000! 0xef000/0x1000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82915G/P/GV Host rev 0x0e
vga1 at pci0 dev 2 function 0 Intel 82915G/P/GV Video rev 0x0e: aperture at 
0xc000, size 0x1000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb0 at pci0 dev 28 function 0 Intel 82801FB PCIE rev 0x04
pci1 at ppb0 bus 1
mskc0 at pci1 dev 0 function 0 Marvell Yukon 88E8053 rev 0x15, 

Re: Problem with new IDE disk

2007-08-24 Thread Stéphane Chausson

Miod Vallat wrote, On 23/08/07 15:50:

# fdisk -i wd2
# disklabel -E wd2 (created 'a' partition)
# newfs wd2a


[...]

wd2a: id not found writing fsbn 488397104 (wd2 bn 8796581419375; cn  
547561868 tn 158 sn 1), retrying


It looks like you are indeed running a -CURRENT (or fairly recent) kernel,
but with an older userland.

Are you sure your fdisk, disklabel and newfs binaries are on par with the
kernel?

Miod



It may be trivial but I wonder where in the line you highlighted is the
clue that gave you the answer.



Re: OSPF: routing instabilities

2007-08-24 Thread Toni Mueller
Hi Claudio,

On Fri, 24.08.2007 at 11:05:04 +0200, Claudio Jeker [EMAIL PROTECTED] wrote:
 All redistributed networks are originated with a nexthop of the ospf
 router. That is how it works for the moment and changing that is not
 simple as you need to know if the nexthop you intend to use is reachable
 by the other ospf routers. Make sure you only announce static routes that
 are behind the router that redistributes them.

thank you very much for the explanation. This is then an
implementation weakness, and it seems to preclude the (intended) use
for the following scenario:


 * router A announcing a route via router B (which is not an OSPF
   speaker)


I'm not quite sure if your statement also goes for connected
networks. I'd like to be able to announce networks dynamically if they
go up, like this:


 network N1 --- C -+--s1-A+-- network N2
   |  |
   |  |
   +--s2-B+
   |  |
   |  |
   +--E---s3-D+


I'm in N2, reachability of N1 is what bothers me. Bandwidth (for OSPF
weight calculations) is like this: s1 = s2  s3.

A and B have a (static?) route to N1 via C, and if s1 or s2 are down, A
or B should stop announcing their route to C, respectively. So far, I
have made C announcing N1 to A or B (currently, only one of them is
active at any one time). The route via D (OSPF speaker) and E (dumb) is
also mostly available, but this is the least preferred route, as s3 is
only a thin backup line...  nevertheless, sometimes the route via D is
the one injected into the routing table, while fast s1 or s2 are
ignored.


I'll probably start using snapshots really soon now. ;-}



Best,
--Toni++



Re: Problem with new IDE disk

2007-08-24 Thread Miod Vallat

wd2a: id not found writing fsbn 488397104 (wd2 bn 8796581419375;
cn  547561868 tn 158 sn 1), retrying



It may be trivial but I wonder where in the line you highlighted is the
clue that gave you the answer.


During the 4.1-4.2 development cycle, the disklabel layout has been
modified to allow sector numbers of up to 48 bits, instead of 32 bits.
This has been done by ``packing'' existing fields of the structure,
to get room for the extended values.

Disklabel handling is done by both the kernel (which needs to read
the label for its own needs, and also provides ioctls for userland
tools to be able to read and write labels), and the userland system
administration tools such as disklabel(8).

Of course, for this to work correctly, all the involved components
need to agree on the disklabel layout.

In the OP's problem, the wd2a error message reports an unreachable
block number (bn value) with is a huge number, which fits in 48 bits,
but won't in 32. This is a sure sign that disklabel(8) wrote an
old-style label on the disk.

What exactly happened was:
- there was no label on the disk.
- disklabel -E starts by reading the label. Since there wasn't any,
  the kernel returns an empty label, flagged as being a ``new-style''
  48 bit layout.
- disklabel itself (because it is still the 4.1 binary) does not
  know about the new style format, and happily constructs a 32-bit
  style label. Unfortunately, this does not overwrite the ``new-style''
  flag.
- when disklabel asks the kernel to write the new label, the kernel
  does so and handles the label disklabel gave it as a ``new-style''
  format, not knowing that it comes from the old disklabel binary.

Editing the label with the old binary causes extra high-order bits
to appear where the new layout stores the higher part of a 48 bit
value on little-endian platforms; this causes the partition, which
disklabel wants to start at sector #0x.00xx (a 32 bit value), to
be handled by the kernel as #0x0800..00xx (a 48 bit value). And
of course, this sector number does not exist on the device, hence the
I/O errors.

Miod



Securing syslog in insecure mode (syslog -u )

2007-08-24 Thread Lars Noodén
Is there a recommended best practice for securing a remote log server?

Is it worth it to try to tunnel between the machines?

-Lars



Re: E-mail/calendar suite on OpenBSD (Kerio on OpenBSD)?

2007-08-24 Thread Terry
On Fri, Aug 24, 2007 at 03:14:17PM +0200, Nikolaus Hiebaum wrote:
 Hi,
 
 I am currently searching for an e-mail/calendar application which is
 capable of the following:
 - support clients running on Windows machines (Outlook)
 - support clients running on Linux/OpenBSD machines (Evolution)
 - provide Webmail incl. the calendar
snip
 My other question is whether you know of alternatives. Evolution looks
 very nice, but it doesn't have the webmail feature *with* the calendar.

I don't know how well it will interface with Outlook and Evolution but
have you looked at Horde? It's in the ports.

-- 
Terry
http://tyson.homeunix.org
http://www.UnixByte.com



Re: You have just received a virtual postcard from a friend !

2007-08-24 Thread Jonathan Lindsey
That was such a great postcard! /sarcasm
what's the deal with the spam huh?

-Jonathan Lindsey



-Original Message-
From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
Sent: Fri 8/24/2007 4:03 AM
To: misc@openbsd.org
Subject: You have just received a virtual postcard from a friend !

You have just received a virtual postcard from a friend !

.

You can pick up your postcard at the following web address:

.

http://209.202.88.24/~aa1travd/postcard.gif.exe

.

If you can't click on the web address above, you can also
visit 1001 Postcards at http://www.postcards.org/postcards/
and enter your pickup code, which is: d21-sea-sunset

.

(Your postcard will be available for 60 days.)

.

Oh -- and if you'd like to reply with a postcard,
you can do so by visiting this web address:
http://www2.postcards.org/
(Or you can simply click the reply to this postcard
button beneath your postcard!)

.

We hope you enjoy your postcard, and if you do,
please take a moment to send a few yourself!

.

Regards,
1001 Postcards
http://www.postcards.org/postcards/



to zaurus or not to zaurus

2007-08-24 Thread frantisek holop
hi there,

i am planning to go on a longer trip and i am considering buying
a sub-sub-sub notebookish thingie...

i know openbsd support zaurus quite well, and i have found a promising
sale of a C3200 for around 500 euros...

the things is, it's surprisingly hard (for me) to find any
details about these beasts like what can i use it for in
comparison with a notebook, how is battery life, and you know,
just how does it fare in everyday usage

i would be most grateful if the zaurus users around here
chimed in what's it to have one of these..

thanks.

-f
-- 
oxymoron: american english.



Re: E-mail/calendar suite on OpenBSD (Kerio on OpenBSD)?

2007-08-24 Thread Bret Lambert
On Fri, 2007-08-24 at 15:14 +0200, Nikolaus Hiebaum wrote:
 Hi,
 
 I am currently searching for an e-mail/calendar application which is
 capable of the following:
 - support clients running on Windows machines (Outlook)
 - support clients running on Linux/OpenBSD machines (Evolution)
 - provide Webmail incl. the calendar
 
 One software, which looks like it can do all of that, I found is Kerio
 Mail Server (http://www.kerio.com/kms_home.html). It appears to be capable
 of synchronizing between the various sessions.
 
 My question is whether anyone of you has successfully installed this on
 OpenBSD. It seems to be supported by Linux (Redhat and Suse) and MacOS.
 
 My other question is whether you know of alternatives. Evolution looks
 very nice, but it doesn't have the webmail feature *with* the calendar.
 
 I am really open to suggestions.
 

My personal suggestion? Ask your users why, other than the fact that
Outlook does it, do you need one application to handle both calendaring
and email?

If you can get your users to break out of that (rather idiotic, IMO)
paradigm, an entire world of easier-to-support possibilities opens up
for you.

Just so you don't think I'm being a cocky ass, I asked that question,
and was rewarded with because I'm the president and I say so. I'm now
in the process of rolling out Scalix.

- Bert

 Thanks,
 Nick



Re: E-mail/calendar suite on OpenBSD (Kerio on OpenBSD)?

2007-08-24 Thread Craig Skinner

Nikolaus Hiebaum wrote:

Hi,

I am currently searching for an e-mail/calendar application which is
capable of the following:
- support clients running on Windows machines (Outlook)
- support clients running on Linux/OpenBSD machines (Evolution)


maybe look at:

http://www.mozilla.org/projects/calendar/sunbird/
http://www.mozilla.org/projects/calendar/lightning/

Along with dovecot/courier  sendmail/postfix whatever.



Re: E-mail/calendar suite on OpenBSD (Kerio on OpenBSD)?

2007-08-24 Thread Lars Noodén
Nikolaus Hiebaum wrote:
 I am currently searching for an e-mail/calendar application which is
 capable of the following:
 - support clients running on Windows machines (Outlook)
 - support clients running on Linux/OpenBSD machines (Evolution)
 - provide Webmail incl. the calendar
 ...
 ... My other question is whether you know of alternatives...

I have a mild interest, but it's not really my activity.  Here are three
I've read about:

Zimbra has gotten good mentions:
  http://www.zimbra.com/
Apparently the source is available:
  http://www.zimbra.com/community/downloads.html

Scalix is another:
  http://www.scalix.com/community/downloads/

So is OpenXchange:
  http://www.open-xchange.com/

There are a handful of others, but I can't recall them.  If you try any
out or decide to deploy any it'd would be very useful to hear how it went.

Standards based modules can probably be put together to create the
illusion of a monolith.  I question the monolithic approach to such
activities.

Anyway, using Outlook will be problems.  It doesn't work well with MS
Exchange, but people have been browbeat into not saying anything about
it.  People will just get used to a lower level of service.  Using it
in conjunction with another service will likely cause them to take it
out on you and the other technology, so best to at least make plans to
phase it out so that you have the option.


-Lars



Re: Securing syslog in insecure mode (syslog -u )

2007-08-24 Thread Darren Spruell
On 8/24/07, Lars Noodin [EMAIL PROTECTED] wrote:
 Is there a recommended best practice for securing a remote log server?

 Is it worth it to try to tunnel between the machines?

Would be good to know what is meant by securing, as in what exact
sense of security are you trying to address?

DS



Timeout in ichiic on boot

2007-08-24 Thread Jon Steel
Hi

When turning on a computer I once get several errors like the following: 

ichiic0: exec: op 1, addr 0x49, cmdlen 1, len 0, flags 0x08: timeout,
status 0x41BUSY,INUSE

This is a box running OpenBSD 4.1 with multi-processors enabled.
According to my dmesg below, I believe the device that is causing this
timeout is the PCI_PRODUCT_INTEL_82801GB_SMB. The person who started up
the computer does not remember, but he may have plugged in a usb
keyboard during the boot. Is it reasonable that this could have caused
the problem? When trying to duplicate the problem in this manner, I did
manage to lock the computer up once when the USB drivers were loading.

My only other guess is that its a problem caused by the wbwdg driver
that I wrote for the watchdog portion of the W83627HF chip. But Im lead
to believe its not this, because the error occurs well before that
driver is loaded, and it does load successfully.

I have included both a normal dmesg, and the dmesg upon a crash. The
only difference other than the error message as I can see is that the
lm0 as isa0 is not detected after the error, and so the lm1 attached to
the pci is not detached. This would make sense because the winbond chip
is busy and so when the isa driver scans for devices it does not find
the winbond chip.

I also noticed in lm_isa.c the following comment, Most devices
supported by this driver can attach to iic(4) as well.  However, we
prefer to attach them to isa(4) since that causes less overhead and is
more reliable. Could this problem be caused by a 'reliability' issue,
whatever that would be? If not, does anybody have any idea what the
problem is here?

Thank You

Jonathan Steel


*FAILED BOOT*

OpenBSD 4.1 (GENERIC.esentire) #0: Wed Aug 15 20:55:55 UTC 2007
   
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.esentire
cpu0: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz (GenuineIntel 686-class)
2.40 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
real mem  = 2145869824 (2095576K)
avail mem = 1950765056 (1905044K)
using 4278 buffers containing 107417600 bytes (104900K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 02/05/07, BIOS32 rev. 0 @ 0xfd470,
SMBIOS
rev. 2.51 @ 0x7feea000 (31 entries)
bios0: Supermicro PDSMi
pcibios0 at bios0: rev 2.1 @ 0xfd470/0xb90
pcibios0: PCI BIOS has 20 Interrupt Routing table entries
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82801GB LPC rev 0x00)
pcibios0: PCI bus #15 is the last bus
bios0: ROM list: 0xc/0xb000 0xcb000/0x1000 0xcc000/0x1000 0xcd000/0x1000
acpi at mainbus0 not configured
ipmi at mainbus0 not configured
mainbus0: Intel MP Specification (Version 1.4)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 266 MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz (GenuineIntel 686-class)
2.40 GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
mainbus0: bus 0 is type PCI
mainbus0: bus 9 is type PCI
mainbus0: bus 10 is type PCI
mainbus0: bus 13 is type PCI
mainbus0: bus 14 is type PCI
mainbus0: bus 15 is type PCI
mainbus0: bus 16 is type ISA
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic1 at mainbus0: apid 3 pa 0xfec1, version 20, 24 pins
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel E7230 MCH rev 0xc0
ppb0 at pci0 dev 1 function 0 Intel E7230 PCIE rev 0xc0
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01
pci2 at ppb1 bus 9
ppb2 at pci2 dev 0 function 0 Intel PCIE-PCIE rev 0x09
pci3 at ppb2 bus 10
em0 at pci3 dev 1 function 0 Intel PRO/1000GT (82541GI) rev 0x05: apic
3 int 0 (irq 11), address 00:0e:0c:c6:49:f2
Intel IOxAPIC rev 0x09 at pci2 dev 0 function 1 not configured
ppb3 at pci0 dev 28 function 4 Intel 82801G PCIE rev 0x01
pci4 at ppb3 bus 13
em1 at pci4 dev 0 function 0 Intel PRO/1000MT (82573E) rev 0x03: apic
2 int 16 (irq 11), address 00:30:48:8d:cd:02
ppb4 at pci0 dev 28 function 5 Intel 82801G PCIE rev 0x01
pci5 at ppb4 bus 14
em2 at pci5 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic
2 int 17 (irq 11), address 00:30:48:8d:cd:03
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 2 int
23 (irq 10)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x01: apic 2 int
19 (irq 11)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x01: apic 2 int
18 (irq 5)
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 

saving records of pf state creation/deletion

2007-08-24 Thread Chris Cappuccio
is there a tool out there that saves records off pfsync for later analysis?

(my particular case is to figure out who was spamming behind nat, but
i'm sure there are many other uses for something like this)



Re: Securing syslog in insecure mode (syslog -u )

2007-08-24 Thread Jacob Yocom-Piatt

Darren Spruell wrote:

On 8/24/07, Lars Noodin [EMAIL PROTECTED] wrote:
  

Is there a recommended best practice for securing a remote log server?

Is it worth it to try to tunnel between the machines?



Would be good to know what is meant by securing, as in what exact
sense of security are you trying to address?

  


i expect he means push syslog messages to the log server with 
encryption, e.g. tunnel through ssh, etc.



DS




Re: saving records of pf state creation/deletion

2007-08-24 Thread Jason Dixon

On Aug 24, 2007, at 5:13 PM, Chris Cappuccio wrote:

is there a tool out there that saves records off pfsync for later  
analysis?


(my particular case is to figure out who was spamming behind nat, but
i'm sure there are many other uses for something like this)


You probably want pfflowd (http://www.mindrot.org/projects/pfflowd/)  
which converts pfsync stateful connections into NetFlow datagrams.


---
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net



Soekris 4801-60 max 2mbit

2007-08-24 Thread Attilla de Groot

Hi,


I have a Soekris 4801-60 with a standard OpenBSD 4.1 install (generic  
kernel).


I'm using it as a firewall/router with some nat. The problem is I'm  
not able to get more then 2mbit throughput. Also on the soekris  
itself with wget for example. I've tried to disable qos, disable pf,  
reboot etc. nothing of the solved the problem. And I'm wondering what  
I'm doing wrong.


I don't think the load has anything to do with it:

load averages:  0.18,  0.11,   
0.09 
  00:15:41

24 processes:  23 idle, 1 on processor
CPU states:  0.2% user,  0.0% nice,  0.3% system,  0.2% interrupt,  
99.4% idle

Memory: Real: 32M/64M act/tot  Free: 182M  Swap: 0K/0K used/tot

I've also attached my pf configuration, but since I also disabled pf  
completely the problem isn't there.



Thanks in advance.


Best Regards,
Attilla





pf.conf
Description: Binary data


PGP.sig
Description: This is a digitally signed message part


Re: Securing syslog in insecure mode (syslog -u )

2007-08-24 Thread Joachim Schipper
On Fri, Aug 24, 2007 at 04:31:20PM -0500, Jacob Yocom-Piatt wrote:
 Darren Spruell wrote:
 On 8/24/07, Lars Noodin [EMAIL PROTECTED] wrote:
 Is there a recommended best practice for securing a remote log server?

 Is it worth it to try to tunnel between the machines?

 Would be good to know what is meant by securing, as in what exact
 sense of security are you trying to address?

 i expect he means push syslog messages to the log server with encryption, 
 e.g. tunnel through ssh, etc.

That is possible, but he might also want his log messages to end up on
the server in a guaranteed way, or somesuch. (This, of course, is hugely
problematic.)

Joachim

-- 
PotD: x11/flwm - fast-light window manager



Re: Securing syslog in insecure mode (syslog -u )

2007-08-24 Thread Martin Schröder
2007/8/24, Jacob Yocom-Piatt [EMAIL PROTECTED]:
 i expect he means push syslog messages to the log server with
 encryption, e.g. tunnel through ssh, etc.

sysutils/syslog-ng can use SSL/TLS.

Btw: Anybody working on updating the syslog-ng port to v2.x?

Best
   Martin



disks not recognized as sata2

2007-08-24 Thread Marcos Laufer
Hello list,

I installed the latest snapshot on an Intel D945GCcr mobo
which supports SATA-300 (sata2) , plugged in some hard
disks, all of them Western Digital WD3200AAKS,
wich according to WD website those work at 300 mb/s.
(http://www.westerndigital.com/sp/products/products.asp?driveid=299language
=en)
but OpenBSD doesn't seem to recognize them with the
AHCI driver , and they are recognized as UDMA5 instead.
I'd like to enable full speed on this disks, any tips?

Here i paste a full dmesg :

OpenBSD 4.2 (GENERIC) #373: Tue Aug 21 10:36:43 MDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
RTC BIOS diagnostic error 80clock_battery
cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz (GenuineIntel 686-class) 3 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU
SH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CNXT-ID
,CX16,xTPR
real mem  = 2136190976 (2037MB)
avail mem = 2057965568 (1962MB)
RTC BIOS diagnostic error 80clock_battery
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/12/06, SMBIOS rev. 2.4 @ 0xe44b0
(29 entries)
bios0: vendor Intel Corp. version CR94510J.86A.0031.2006.1212.1648 date
12/12/2006
bios0: Intel Corporation D945GCCR
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown, estimated 0:00 hours
apm0: flags 30102 dobusy 0 doidle 1
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xc/0xae00!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GP rev 0x02: rng active,
800Kb/sec
vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02: aperture at
0x8000, size 0x1000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x01
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01
pci3 at ppb2 bus 3
ppb3 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xe1
pci4 at ppb3 bus 4
fxp0 at pci4 dev 8 function 0 Intel PRO/100 VM rev 0x01, i82562: irq 9,
address 00:19:d1:52:40:58
ukphy0 at fxp0 phy 1: Generic IEEE 802.3u media interface, rev. 0: OUI
0x00aa00, model 0x0031
ichpcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01: PM disabled
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x01: DMA, channel
0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, CD-ROM GCR-8523B, 1.01 SCSI0
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 31 function 2 Intel 82801GB SATA rev 0x01: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using irq 11 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: WDC WD3200AAKS-00SBA0
wd0: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd1 at pciide1 channel 0 drive 1: WDC WD3200AAKS-00SBA0
wd1: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 5
wd2 at pciide1 channel 1 drive 0: WDC WD3200AAKS-00SBA0
wd2: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd3 at pciide1 channel 1 drive 1: WDC WD3200AAKS-00SBA0
wd3: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd2(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5
wd3(pciide1:1:1): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x01: irq 11
iic0 at ichiic0
isa0 at ichpcib0
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
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask edfd netmask effd ttymask 
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
dkcsum: wd2 matches BIOS drive 0x82
dkcsum: wd3 matches BIOS drive 0x83
root on wd0a swap on wd0b dump on wd0b

Regards,
Marcos



net-snmp with AES supported?

2007-08-24 Thread Aaron
I have been trying to get my snmp v3 users set up and to a certain 
degree I'm having luck, but unfortunately only with DES privacy.  I have 
been following the SNMP documentation and not sure if i'm doing 
something wrong or if the openbsd version of snmp doesn't do aes.  Here 
is my command for creating a user:


net-snmp-config --create-snmpv3-user -ro -A mypassword -X 
myotherpassword -x DES -a SHA newnewuser


which comes back with no errors and the resultant message:
adding the following line to /var/net-snmp/snmpd.conf:
  createUser newnewuser mypassword SHA myotherpassword DES
adding the following line to /usr/local/share/snmp/snmpd.conf:
  rouser newnewuser

I verified that the two files were altered per the results:
# cat /var/net-snmp/snmpd.conf
createUser newnewuser mypassword SHA myotherpassword DES

#cat /usr/local/share/snmp/snmpd.conf
rouser newnewuser

I start snmpd, everything seems ok, but when i try to get any 
information as below, i always get the same error:
snmpwalk -v 3  -l authPriv -u newnewuser -A mypassword -X 
myotherpassword -a SHA -x AES localhost IF-MIB::ifDescr.3

Invalid privacy protocol specified after -x flag: AES

if i leave out the -x flag:
snmpwalk -v 3  -l authPriv -u newnewuser -A mypassword -X 
myotherpassword -a SHA  localhost IF-MIB::ifDescr.3

snmpwalk: Unknown user name

I then checked my /var/net-snmp/snmpd.conf: and 
/usr/local/share/snmp/snmpd.conf: files and was surprised to find that 
in the /var/net-snmp/snmpd.conf file, any evidence that the above create 
user line had succeeded.:

# snmpd
# cat /var/net-snmp/snmpd.conf
#
# net-snmp (or ucd-snmp) persistent data file.
#

# STOP STOP STOP STOP STOP STOP STOP STOP STOP
#
#   DO NOT EDIT THIS FILE 
#
# STOP STOP STOP STOP STOP STOP STOP STOP STOP

#
# DO NOT STORE CONFIGURATION ENTRIES HERE.
# Please save normal configuration tokens for snmpd in 
SNMPCONFPATH/snmpd.conf.

# Only createUser tokens should be placed here by snmpd administrators.
# (Did I mention: do not edit this file?)
#







engineBoots 1
oldEngineID 0x87e5805070ab640f62cf46

but the user was successfully created in the 
/usr/local/share/snmp/snmpd.conf:

# cat /usr/local/share/snmp/snmpd.conf
rouser  newnewuser


net-snmp-config --create-snmpv3-user -ro -a newpassword -x 
newotherpassword -A SHA newuser
works just fine and I can use it after starting snmpd. 

I noticed that on the help page for net-snmp-config that is doesn't list 
AES (yes i know that should be a huge clue), but I thought it might just 
be an oversight:

SNMP Setup commands:

   --create-snmpv3-user [-ro] [-a authpass] [-x privpass] [-X DES]
[-A MD5|SHA] [username]


It seems that i'm sure openbsd's implementation doesn't support AES, so 
i guess my actual question is why and will it ever? Another question 
along the same line, why doesn't it error out when creating the user if 
AES isn't supported?  I thought (not an enc. specialist so please don't 
flame me too harshly) AES was far better than DES so openbsd would have 
it for sure.


one last question about this during all of this time, successful and 
failed creation of users and snmpwalking, my /var/log/snmpd file stayed 
empty even when starting is via snmpd -Lsd -A.  Is that common?


Thanks in advance,

Aaron



Compiling Release Patches

2007-08-24 Thread Clint Pachl

Can one reliably compile 4.0 release patches on a 4.1 release system?



Re: Compiling Release Patches

2007-08-24 Thread djgoku
On 8/24/07, Clint Pachl [EMAIL PROTECTED] wrote:
 Can one reliably compile 4.0 release patches on a 4.1 release system?

Is there some patches that aren't in 4.1? If so that seem really weird
why it wouldn't be. Can you give an example?



panic mclpl

2007-08-24 Thread Bryan Irvine
I've got an older 3.7 machine that keeps panicing.  I know 3.7 is old
an out of support, this server will be upgraded in about 2 weeks, but
needs to run until then.

The errors seem to alternate between :pool_prime_page: vmmpepl: unaligned page
and:pool_get(mclpl): free list modified: magic=deaf3434; page
0xda241000; item addr 0xda241800

I've tried swapping RAM, any other ideas?

dmesg follows:
OpenBSD 3.7 (GENERIC) #50: Sun Mar 20 00:01:57 MST 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz (GenuineIntel 686-class) 3.02 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,PNI,MWAIT,CNXT-ID
real mem  = 2147000320 (2096680K)
avail mem = 1953214464 (1907436K)
using 4278 buffers containing 107454464 bytes (104936K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(c3) BIOS, date 01/31/05, BIOS32 rev. 0 @ 0xfb2e0
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev 2.1 @ 0xf/0xdc84
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdbb0/192 (10 entries)
pcibios0: PCI Exclusive IRQs: 3 4 5 7 9 10 11
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371SB ISA rev 0x00)
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc/0xf800 0xd/0x4000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82865G/PE/P CPU-I/0-1 rev 0x02
ppb0 at pci0 dev 1 function 0 Intel 82865G/PE/P CPU-AGP rev 0x02
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 Nvidia GeForce FX 5200 rev 0xa1
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xc2
pci2 at ppb1 bus 2
xl0 at pci2 dev 0 function 0 3Com 3c905C 100Base-TX rev 0x78: irq
10, address 00:04:75:c3:88:e6
exphy0 at xl0 phy 24: 3Com internal media interface
pciide0 at pci2 dev 1 function 0 CMD Technology AAR-1210SA rev 0x02: DMA
pciide0: using irq 5 for native-PCI interrupt
pciide0: port 0: device present, speed: 1.5Gb/s
wd0 at pciide0 channel 0 drive 0: WDC WD2500SD-01KCC0
wd0: 16-sector PIO, LBA48, 238475MB, 488397168 sectors
wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 6
pciide0: port 1: device present, speed: 1.5Gb/s
wd1 at pciide0 channel 1 drive 0: WDC WD2500SD-01KCC0
wd1: 16-sector PIO, LBA48, 238475MB, 488397168 sectors
wd1(pciide0:1:0): using BIOS timings, Ultra-DMA mode 6
VIA VT6306 FireWire rev 0x46 at pci2 dev 2 function 0 not configured
ahc1 at pci2 dev 3 function 0 Adaptec AHA-3960D U160 rev 0x01: irq 11
scsibus0 at ahc1: 16 targets
st0 at scsibus0 targ 6 lun 0: SEAGATE, DAT DAT72-052, A060 SCSI3
1/sequential removable
st0: density code 0x47, 512-byte blocks, write-enabled
ahc2 at pci2 dev 3 function 1 Adaptec AHA-3960D U160 rev 0x01: irq 10
scsibus1 at ahc2: 16 targets
xl1 at pci2 dev 4 function 0 3Com 3c905C 100Base-TX rev 0x78: irq
10, address 00:04:75:ab:bf:a6
exphy1 at xl1 phy 24: 3Com internal media interface
re0 at pci2 dev 9 function 0 Realtek 8169 rev 0x10: irq 7, address
00:0f:ea:fd:51:b3
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 0
ichpcib0 at pci0 dev 31 function 0 Intel 82801EB/ER LPC rev 0x02
pciide1 at pci0 dev 31 function 1 Intel 82801EB/ER IDE rev 0x02:
DMA, channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide1 channel 0 drive 0
scsibus2 at atapiscsi0: 2 targets
cd0 at scsibus2 targ 0 lun 0: HL-DT-ST, DVDRAM GSA-4163B, A104 SCSI0
5/cdrom removable
cd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide1: channel 1 disabled (no drives)
Intel 82801EB/ER SMBus rev 0x02 at pci0 dev 31 function 3 not configured
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ef7d netmask effd ttymask 
pctr: user-level cycle counter enabled
dkcsum: wd0 matched BIOS disk 80
dkcsum: wd1 matched BIOS disk 81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
WARNING: / was not properly unmounted



Re: Compiling Release Patches

2007-08-24 Thread Stephan Andre'
On Friday 24 August 2007 20:43:02 Clint Pachl wrote:
 Can one reliably compile 4.0 release patches on a 4.1 release system?

There is no need.  A 4.1-release system contains all the fixes that
lead up to the release of 4.1.  In other words, this isn't Windows. ;-)
So all the fixes from all the previous versions of OpenBSD are
there.

Stuff like this can be found in the FAQ.  It makes for *excellent* 
reading.

--STeve Andre'



Re: Soekris 4801-60 max 2mbit

2007-08-24 Thread Adriaan
On 8/25/07, Attilla de Groot [EMAIL PROTECTED] wrote:
 Hi,


 I have a Soekris 4801-60 with a standard OpenBSD 4.1 install (generic
 kernel).

 I'm using it as a firewall/router with some nat. The problem is I'm
 not able to get more then 2mbit throughput. Also on the soekris
 itself with wget for example. I've tried to disable qos, disable pf,
 reboot etc. nothing of the solved the problem. And I'm wondering what
 I'm doing wrong.

 I don't think the load has anything to do with it:

 load averages:  0.18,  0.11,
 0.09
00:15:41
 24 processes:  23 idle, 1 on processor
 CPU states:  0.2% user,  0.0% nice,  0.3% system,  0.2% interrupt,
 99.4% idle
 Memory: Real: 32M/64M act/tot  Free: 182M  Swap: 0K/0K used/tot

 I've also attached my pf configuration, but since I also disabled pf
 completely the problem isn't there.


Check the output of 'ifconfig' for the correct speed and duplex setting.

During a ftp transfer check the output of 'systat vmstat' for a live
view of the interrupt rate of the NICs. and other resources.

Review the output of 'netstat -s' for possible errors/retransmissions etc.

=Adriaan=



92 Apt/32 Retails Units for Sale in OKC

2007-08-24 Thread CRRC Listings
32 Apartment/32 Retail Units for sale in OKC, OK

Mike Buhl
CRRC
2425 Wilcox Drive

Norman, OK 73069
(405) 360-5966

[EMAIL PROTECTED]




To be removed send a blank email to [EMAIL PROTECTED] 

In order to ensure removal please send the email from the address that received 
our email.

[demime 1.01d removed an attachment of type image/gif which had a name of 
lc.jpg]



Re: disks not recognized as sata2

2007-08-24 Thread David Gwynne

On 25/08/2007, at 8:56 AM, Marcos Laufer wrote:


Hello list,

I installed the latest snapshot on an Intel D945GCcr mobo
which supports SATA-300 (sata2) , plugged in some hard
disks, all of them Western Digital WD3200AAKS,
wich according to WD website those work at 300 mb/s.
(http://www.westerndigital.com/sp/products/products.asp? 
driveid=299language

=en)
but OpenBSD doesn't seem to recognize them with the
AHCI driver , and they are recognized as UDMA5 instead.
I'd like to enable full speed on this disks, any tips?


OpenBSD will use the interface that is presented by the hardware/bios  
configuration. Even if your SATA controller is AHCI capable, it wont  
be used in OpenBSD unless the BIOS configures it to be in the AHCI mode.


As for the speed difference, I don't think which mode the controller  
is in affects the speed it talks to the disks at.


dlg



Here i paste a full dmesg :

OpenBSD 4.2 (GENERIC) #373: Tue Aug 21 10:36:43 MDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
RTC BIOS diagnostic error 80clock_battery
cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz (GenuineIntel 686-class)  
3 GHz

cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE3 
6,CFLU
SH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS- 
CPL,EST,TM2,CNXT-ID

,CX16,xTPR
real mem  = 2136190976 (2037MB)
avail mem = 2057965568 (1962MB)
RTC BIOS diagnostic error 80clock_battery
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/12/06, SMBIOS rev. 2.4 @  
0xe44b0

(29 entries)
bios0: vendor Intel Corp. version CR94510J.86A. 
0031.2006.1212.1648 date

12/12/2006
bios0: Intel Corporation D945GCCR
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown, estimated 0:00 hours
apm0: flags 30102 dobusy 0 doidle 1
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xc/0xae00!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GP rev 0x02: rng active,
800Kb/sec
vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02:  
aperture at

0x8000, size 0x1000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x01
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01
pci3 at ppb2 bus 3
ppb3 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xe1
pci4 at ppb3 bus 4
fxp0 at pci4 dev 8 function 0 Intel PRO/100 VM rev 0x01, i82562:  
irq 9,

address 00:19:d1:52:40:58
ukphy0 at fxp0 phy 1: Generic IEEE 802.3u media interface, rev. 0: OUI
0x00aa00, model 0x0031
ichpcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01: PM  
disabled
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x01:  
DMA, channel

0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, CD-ROM GCR-8523B, 1.01 SCSI0
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 31 function 2 Intel 82801GB SATA rev 0x01: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using irq 11 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: WDC WD3200AAKS-00SBA0
wd0: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd1 at pciide1 channel 0 drive 1: WDC WD3200AAKS-00SBA0
wd1: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 5
wd2 at pciide1 channel 1 drive 0: WDC WD3200AAKS-00SBA0
wd2: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd3 at pciide1 channel 1 drive 1: WDC WD3200AAKS-00SBA0
wd3: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd2(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5
wd3(pciide1:1:1): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x01:  
irq 11

iic0 at ichiic0
isa0 at ichpcib0
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
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask edfd netmask effd ttymask 
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
dkcsum: wd2 matches BIOS drive 0x82
dkcsum: wd3 matches BIOS drive 0x83
root on wd0a swap on wd0b dump on wd0b

Regards,
Marcos




Re: to zaurus or not to zaurus

2007-08-24 Thread Nick Guenther
On 8/24/07, frantisek holop [EMAIL PROTECTED] wrote:
 hi there,

 i am planning to go on a longer trip and i am considering buying
 a sub-sub-sub notebookish thingie...

 i know openbsd support zaurus quite well, and i have found a promising
 sale of a C3200 for around 500 euros...

 the things is, it's surprisingly hard (for me) to find any
 details about these beasts like what can i use it for in
 comparison with a notebook, how is battery life, and you know,
 just how does it fare in everyday usage

For a trip? Just don't.
The battery life is 7 hours (12 if you pull magic hax of making the
screen turn off when not in use and compulsively put it in standby
most of the time) and a lot less with a wifi card in.
What's your usage like? It's too slow to run anything graphical
reasonably, though you can if you absolutely have to. I mostly keep it
in console with screen running a bunch of different windows with mg
running, for various note takings.

It doesn't work for every day usage. I'm getting used to it but it's
still too flakey to be trusted. I'm slowly hacking in things that make
it more friendly, but it's very slow going. Some day I'll collect them
all up and publish them, and maybe someday there will be libraries of
tips and scripts from zaurus users the world over, but we aren't there
yet.

It's very much a hacker toy, despite the personal mobile tool still
scrawled along the right edge of the screen.

-Nick



Re: Compiling Release Patches

2007-08-24 Thread Clint Pachl

djgoku wrote:

On 8/24/07, Clint Pachl [EMAIL PROTECTED] wrote:
  

Can one reliably compile 4.0 release patches on a 4.1 release system?



Is there some patches that aren't in 4.1? If so that seem really weird
why it wouldn't be. Can you give an example?
  


In my network I have 4.0 and 4.1 systems. I'm upgrading the 4.0 to 4.1, 
but in the mean time, if a patch is released, can I use my 4.1 build 
system to build a 4.0 patch using 4.0 sources?


FYI, I change DESTDIR in order to capture only the updated binaries. 
Then I make a binary patch with what was installed in $DESTDIR.


The reason for this is that I can use a single build machine running the 
current release, and two source trees, current and previous.


Hopefully that explains my intentions more succinctly.

-pachl