four port ethernet cards for OpenBSD

2008-07-31 Thread John N. Brahy
What four port Ethernet card is works well for OpenBSD?

Does anyone have experience with any of them?



4.3 mips version?

2008-04-17 Thread John N. Brahy
I just got my 4.3 cds and since there isn't a 4.3 mips version on it,
I've been searching around on the ftp sites to find a version. I've seen
4.3 out there on a few servers but I don't see mips in any of them. Is
there still going to be a 4.3 mips release? Any idea when?



SGI install -current: autoboot failed

2008-04-17 Thread John N. Brahy
Hi,

I seemed to be successful installing OpenBSD -current for SGI. When I
reboot the system after the install I get this error:

Boot file not found on device:
pci(0)scsi(0)disk(1)rdisk(0)partition(8)/sash
Autoboot failed
Unable to continue; press enter to return to the menu:


I think I'm gun shy from my mac installs but there is a p partition on
the drive that takes up the first 3515 blocks of the drive and I'm
thinking I have to leave that there. Please correct me if I'm wrong.
Otherwise I did the normal install...

Anyone have any suggestions on what do to right?

Thanks,

John



Re: searching packages? pkg_grep?

2007-08-09 Thread John N. Brahy
 I use alias pkg_search=echo ls | ftp -a \$PKG_PATH | sed 's/.*\ //g'
| grep -i.

That's exactly what I was looking for.

Thank you!



pfsync doesn't get peer address from /etc/hostname.pfsync0

2007-07-10 Thread John N. Brahy
I have two firewalls that I'm trying to sync. When one boots up the
interface shows up correctly, both are running OpenBSD 4.1 and have been
upgraded from previous versions of OpenBSD.



Server A

$ ifconfig pfsync0

pfsync0: flags=0 mtu 1460

groups: carp pfsync



Server A after sh /etc/netstart pfsync0

$ ifconfig pfsync0

pfsync0: flags=41UP,RUNNING mtu 1460

pfsync: syncdev: em0 syncpeer: 64.93.69.53 maxupd: 128

groups: carp pfsync



Server B after boot

$ ifconfig pfsync0

pfsync0: flags=41UP,RUNNING mtu 1460

pfsync: syncdev: rl0 syncpeer: 64.93.69.36 maxupd: 128

groups: carp pfsync



Server A /etc/hostname.pfsync0

$ cat /etc/hostname.pfsync0

up syncpeer magic.ad2.com syncdev em0



Server B /etc/hostname.pfsync0

$ cat /etc/hostname.pfsync0

up syncpeer canada.ad2.com syncdev rl0



Server A dmesg

OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007

[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC

cpu0: Intel(R) Xeon(TM) 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,
CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,CNXT-ID
,CX16,xTPR

real mem  = 2146795520 (2096480K)

avail mem = 1952096256 (1906344K)

using 4278 buffers containing 107462656 bytes (104944K) of memory

mainbus0 (root)

bios0 at mainbus0: AT/286+ BIOS, date 01/09/06, BIOS32 rev. 0 @ 0xffe90,
SMBIOS rev. 2.3 @ 0xf9920 (87 entries)

bios0: Dell Computer Corporation PowerEdge 1850

pcibios0 at bios0: rev 2.1 @ 0xf/0x1

pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfb140/272 (15 entries)

pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82801EB/ER LPC rev
0x00)

pcibios0: PCI bus #9 is the last bus

bios0: ROM list: 0xc/0xb000! 0xcb000/0x1000 0xcc000/0x1000
0xcd000/0x2200 0xec000/0x4000!

acpi at mainbus0 not configured

ipmi0 at mainbus0: version 1.5 interface KCS iobase 0xca8/8 spacing 4

cpu0 at mainbus0

pci0 at mainbus0 bus 0: configuration mode 1 (no bios)

pchb0 at pci0 dev 0 function 0 Intel E7520 MCH rev 0x09

ppb0 at pci0 dev 2 function 0 Intel MCH PCIE rev 0x09

pci1 at ppb0 bus 1

ppb1 at pci1 dev 0 function 0 Intel IOP332 PCIE-PCIX rev 0x06

pci2 at ppb1 bus 2

ami0 at pci2 dev 14 function 0 Dell PERC 4e/Di rev 0x06: irq 7

ami0: Dell 16c, 32b, FW 521X, BIOS vH430, 256MB RAM

ami0: 1 channels, 0 FC loops, 1 logical drives

scsibus0 at ami0: 40 targets

sd0 at scsibus0 targ 0 lun 0: AMI, Host drive #00,  SCSI2 0/direct
fixed

sd0: 139900MB, 139900 cyl, 64 head, 32 sec, 512 bytes/sec, 286515200 sec
total

scsibus1 at ami0: 16 targets

safte0 at scsibus1 targ 6 lun 0: PE/PV, 1x2 SCSI BP, 1.0 SCSI2
3/processor fixed

ppb2 at pci1 dev 0 function 2 Intel IOP332 PCIE-PCIX rev 0x06

pci3 at ppb2 bus 3

san0 at pci3 dev 11 function 0 Sangoma A10x rev 0x00 irq 3

ppb3 at pci0 dev 4 function 0 Intel MCH PCIE rev 0x09

pci4 at ppb3 bus 4

ppb4 at pci0 dev 5 function 0 Intel MCH PCIE rev 0x09

pci5 at ppb4 bus 5

ppb5 at pci5 dev 0 function 0 Intel PCIE-PCIE rev 0x09

pci6 at ppb5 bus 6

em0 at pci6 dev 7 function 0 Intel PRO/1000MT (82541GI) rev 0x05: irq
11, address 00:13:72:57:05:8e

ppb6 at pci5 dev 0 function 2 Intel PCIE-PCIE rev 0x09

pci7 at ppb6 bus 7

em1 at pci7 dev 8 function 0 Intel PRO/1000MT (82541GI) rev 0x05: irq
3, address 00:13:72:57:05:8f

ppb7 at pci0 dev 6 function 0 Intel MCH PCIE rev 0x09

pci8 at ppb7 bus 8

uhci0 at pci0 dev 29 function 0 Intel 82801EB/ER USB rev 0x02: irq 11

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 82801EB/ER USB rev 0x02: irq 10

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 82801EB/ER USB rev 0x02: irq 7

usb2 at uhci2: USB revision 1.0

uhub2 at usb2

uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1

uhub2: 2 ports with 2 removable, self powered

ehci0 at pci0 dev 29 function 7 Intel 82801EB/ER USB2 rev 0x02: irq 5

usb3 at ehci0: USB revision 2.0

uhub3 at usb3

uhub3: Intel EHCI root hub, rev 2.00/1.00, addr 1

uhub3: 6 ports with 6 removable, self powered

ppb8 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xc2

pci9 at ppb8 bus 9

vga1 at pci9 dev 13 function 0 ATI Radeon VE QY rev 0x00

wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)

wsdisplay0: screen 1-5 added (80x25, vt100 emulation)

ichpcib0 at pci0 dev 31 function 0 Intel 82801EB/ER LPC rev 0x02

pciide0 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 pciide0 channel 0 drive 0

scsibus2 at atapiscsi0: 2 targets

cd0 at scsibus2 targ 0 lun 0: HL-DT-ST, CD-ROM GCR-8240N, 1.10 SCSI0
5/cdrom removable

cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2

pciide0: 

amd 64 jdk port

2007-07-06 Thread John N. Brahy
I checked and there isn't a jdk port for amd, but there is a tomcat 5.5
port. Is there a jdk port on another server? I didn't see a jdk- package
in the 4.0 packages either.



$ uname -a

OpenBSD albert.scandalz.net 4.1 GENERIC#874 amd64

$ echo $PKG_PATH

ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/amd64/

$ sudo pkg_add tomcat-5.5.20p0

Password:

Error from ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/amd64/:

550 Failed to open file.

tomcat-5.5.20p0:Can't find jdk-1.5.0p28

/usr/sbin/pkg_add: jdk-1.5.0p28:Fatal error





Any suggestions of where I should look? Or should I try to use a
different jdk?





:: John Brahy

:: CTO/CIO
:: ad2, Inc.
:: http://www.ad2.com http://www.ad2.com/
::
:: 1990 E Grand Avenue
:: Suite 200
:: El Segundo CA 90245
::
:: t: 310-356-7500 main line
:: f: 310-356-7520



port knocking?

2007-06-25 Thread John N. Brahy
Hi Misc@,



I was wondering what the general census on port knocking in the OpenBSD
community is. I like the idea of hiding services but I don't like the
idea of relying on a piece of code that's not part of the OpenBSD core.
I know when it comes down to it, it's only hiding ports and not actually
securing anything.



I am assuming that it's not practiced in the OpenBSD world because there
are no port knocking ports.



Anyone not agree with that summation?



Thanks,



John



:: John Brahy

:: CTO/CIO
:: ad2, Inc.
:: http://www.ad2.com http://www.ad2.com/
::
:: 1990 E Grand Avenue
:: Suite 200
:: El Segundo CA 90245
::
:: t: 310-356-7500 main line
:: f: 310-356-7520



spamdb: convert greylisted addresses to whitelisted servers?

2007-04-05 Thread John N. Brahy
I've been looking at the source and I've read the man page but I don't
see a way to convert a greylisted entry to a whitelisted entry.

Is it possible or just unnecessary?

# spamdb -a 12.34.56.78
# spamdb | grep 12.34.56.78
WHITE|12.34.56.78|||1175817375|1175819030|1178929430|1|2
GREY|12.34.56.78|[EMAIL PROTECTED]|[EMAIL PROTECTED]|1175815019|1175829419|
1175829419|4|0
#



Dell Service Tag

2006-03-06 Thread John N. Brahy
Is there a way to get the dell service tag without having physical
access to the server? I can do it from windows but is that information
stored anywhere that I can get to it from the OpenBSD side?



Re: Dell Service Tag

2006-03-06 Thread John N. Brahy
That's exactly what I was looking for. Thanks!

 -Original Message-
 From: Chris Kuethe [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 06, 2006 12:00 PM
 To: John N. Brahy
 Cc: misc@openbsd.org
 Subject: Re: Dell Service Tag
 
 /usr/ports/sysutils/dmidecode
 
 I just queried a PE650 and got the serial number and service tag
 
 On 3/6/06, John N. Brahy [EMAIL PROTECTED] wrote:
  Is there a way to get the dell service tag without having physical
  access to the server? I can do it from windows but is that
information
  stored anywhere that I can get to it from the OpenBSD side?
 
 
 
 
 --
 GDB has a 'break' feature; why doesn't it have 'fix' too?



perl interface to pf?

2005-11-01 Thread John N. Brahy
Is there a perl interface to pf? 



perl script for postfix logs to create spamd tables

2005-10-31 Thread John N. Brahy
Does anyone have a script that parses postfix logs and adds servers to
the spamd tables?



Just checking before I write one.



strcpy to strlcpy warnings

2005-10-27 Thread John N. Brahy
First of all, it's been a while since I've written c, so I'm curious if
this is a bulk change I can do.



I'm changing code that another programmer did, but we got rid of him for
doing stupid things. So I'm auditing his source code on a few of our
customer's sites and I came across a strcat. And when I recompile it, I
got warnings saying that it's almost always misused, then I read the
manpage of strlcat and it seemed simple enough to do this:



strcat(mailbox, MAILSPOOLHOME);

strlcat(mailbox, MAILSPOOLHOME, sizeof(mailbox));



Should I look out for anything special or is it safe to do this
everywhere I see strcat or strcpy?



Changing kernels from i386 to amd64

2005-09-19 Thread John N. Brahy
How do I change my kernel from i386 to amd64? Do I have to do a
reinstall or upgrade? I tried simply copying the bsd file from the amd64
directory off an ftp site but I got a unrecognized binary format error
from the boot loader.



MaxDB on 3.6? or just ndb_mgm[d ]?

2005-08-30 Thread John N. Brahy
I'm trying to build a OpenBSD mysql cluster and I haven't been able to
fully compile the mysql build tools that are required to compile the
MaxDB so I can get ndb_mgmd and ndb_mgm. Does anyone have a patch to
make it work or a package with those two binaries?



Thanks,



John