Connecting to one of available networks on boot

2010-07-01 Thread czarkoff
Date: Thu, 01 Jul 2010 10:54:07 +0400
From: czark...@gmail.com
To: misc@openbsd.org
Subject: Connecting to one of available networks on boot
Message-ID: <4c2c3b8f.oqkyhtdvrrp9b9a5%czark...@gmail.com>
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello!

I have an OpenBSD 4.7 on my netbook.

Right now I've configured my home network in hostname.if as it is the
one I use most.

Still the ideal situation would be automaticly connecting to any of known
networks. Reading manuals on ifconfig and hostname.if gave me an idea I could
have a script that scans available networks on boot and chooses the known one.

The thing I wanted to ask is: is there any specific mechanism for
accomplishing this task, or I have to really have a script in my hostname.if?

--
Dmitrij D. Czarkoff



Re: Connecting to one of available networks on boot

2010-07-01 Thread Tomas Vavrys
IFSTATED.CONF(5) should help you.

On 07/01/10 08:54, czark...@gmail.com wrote:
> Date: Thu, 01 Jul 2010 10:54:07 +0400
> From: czark...@gmail.com
> To: misc@openbsd.org
> Subject: Connecting to one of available networks on boot
> Message-ID: <4c2c3b8f.oqkyhtdvrrp9b9a5%czark...@gmail.com>
> User-Agent: Heirloom mailx 12.4 7/29/08
> MIME-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> Hello!
> 
> I have an OpenBSD 4.7 on my netbook.
> 
> Right now I've configured my home network in hostname.if as it is the
> one I use most.
> 
> Still the ideal situation would be automaticly connecting to any of known
> networks. Reading manuals on ifconfig and hostname.if gave me an idea I could
> have a script that scans available networks on boot and chooses the known one.
> 
> The thing I wanted to ask is: is there any specific mechanism for
> accomplishing this task, or I have to really have a script in my hostname.if?
> 
> --
> Dmitrij D. Czarkoff



Re: MD5 checksum

2010-07-01 Thread Thanasis
 I had such a problem with under-volted RAM. The RAM (DDR2) needed to be
manually set to 2.0 or 2.1 Volts (in BIOS).

on 06/30/2010 11:58 PM Claudiu Pruna wrote the following:
>   Hi there,
>
>   I have a question if I have one box running OpenBSD 4.7 and everytime I
> do md5 on one file I get different results, who is more succeptible to
> be broken ? cpu ? ram ? or mb. ?
>
> Thanks for your thoughts.



Re: MD5 checksum

2010-07-01 Thread Thanasis
 Check your RAM's specs as to voltage ...

on 06/30/2010 11:58 PM Claudiu Pruna wrote the following:
>   Hi there,
>
>   I have a question if I have one box running OpenBSD 4.7 and everytime I
> do md5 on one file I get different results, who is more succeptible to
> be broken ? cpu ? ram ? or mb. ?
>
> Thanks for your thoughts.



REVOLUCIONE A SU EQUIPO DE TRABAJO, SEMINARIO DE LIDERAZGO EN JULIO MÉXICO D.F.

2010-07-01 Thread LIc. Claudia Sarmiento
[IMAGE]

Promociones Especiales para Grupos!

Mayores informes responda este correo electrsnico con los siguientes
datos.

Empresa:

Nombre:

Telifono:

Email:

Nzmero de Interesados:

Y en breve le haremos llegar la informacisn completa del evento.

O bien comunmquense a nuestros telifonos un ejecutivo con gusto le
atendera

Tels. (33) 8851-2365, (33)8851-2741.

Copyright (C) 2010, PMS Capacitacisn Efectiva de Mixico S.C. Derechos
Reservados. PMS de Mixico, El logo de PMS de Mixico son marcas
registradas.
ADVERTENCIA PMS de Mixico no cuenta con alianzas estratigicas de ningzn
tipo
dentro de la Republica Mexicana. NO SE DEJE ENGAQAR - DIGA NO A LA
PIRATERIA. Todos los logotipos, marcas comerciales e imagenes son
propiedad
de sus respectivas corporaciones y se utilizan con fines informativos
solamente.

Este Mensaje ha sido enviado a misc@openbsd.org como usuario de Pms de
Mixico o bien un usuario le refiris para recibir este boletmn.
Como usuario de Pms de Mixico, en este acto autoriza de manera expresa
que Pms de Mixico le puede contactar vma correo electrsnico u otros
medios.
Si usted ha recibido este mensaje por error, haga caso omiso de el y
reporte su cuenta respondiendo este correo con el subject BAJAliderazgo
Unsubscribe to this mailing list, reply a blank message with the subject
UNSUBSCRIBE liderazgo
Tenga en cuenta que la gestisn de nuestras bases de datos es de suma
importancia y no es intencisn de la empresa la inconformidad del
receptor.

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



Re: Load balancing incoming trafic with BGP

2010-07-01 Thread BARDOU Pierre
Hello,

Wow, I didn't thought of that solution, but that's very simple and elegant,
just the way I like :)
I tested it, it works very well. Thank you very much for your advices.

--
Cordialement,
Pierre BARDOU


-Message d'origine-
De : Stuart Henderson [mailto:s...@spacehopper.org]
Envoyi : mardi 29 juin 2010 14:47
@ : misc@openbsd.org
Objet : Re: Load balancing incoming trafic with BGP

On 2010-06-29, BARDOU Pierre  wrote:
> Hello,
>
> I tried to follow your advices, and I set :
> network 1.1.1.0/24
> network 1.1.1.0/25 set prepend-self 5

hmm, I meant that you should announce the larger network (/24) from
both sites, and the more-specific (/25) from each site.

e.g. from the main site:

network 1.1.1.0/24
network 1.1.1.0/25

and from the backup site:

network 1.1.1.0/24
network 1.1.1.128/25

No need to mess about with prepends for this.

> The /25 appears on the RIB of router A, but not in ISP A router RIB.
> Why ? My only filter rule is "allow from any"

Are you absolutely certain you have "allow from any" everywhere
that you need it?

> A few details :
> * 1.1.1.0/24 is for testing purposes an used only in my (isolated) lab. I
have
> a true /24, registered with RIPE.

It is still bad practice. What if someone were to use your registered
/24 in their test network, and then accidentally announce it to the internet?
Sometimes things which "shouldn't happen" do; the point of this is to avoid
breaking other people's networks when things go wrong.

> * I have an MPLS VPN between my two sites, which uses different wires from
> Internet
> * I didn't knew the issue about propagating a /25 to the internet. Thanks
for
> the information, I'll have to think about that before setting this in
> production...

Yes, something like the "allow from any inet prefixlen 8 - 24" in the
sample bgpd.conf (i.e. don't allow longer prefixes) is pretty common
practice in many networks.




>
> Many thanks for the help
> --
> Cordialement,
> Pierre BARDOU
>
>
> -Message d'origine-
> De : Stuart Henderson [mailto:s...@spacehopper.org]
> Envoyi : samedi 26 juin 2010 12:18
> @ : misc@openbsd.org
> Objet : Re: Load balancing incoming trafic with BGP
>
> On 2010-06-25, BARDOU Pierre  wrote:
>> I have issues trying to setup this :
>>
>>ISP AISP B
>>  ||
>>   Router ARouter B
>>  Main site  ---  Backup site
>>  1.1.1.0/25  1.1.1.128/25
>
> I think you will have to rethink a bit.
>
> Even if your immediate upstreams accept it (which is unlikely without
> a special arrangement), there is no way that most of the internet will
> accept a /25 announcement. You would want to use at least a /23 for
> the whole net, so your site-specific announcements can be /24.
>
> You will also have to ensure connectivity between the two sites
> under normal conditions (if you don't have a direct link, then you
> could consider a tunnel between addresses from outside this network;
> either plain gif/gre and accept the restricted MTU, or you could use a
> gre+vether+bridge+pf setup which would let you run at the lowest MTU
> of the physical links between them).
>
>> I'd like that connections to the main site flow through ISP A, to the
> backup
>> site flow through ISP B, with backup through the other ISP if one fails.
>> So I set up openBGPd like this :
>> Router A :
>> AS 65001
>> network 1.1.1.0/25
>> network 1.1.1.128/25 set prepend-self 5
>
> From one site you would want to announce x.x.x.0/25 and x.x.x.0/24
> From the other you want x.x.x.128/25 and x.x.x.0/24 (or similar with
> /24 and /23 if you actually want it to work from the rest of the
> internet).
>
> Also: note that 1.0.0.0/8 is an allocated network. Please do not
> use addresses from this block even as a test network unless they are
> properly allocated to you (which being in europe, they are not).



Re: MD5 checksum

2010-07-01 Thread Claudiu Pruna
On Wed, 2010-06-30 at 16:21 -0600, Alexander Hall wrote:
> On 06/30/10 14:58, Claudiu Pruna wrote:
> > Hi there,
> > 
> > I have a question if I have one box running OpenBSD 4.7 and everytime I
> > do md5 on one file I get different results, who is more succeptible to
> > be broken ? cpu ? ram ? or mb. ?
> > 
> > Thanks for your thoughts.
> 
> If your system is indeed this corrupt I am surprised it will run at all.
> 
> Please show the actual command that produces this.
> 
> /Alexander

the command is md5 file.iso and every run it gives another result.

Claudiu

-- 
Claudiu Pruna 



Re: MD5 checksum

2010-07-01 Thread Claudiu Pruna
On Thu, 2010-07-01 at 10:32 +0300, Thanasis wrote:
> I had such a problem with under-volted RAM. The RAM (DDR2) needed to be
> manually set to 2.0 or 2.1 Volts (in BIOS).
> 
> on 06/30/2010 11:58 PM Claudiu Pruna wrote the following:
> > Hi there,
> >
> > I have a question if I have one box running OpenBSD 4.7 and everytime I
> > do md5 on one file I get different results, who is more succeptible to
> > be broken ? cpu ? ram ? or mb. ?
> >
> > Thanks for your thoughts.
> >
> >  
> >
> 

the computer is an PIII/450MHz:

hw.machine=i386
hw.model=Intel Pentium III ("GenuineIntel" 686-class, 512KB L2 cache)
hw.ncpu=1
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=wd0,cd0
hw.diskcount=2
hw.cpuspeed=448
hw.vendor=Compaq
hw.product=Deskpro EP/SB Series
hw.physmem=268005376
hw.usermem=267993088

could it still be a ram voltage problem ? as it has sdram ?



-- 
Claudiu Pruna 



Re: Connecting to one of available networks on boot

2010-07-01 Thread czarkoff
Tomas Vavrys  wrote:

> IFSTATED.CONF(5) should help you.

Sorry, I should have found it on my own.

Thanks!

--
Dmitrij D. Czarkoff



Mac mini G4

2010-07-01 Thread fugu1
So, I have install macppc version of openbsd 4.7 on my macppc.
Everything works. Big thanks to openbsd team.
I have one question: Is the any way to put the mini
in "server" mode (make it boot automatically after Power Loss)?

Thanks in advance.



Re: MD5 checksum

2010-07-01 Thread Claudiu Pruna
On Thu, 2010-07-01 at 14:14 +0300, Ozgur Kazancci wrote:
> Sounds like a bad ram module to me.
> 
> A mem test would be good;
> 
> http://www.memtest.org/
> or
> http://www.memtest86.com/
> 
> Get the pre-compiled bootable ISO from there and test your RAM modules.
> 
> If errors are found, replace your SDRAM(s).
> 
> Regards.
> 
Yup. That's what it has also seems to me  
Thanks all.



Re: Mac mini G4

2010-07-01 Thread Tasmanian Devil
> I have one question: Is the any way to put the mini
> in "server" mode (make it boot automatically after Power Loss)?

There's info about how to do this on PPC with Linux on
http://www.mythic-beasts.com/support/macminicolo_howto.html - maybe
you can translate that to OpenBSD yourself. I don't know of any info
about this for PPC/OpenBSD, unfortunately.

The way I do it on my Intel Mac mini probably won't work on PPC, but
just in case, more info is in the misc archive, e.g. here:
http://marc.info/?l=openbsd-misc&m=120631459418290&w=2

Tas.



Re: Mac mini G4

2010-07-01 Thread fugu1
Thanks., maybe I should have RTFM before I posted :)

The following is from: http://www.openbsd.org/41.html
"The OpenBSD/macppc platform now automatically turns the machine back on 
following an unexpected loss of power."

So I will have to test(and ruin my uptime) when I get home.


 Original Message 
From: Tasmanian Devil 
To: fu...@safe-mail.net
Cc: misc@openbsd.org
Subject: Re: [misc] Mac mini G4
Date: Thu, 1 Jul 2010 13:40:27 +0200

> > I have one question: Is the any way to put the mini
> > in "server" mode (make it boot automatically after Power Loss)?
> 
> There's info about how to do this on PPC with Linux on
> http://www.mythic-beasts.com/support/macminicolo_howto.html - maybe
> you can translate that to OpenBSD yourself. I don't know of any info
> about this for PPC/OpenBSD, unfortunately.
> 
> The way I do it on my Intel Mac mini probably won't work on PPC, but
> just in case, more info is in the misc archive, e.g. here:
> http://marc.info/?l=openbsd-misc&m=120631459418290&w=2
> 
> Tas.



Current status of suspend AND resume on X200s

2010-07-01 Thread Andreas Bihlmaier
Hello misc@,

I'm very happy reading source-changes@ during this hackathon concerning the work
on ACPI suspend/resume.

My question is: does suspend and resume _now_ work on Lenovo X200s?

Sure I could just download the latest snapshot and try.
But on the other hand I'm sure quite a lot of people run current (+1) on these
and already know whether it works.

Best regards and thanks to all the busy OpenBSD hackers
ahb



Re: Mac mini G4

2010-07-01 Thread Fred Snurd
"fu...@safe-mail.net"  wrote:

> I have one question: Is the any way to put the mini
> in "server" mode (make it boot automatically after Power Loss)?

While asking about server mode, is it also possible to run a PPC mini headless?

Thanks.



Re: Mac mini G4

2010-07-01 Thread Michal

On 01/07/2010 14:15, Fred Snurd wrote:

"fu...@safe-mail.net"  wrote:


I have one question: Is the any way to put the mini
in "server" mode (make it boot automatically after Power Loss)?


While asking about server mode, is it also possible to run a PPC mini headless?

Thanks.



Yes there is a hack using a VGA connector and a resistor...if it's what 
I'm thinking about




Re: Mac mini G4

2010-07-01 Thread John Wright
On Thu, Jul 01, 2010 at 06:15:16AM -0700, Fred Snurd wrote:
> "fu...@safe-mail.net"  wrote:
> 
> > I have one question: Is the any way to put the mini
> > in "server" mode (make it boot automatically after Power Loss)?
> 
> While asking about server mode, is it also possible to run a PPC mini 
> headless?

I have mine headless and it starts up fine.



Re: pfctl from today seems to be somehow messed up / DIOCSETSTATUSIF

2010-07-01 Thread Ryan McBride
This sounds a lot like a kernel/userland mismatch. Please update both
kernel and userland from the same snapshot and try again.

On Thu, Jul 01, 2010 at 03:33:56AM +0200, Laurent CARON wrote:
> Hi,
> 
> I did upgrade one of my BGP routers today with latest current.
> 
> Upon reboot I have no network.
> 
> pfctl returns the following error:
> # pfctl -f /etc/pf.conf
> pfctl: DIOCSETSTATUSIF
> 
> A default drop all in ruleset is loaded.
> 
> If I rollback to previous pfctl it loads my rules fine.
> 
> If i want to load rules correctly with newer pfctl I have to remove:
> set loginterface $EXTIF001 from /etc/pf.conf
> 
> Thanks
> 

-- 



Re: Current status of suspend AND resume on X200s

2010-07-01 Thread Ted Unangst
It works for me if you suspend from console, but not X.  I made the
following apm/suspend diff to make sure that happens.

#!/bin/sh

wsconsctl display.focus=1
sleep 5

This shouldn't be necessary, so a gold star to whoever fixes it.

On Thu, Jul 1, 2010 at 9:59 AM, Andreas Bihlmaier
 wrote:
> Hello misc@,
>
> I'm very happy reading source-changes@ during this hackathon concerning the 
> work
> on ACPI suspend/resume.
>
> My question is: does suspend and resume _now_ work on Lenovo X200s?
>
> Sure I could just download the latest snapshot and try.
> But on the other hand I'm sure quite a lot of people run current (+1) on these
> and already know whether it works.
>
> Best regards and thanks to all the busy OpenBSD hackers
> ahb



Re: Mac mini G4

2010-07-01 Thread Bryan Vyhmeister
On Thu, Jul 1, 2010 at 9:15 AM, Fred Snurd  wrote:
> "fu...@safe-mail.net"  wrote:
>
>> I have one question: Is the any way to put the mini
>> in "server" mode (make it boot automatically after Power Loss)?
>
> While asking about server mode, is it also possible to run a PPC mini 
> headless?

If you just leave the DVI to VGA adapter plugged in it boots fine with
a Mac mini G4. In my experience it will not boot without the adapter
installed.

Bryan



Re: Mac mini G4

2010-07-01 Thread FUGU
I second that

On Thu, Jul 01, 2010 at 02:22:50PM -0400, Bryan Vyhmeister wrote:
> On Thu, Jul 1, 2010 at 9:15 AM, Fred Snurd  wrote:
> > "fu...@safe-mail.net"  wrote:
> >
> >> I have one question: Is the any way to put the mini
> >> in "server" mode (make it boot automatically after Power Loss)?
> >
> > While asking about server mode, is it also possible to run a PPC mini 
> > headless?
> 
> If you just leave the DVI to VGA adapter plugged in it boots fine with
> a Mac mini G4. In my experience it will not boot without the adapter
> installed.
> 
> Bryan



Re: pfctl from today seems to be somehow messed up / DIOCSETSTATUSIF

2010-07-01 Thread Laurent CARON

On 01/07/2010 17:54, Ryan McBride wrote:

This sounds a lot like a kernel/userland mismatch. Please update both
kernel and userland from the same snapshot and try again.


I always upgrade both at the same time. Kernel + userland are in synch



Re: Connecting to one of available networks on boot

2010-07-01 Thread Peter Hessler
This is on my TODO list, but I haven't gotten to it yet.

(Yes, this also annoys me)


On 2010 Jul 01 (Thu) at 10:54:57 +0400 (+0400), czark...@gmail.com wrote:
:Hello!
:
:I have an OpenBSD 4.7 on my netbook.
:
:Right now I've configured my home network in hostname.if as it is the
:one I use most.
:
:Still the ideal situation would be automaticly connecting to any of known
:networks. Reading manuals on ifconfig and hostname.if gave me an idea I could
:have a script that scans available networks on boot and chooses the known one.
:
:The thing I wanted to ask is: is there any specific mechanism for
:accomplishing this task, or I have to really have a script in my hostname.if?
:
:--
:Dmitrij D. Czarkoff
:

-- 
The trouble with being punctual is that people think you have nothing
more important to do.



Re: Mac mini G4

2010-07-01 Thread FUGU
Also, while we are at it, does anyone know if openbsd supports
the latest apple usb ethernet adapter?
I see that the AXE(4) driver supports Apple USB Ethernet Adapter A1277
but no info on the latest one
thanks...

On Thu, Jul 01, 2010 at 02:22:50PM -0400, Bryan Vyhmeister wrote:
> On Thu, Jul 1, 2010 at 9:15 AM, Fred Snurd  wrote:
> > "fu...@safe-mail.net"  wrote:
> >
> >> I have one question: Is the any way to put the mini
> >> in "server" mode (make it boot automatically after Power Loss)?
> >
> > While asking about server mode, is it also possible to run a PPC mini
headless?
>
> If you just leave the DVI to VGA adapter plugged in it boots fine with
> a Mac mini G4. In my experience it will not boot without the adapter
> installed.
>
> Bryan

[demime 1.01d removed an attachment of type application/pgp-signature]



Re: pfctl from today seems to be somehow messed up

2010-07-01 Thread Laurent CARON

On 01/07/2010 21:21, Ryan McBride wrote:

On Thu, Jul 01, 2010 at 09:00:18PM +0200, Laurent CARON wrote:

On 01/07/2010 17:54, Ryan McBride wrote:

This sounds a lot like a kernel/userland mismatch. Please update both
kernel and userland from the same snapshot and try again.

I always upgrade both at the same time. Kernel + userland are in synch


I'm unable to reproduce this here. Can you give me the output of the
following commands:

sysctl kern.version



OpenBSD 4.7-current (GENERIC.MP) #10: Wed Jun 30 22:07:04 CEST 2010
r...@bgpgw-002.lncsa.com:/usr/src/sys/arch/amd64/compile/GENERIC.MP



pfctl -Fa -i lo0




# pfctl -Fa -i lo0
rules cleared
0 tables deleted.
pfctl: don't specify an interface with -Fall
usage: pfctl [-deghnqrvz] [-a anchor] [-D macro=value] [-F modifier]
[-f file] [-i interface] [-K host | network]
[-k host | network | label | id] [-L statefile] [-o level] [-p 
device]

[-S statefile] [-s modifier] [-t table -T command [address ...]]
[-x level]


This incidentally made my other router (running openBGPd) crash with:

uvm_fault(0x80cc7320, 0xdeafb000, 0, 1) -> e
page fault trap, code=0
Stopped at  pfsync_in_clr+0x123:movq 0x10(%rbx),%rax

Laurent



Re: Intel PRO/1000 QP on Dell R610 and OpenBSD 4.7

2010-07-01 Thread Frédéric URBAN

Le 29/06/2010 20:46, Fridiric URBAN a icrit :
4.7, but it only fix the hardware initialization. I've got all 
interface available in ifconfig and known by the kernel but thoses who 
useally don't get initialized doesn't work when you plug the cable, 
there must be a similar problem when bringing up the link.


The problem, I fixed on hw_init was simply a failing mutex (in 
if_em_hw.c) . When interrogating the PHY registers at the end of 
em_setup_copper_link(), if the PHY is busy, the function 
em_read_phy_reg() return an error (E1000_ERR_PHY) which is brought on 
the function stack and lead to hardware initialization failure... So i 
took the code from e1000_82575.c of the freebsd project and this is 
over. Now this is uglyly coded, it need to be rewritten to feet with 
the OpenBSD em(4) philosophy which is totaly different from freebsd 
em/igb code. I will be busy at work but i'll try to keep on working on 
that during my free time. If somebody wants to help/go on, mail me ;)


PS: I'll have fiber card soon, we'll see they have the same problem.

Fred

Ok it's confirmed, the PHY used on the card has a strange behavior. Each 
time that the function em_read_phy_reg() is used there is a  risk of 
failure, The PHY is more often busy than useall. I added some debug 
information in the code which show the return code of em_read_phy_reg() 
and sometimes E1000_ERR_PHY is returned.This function is called very 
very often (which is obvious). When it happends the interface won't work.


I partially fixed the hardware initialization by adding a timed retry 
when the PHY is busy (in em_setup_copper_link()), but there is still 
lots of occurrence of em_read_phy_reg() that need to be modified (ie: I 
already had error in em_copper_link_autoneg()) and it's the first time I 
put my finger inside a device driver :E So maybe there is a better way 
to fix it ! We need a kernel guru !!! :D


Fred

Btw, I took the idea of the timed retry of em_read_phy_reg()  from 
FreeBSD igb driver, in their equivalent of em_setup_copper_link(), they 
use it.




Le 29/06/2010 18:29, w...@wootsie.com a icrit :

4.6 or 4.7 code?

-Bill

On Tue, Jun 29, 2010 at 10:48 AM, Fridiric URBAN
  wrote:

Le 29/06/2010 14:16, uhu a C)crit :

FrC)dC)ric URBAN   ircad.u-strasbg.fr>   writes:



.
I didn't find any bug report yet on the OpenBSD official Website, 
this

is a different case than the one  reported here:
http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&numbers=6301
 



Can somebody report it with a dmesg on 4.7 ?




I reported it some days ago, got an error message, but the bug report
seems to be here since 07/23:

http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&numbers=6408

Uwe



Hello again,

Maybe i got a fix, I modified some lines of code inside the driver... I
booted 4x times without nics that has failed... But i'll try it more 
before

saying victory ;)

Fred




Re: pfctl from today seems to be somehow messed up

2010-07-01 Thread Ryan McBride
On Thu, Jul 01, 2010 at 10:15:26PM +0200, Laurent CARON wrote:
> This incidentally made my other router (running openBGPd) crash with:
> 
> uvm_fault(0x80cc7320, 0xdeafb000, 0, 1) -> e
>   page fault trap, code=0
> Stopped atpfsync_in_clr+0x123:movq 0x10(%rbx),%rax

Interesting. Do you have the 'ps' and 'trace' output from that?



Re: pfctl from today seems to be somehow messed up

2010-07-01 Thread Laurent CARON

On 01/07/2010 22:21, Ryan McBride wrote:

On Thu, Jul 01, 2010 at 10:15:26PM +0200, Laurent CARON wrote:

This incidentally made my other router (running openBGPd) crash with:

uvm_fault(0x80cc7320, 0xdeafb000, 0, 1) ->  e
page fault trap, code=0
Stopped at  pfsync_in_clr+0x123:movq 0x10(%rbx),%rax


Interesting. Do you have the 'ps' and 'trace' output from that?



Unfortunately not since the machine is remote this won't be easy.

Currently compiling today's cvs on this

Do you have any clue where it might come from ? 



ipsec problem

2010-07-01 Thread dontek
I'm having a strange issue with ipsec configuration I do not understand.

I have a single internal network interface (10.10.10.1) and network
(10.10.10.0/24).

I boot the following configuration:

isakmpd_flags="-K"
ipsec=YES

ike passive from any to 10.10.10.0/24 peer any \
aggressive auth hmac-sha1 enc aes-256 group modp3072 \
quick auth hmac-sha1 enc aes-256 group modp3072 \
srcid vpn.mydomain.net dstid clients.mydomain.net \
psk mypass

ike passive from 10.10.10.0/24 to any \
aggressive auth hmac-sha1 enc aes-256 group modp3072 \
quick auth hmac-sha1 enc aes-256 group modp3072 \
srcid vpn.mydomain.net dstid clients.mydomain.net \
psk mypass

I connect to the VPN and I can ping the internal interface (10.10.10.1) on
the firewall, but I cannot talk to the network behind the firewall (ping
host 10.10.10.10).

I change my VPN network to (10.10.1.0/24) by editing ipsec.conf and changing
the two lines accordingly:

ike passive from any to 10.10.1.0/24 peer any

ike passive from 10.10.1.0/24 to any

Then I issue:

ipsecctl -f /etc/ipsec.conf

I connect to the VPN and all hosts on the network are "pingable".  GREAT
right?.. until I reboot the machine with this configuration.  Then I can't
talk to anything once connected to the VPN.

If I change my VPN network in ipsec.conf back to match the internal network
(10.10.10.0/24), boot, connect to the VPN, ping, change ipsec.conf again to
make the VPN network (10.10.1.0/24), everything works fine.

what the hell is going on?

NOTE:  On the VPN client side I am using manual configuration and simply
changing the IP address between 10.10.10.66 and 10.10.1.66 to correspond
with the ipsec.conf changes.



Multiple web servers hosting different sites behind single public IP (all listening on port 80)?

2010-07-01 Thread Scott Wood
I have a few years experience using OpenBSD firewalls in a small business
Environment and I love it.

I've recently switched over to a single static IP and am struggling with a
Problem: How to have multiple web servers hosting different sites behind
single
public IP (all listening on port 80)?

I have a 2-legged OpenBSD 4.7-stable firewall (i386) behind a single static
IP.
My only DNS (currently) is external which establishes abc.com -->
$my-static-ip

 Internet
|
  --  
 |  |
 | OBSD |
 |  4.7 |
  --
|
|
   Private DMZ
 ___|_
 | | |
---   ---   ---
   | 1 | | 2 | | 3 |
---   ---   ---

I can port-map to the various servers just fine (ie: abc.com:8080,
abc.com:,
etc.) but this is NOT the desired configuration.

The 3 different web servers should all be accessible via port 80:
  abc.com, coolstuff.abc.com, abc.com/coolstuff

It seems like there should be an easy elegant way to handle this using
OpenBSD.
Do I need to setup a secondary/slave DNS server on my DMZ?
Can I use relayd?  Looks great!

I've read the following docs about relayd and it sounds like it'll do
"reverse web proxying" which is what I need.
But I couldn't quite see how to filter/redirect on the hostname or
URL...(I'm sure it's there, but I don't get it!).

http://www.openbsd.org/cgi-bin/man.cgi?query=relayd&sektion=8&arch=&apropos=
0&manpath=OpenBSD+Current
http://www.unixtechnics.org/openbsd-relayd.html
https://calomel.org/relayd.html

Can anyone shed any light on this for me?
Please tell me if I'm barking up the wrong tree!

Many thanks, Scott



Re: Multiple web servers hosting different sites behind single public IP (all listening on port 80)?

2010-07-01 Thread Ingo Schwarze
Hi Scott,

Scott Wood wrote on Thu, Jul 01, 2010 at 04:09:25PM -0400:

> I've recently switched over to a single static IP and am struggling with a
> Problem: How to have multiple web servers hosting different sites behind
> single public IP (all listening on port 80)?

httpd(8) can do reverse proxying.

Yours,
  Ingo



Re: Multiple web servers hosting different sites behind single public IP (all listening on port 80)?

2010-07-01 Thread Dave Anderson
On Thu, 1 Jul 2010, Scott Wood wrote:

>I have a few years experience using OpenBSD firewalls in a small business
>Environment and I love it.
>
>I've recently switched over to a single static IP and am struggling with a
>Problem: How to have multiple web servers hosting different sites behind
>single
>public IP (all listening on port 80)?
>
>I have a 2-legged OpenBSD 4.7-stable firewall (i386) behind a single static
>IP.
>My only DNS (currently) is external which establishes abc.com -->
>$my-static-ip
>
>Internet
>   |
> --
>|  |
>| OBSD |
>|  4.7 |
> --
>   |
>   |
>   Private DMZ
> ___|_
> | | |
>---   ---   ---
>   | 1 | | 2 | | 3 |
>---   ---   ---
>
>I can port-map to the various servers just fine (ie: abc.com:8080,
>abc.com:,
>etc.) but this is NOT the desired configuration.
>
>The 3 different web servers should all be accessible via port 80:
>  abc.com, coolstuff.abc.com, abc.com/coolstuff
>
>It seems like there should be an easy elegant way to handle this using
>OpenBSD.
>Do I need to setup a secondary/slave DNS server on my DMZ?
>Can I use relayd?  Looks great!

Perhaps I'm missing something, but why don't you set up 'virtual hosts'
on your webserver (based on the 'Host' header); this appears to be
exactly the kind of situation that feature was designed to handle.
You'll need to add a DNS entry for coolstuff.abc.com pointing to the
same IP address as abc.com does.  [That doesn't work for
abc.com/coolstuff, but it's not at all clear how that worked in your
original setup -- since abc.com and abc.com/coolstuff would necessarily
connect to the same IP address.]

Dave

>I've read the following docs about relayd and it sounds like it'll do
>"reverse web proxying" which is what I need.
>But I couldn't quite see how to filter/redirect on the hostname or
>URL...(I'm sure it's there, but I don't get it!).
>
>http://www.openbsd.org/cgi-bin/man.cgi?query=relayd&sektion=8&arch=&apropos=
>0&manpath=OpenBSD+Current
>http://www.unixtechnics.org/openbsd-relayd.html
>https://calomel.org/relayd.html
>
>Can anyone shed any light on this for me?
>Please tell me if I'm barking up the wrong tree!
>
>Many thanks, Scott
>

-- 
Dave Anderson




Re: Multiple web servers hosting different sites behind single public IP (all listening on port 80)?

2010-07-01 Thread Daniel Ouellet

I can port-map to the various servers just fine (ie: abc.com:8080,
abc.com:,
etc.) but this is NOT the desired configuration.

The 3 different web servers should all be accessible via port 80:
   abc.com, coolstuff.abc.com, abc.com/coolstuff


Can you give me a bit more details as to what you really want to do.

- Look to me if I understand you right, it's pretty simple. All your 
servers would have the same content and you spread the load between them.


- And you try to have coolstuff.abc.com redirected to your web server 
directory at abc.com/coolstuff?


If so, that's pretty easy to do and rewrite module in httpd does do that 
for you.


I do that all the time!

Working live example if you need to see it to know and understand my 
question to you.


example

http://wheredoyoufit.org

will redirect you to

http://typology.people-press.org/

Or an other example redirecting oyu inside a sub directory of a site 
like this:


http://pandemicfluandyou.org

will redirect you inside a sub directory here:

http://healthyamericans.org/pandemic-flu/

Is that what you try to do?

If not, I do not follow your question.

Or if so, you sure can use relayd, but no need for it really.

You may even redirect your various URL to different port too if that 
makes your life easier and then in pf, you redirect them to a specific 
server at all times.


There is many solutions, but what is the problem you try to address. 
Sorry if I am tick, but that's what I understood from your question.


Best,

Daniel



Re: Current status of suspend AND resume on X200s

2010-07-01 Thread Ted Unangst
On Thu, Jul 1, 2010 at 1:06 PM, Ted Unangst  wrote:
> It works for me if you suspend from console, but not X.  I made the
> following apm/suspend diff to make sure that happens.
>
> #!/bin/sh
>
> wsconsctl display.focus=1
> sleep 5
>
> This shouldn't be necessary, so a gold star to whoever fixes it.

Paul fixed it, a gold star for him.  Everything just works now.



Re: Multiple web servers hosting different sites behind single public IP (all listening on port 80)?

2010-07-01 Thread Stuart Henderson
On 2010-07-01, Scott Wood  wrote:
> Can I use relayd?  Looks great!

at the moment, you'll need something like squid, varnish or pound.



ΚΑΛΟΚΑΙΡΙΝΗ ΠΡΟΣΦΟΡΑ - ΣΥΝΕΧΙΖΕΤΑΙ!

2010-07-01 Thread Akis Angelakis
Acapgto_ v_koi jai v_ker,

Lar to fgt^sate! Sar to pqosv]qoule!

Let\ ap| pokkapk\ ait^lat\ sar, g pqosvoq\ Ioum_ou paqate_metai cia k_cer
l]qer aj|lg! 

Hace de tu cumple una fiesta

2010-07-01 Thread Hola
Si cumplis anios en Junio Julio o Agosto te Ganaste Sin cargo

Canilla libre de Cerveza + Pizza libre (5 variedades artesanales)

Ademas te regalamos consumiciones sin cargo para vos y Listas Free para
todos tus amigos

Te gustaria NO PAGAR ALQUILER DE SALON para realizar festejos de:

Casamientos, BautismosAgasajos, Eventos, Graduados, Despedidas, Fiestas
universitarias y cumpleanios de 15

LLamanos a los siguientes telefonos 1138071413 o 43311473 de 11hs a 19hs
o email: pizzaycervezali...@mail.ru

Atencion las consultas por email son validas solo si tienen tu numero de
telefono para contactarte personalmente

PROMOCION VALIDA PARA GRAN BUENOS AIRES Y CIUDAD DE BUENOS AIRES



Re: x4100

2010-07-01 Thread Daniel Ouellet

On 6/30/10 9:27 PM, Marco Peereboom wrote:

It seems that the sun X4100 works now with amd64 GENERIC.MP.  I'd like
to get some test reports from folks in the field.

You have to checkout a kernel using cvs because all niceness isn't in
snaps yet.


Just for the archive, but Marco already have feedback.

No go for the Sun x4100 M2 with latest snapshot

Thu Jul  1 15:28:35 MDT 2010

Only need to do:

dd if=/dev/zero of=/var/test bs=1m count=1000

And you have a crash right away and reboot.

dmesg below:

Best,

Daniel


OpenBSD 4.7-current (GENERIC.MP) #60: Thu Jul  1 15:28:35 MDT 2010
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3756982272 (3582MB)
avail mem = 3643121664 (3474MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xfbd50 (70 entries)
bios0: vendor American Megatrends Inc. version "0ABJX039" date 04/11/2007
bios0: Sun Microsystems Sun Fire X4100 M2
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC SPCR SLIT OEMB HPET IPET SRAT SSDT
acpi0: wakeup devices PS2K(S1) PS2M(S1) USB0(S4) USB1(S4) MAC_(S5) 
P0P1(S4) P0P2(S4) P0P3(S4) P0P4(S4) P0P5(S4) IO4B(S4) BR5B(S4) BR5C(S4) 
BR5D(S4) BR5E(S4) IOB2(S4) BR2B(S4) BR2C(S4) BR2D(S4) BR2E(S4) PWRB(S1)

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Dual-Core AMD Opteron(tm) Processor 2216, 2393.92 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 
64b/line 16-way L2 cache

cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Dual-Core AMD Opteron(tm) Processor 2216, 2393.64 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 
64b/line 16-way L2 cache

cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Dual-Core AMD Opteron(tm) Processor 2216, 2393.64 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 
64b/line 16-way L2 cache

cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu2: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Dual-Core AMD Opteron(tm) Processor 2216, 2393.64 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu3: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 
64b/line 16-way L2 cache

cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu3: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0: apid 15 pa 0xfec0, version 11, 24 pins
ioapic1 at mainbus0: apid 16 pa 0xfeafd000, version 11, 7 pins
ioapic1: misconfigured as apic 0, can't remap to apid 16
ioapic2 at mainbus0: apid 17 pa 0xfeafc000, version 11, 7 pins
ioapic2: misconfigured as apic 1, can't remap to apid 17
ioapic3 at mainbus0: apid 14 pa 0xfeaff000, version 11, 24 pins
acpihpet0 at acpi0: 2500 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P1)
acpiprt2 at acpi0: bus 4 (P0P4)
acpiprt3 at acpi0: bus 5 (P0P5)
acpiprt4 at acpi0: bus 128 (PCIB)
acpiprt5 at acpi0: bus 133 (POGA)
acpiprt6 at acpi0: bus 134 (POGB)
acpiprt7 at acpi0: bus 131 (BR5D)
acpiprt8 at acpi0: bus 132 (BR5E)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpicpu2 at acpi0: PSS
acpicpu3 at acpi0: PSS
acpibtn0 at acpi0: PWRB
ipmi at mainbus0 not configured
cpu0: PowerNow! K8 2393 MHz: speeds: 2400 2200 2000 1800 1000 MHz
pci0 at mainbus0 bus 0
"NVIDIA nForce4 DDR" rev 0xa3 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 "NVIDIA nForce4 ISA" rev 0xa3
nviic0 at pci0 dev 1 function 1 "NVIDIA nForce4 SMBus" rev 0xa2
iic0 at nviic0
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM registered cmd/addr parity, 
data ECC PC2-5300CL5
spdmem1 at iic0 addr 0x51: 1GB DDR2 SDRAM registered cmd/addr parity, 
data ECC PC2-5300CL5
spdmem2 at iic0 addr 0x52: 1GB DDR2 SDRAM registered cmd/addr parity, 
data ECC PC2-5300CL5
spdmem3 at iic0 addr 0x53: 1GB DDR2 SDRAM registered cmd/addr parity, 
data ECC PC2-5300CL5

iic1 at nviic0
iic1: addr 0x18 00=01 01=01 02=00 03=00 words 00=0101 01=0101 02= 
03= 04= 05= 06

Re: x4100

2010-07-01 Thread Daniel Ouellet
Only difference I can see with what you have here is the bios is more 
recent on mine and I have two drives setup as raid 1.


>> bios0: vendor American Megatrends Inc. version "0ABJX039" date 
04/11/2007


That's it.

I have 4 of them, all with the same problem.



On 7/2/10 12:47 AM, Marco Peereboom wrote:

# dd if=/dev/zero of=/var/test bs=1m count=1000
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 21.012 secs (49901672 bytes/sec)

bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf8fb0 (65 entries)
bios0: vendor American Megatrends Inc. version "080010" date 08/10/2005
bios0: Sun Microsystems Sun Fire X4100 Server

Bah I had been testing on a non M2 version.  Well at least this one
works even though it used to have issues as well.

On Thu, Jul 01, 2010 at 11:16:45PM -0400, Daniel Ouellet wrote:

On 6/30/10 9:27 PM, Marco Peereboom wrote:

It seems that the sun X4100 works now with amd64 GENERIC.MP.  I'd like
to get some test reports from folks in the field.

You have to checkout a kernel using cvs because all niceness isn't in
snaps yet.


Just for the archive, but Marco already have feedback.

No go for the Sun x4100 M2 with latest snapshot

Thu Jul  1 15:28:35 MDT 2010

Only need to do:

dd if=/dev/zero of=/var/test bs=1m count=1000

And you have a crash right away and reboot.

dmesg below:

Best,

Daniel


OpenBSD 4.7-current (GENERIC.MP) #60: Thu Jul  1 15:28:35 MDT 2010
 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3756982272 (3582MB)
avail mem = 3643121664 (3474MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xfbd50 (70 entries)
bios0: vendor American Megatrends Inc. version "0ABJX039" date 04/11/2007
bios0: Sun Microsystems Sun Fire X4100 M2
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC SPCR SLIT OEMB HPET IPET SRAT SSDT
acpi0: wakeup devices PS2K(S1) PS2M(S1) USB0(S4) USB1(S4) MAC_(S5)
P0P1(S4) P0P2(S4) P0P3(S4) P0P4(S4) P0P5(S4) IO4B(S4) BR5B(S4) BR5C(S4)
BR5D(S4) BR5E(S4) IOB2(S4) BR2B(S4) BR2C(S4) BR2D(S4) BR2E(S4) PWRB(S1)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Dual-Core AMD Opteron(tm) Processor 2216, 2393.92 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Dual-Core AMD Opteron(tm) Processor 2216, 2393.64 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Dual-Core AMD Opteron(tm) Processor 2216, 2393.64 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB
64b/line 16-way L2 cache
cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu2: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Dual-Core AMD Opteron(tm) Processor 2216, 2393.64 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu3: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB
64b/line 16-way L2 cache
cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu3: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0: apid 15 pa 0xfec0, version 11, 24 pins
ioapic1 at mainbus0: apid 16 pa 0xfeafd000, version 11, 7 pins
ioapic1: misconfigured as apic 0, can't remap to apid 16
ioapic2 at mainbus0: apid 17 pa 0xfeafc000, version 11, 7 pins
ioapic2: misconfigured as apic 1, can't remap to apid 17
ioapic3 at mainbus0: apid 14 pa 0xfeaff000, version 11, 24 pins
acpihpet0 at acpi0: 2500 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P1)
acpiprt2 at acpi0: bus 4 (P0P4)
acpiprt3 at acpi0: bus 5 (P0P5)
acpiprt4 at acpi0: bus 128 (PCIB)
acpiprt5 at acpi0: bus 133 (POGA)
acpiprt6 at acpi0: bus 134 (POGB)
acpiprt7 at acpi0: bus 131 (BR5D)
acpiprt8 at acpi0: bus 132 (BR5E)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpicpu2 at acpi0: PSS
acpicpu3 at acpi0: PSS
acpibtn0 at acpi0: PWRB
ipmi

Re: x4100

2010-07-01 Thread Marco Peereboom
# dd if=/dev/zero of=/var/test bs=1m count=1000 

1000+0 records in
1000+0 records out
1048576000 bytes transferred in 21.012 secs (49901672 bytes/sec)

bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf8fb0 (65 entries)
bios0: vendor American Megatrends Inc. version "080010" date 08/10/2005
bios0: Sun Microsystems Sun Fire X4100 Server

Bah I had been testing on a non M2 version.  Well at least this one
works even though it used to have issues as well.

On Thu, Jul 01, 2010 at 11:16:45PM -0400, Daniel Ouellet wrote:
> On 6/30/10 9:27 PM, Marco Peereboom wrote:
>> It seems that the sun X4100 works now with amd64 GENERIC.MP.  I'd like
>> to get some test reports from folks in the field.
>>
>> You have to checkout a kernel using cvs because all niceness isn't in
>> snaps yet.
>
> Just for the archive, but Marco already have feedback.
>
> No go for the Sun x4100 M2 with latest snapshot
>
> Thu Jul  1 15:28:35 MDT 2010
>
> Only need to do:
>
> dd if=/dev/zero of=/var/test bs=1m count=1000
>
> And you have a crash right away and reboot.
>
> dmesg below:
>
> Best,
>
> Daniel
>
>
> OpenBSD 4.7-current (GENERIC.MP) #60: Thu Jul  1 15:28:35 MDT 2010
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 3756982272 (3582MB)
> avail mem = 3643121664 (3474MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xfbd50 (70 entries)
> bios0: vendor American Megatrends Inc. version "0ABJX039" date 04/11/2007
> bios0: Sun Microsystems Sun Fire X4100 M2
> acpi0 at bios0: rev 2
> acpi0: tables DSDT FACP APIC SPCR SLIT OEMB HPET IPET SRAT SSDT
> acpi0: wakeup devices PS2K(S1) PS2M(S1) USB0(S4) USB1(S4) MAC_(S5)  
> P0P1(S4) P0P2(S4) P0P3(S4) P0P4(S4) P0P5(S4) IO4B(S4) BR5B(S4) BR5C(S4)  
> BR5D(S4) BR5E(S4) IOB2(S4) BR2B(S4) BR2C(S4) BR2D(S4) BR2E(S4) PWRB(S1)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Dual-Core AMD Opteron(tm) Processor 2216, 2393.92 MHz
> cpu0:  
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
> cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB  
> 64b/line 16-way L2 cache
> cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu0: apic clock running at 199MHz
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Dual-Core AMD Opteron(tm) Processor 2216, 2393.64 MHz
> cpu1:  
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
> cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB  
> 64b/line 16-way L2 cache
> cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu2 at mainbus0: apid 2 (application processor)
> cpu2: Dual-Core AMD Opteron(tm) Processor 2216, 2393.64 MHz
> cpu2:  
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
> cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB  
> 64b/line 16-way L2 cache
> cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu2: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu3 at mainbus0: apid 3 (application processor)
> cpu3: Dual-Core AMD Opteron(tm) Processor 2216, 2393.64 MHz
> cpu3:  
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
> cpu3: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB  
> 64b/line 16-way L2 cache
> cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu3: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
> ioapic0 at mainbus0: apid 15 pa 0xfec0, version 11, 24 pins
> ioapic1 at mainbus0: apid 16 pa 0xfeafd000, version 11, 7 pins
> ioapic1: misconfigured as apic 0, can't remap to apid 16
> ioapic2 at mainbus0: apid 17 pa 0xfeafc000, version 11, 7 pins
> ioapic2: misconfigured as apic 1, can't remap to apid 17
> ioapic3 at mainbus0: apid 14 pa 0xfeaff000, version 11, 24 pins
> acpihpet0 at acpi0: 2500 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (P0P1)
> acpiprt2 at acpi0: bus 4 (P0P4)
> acpiprt3 at acpi0: bus 5 (P0P5)
> acpiprt4 at acpi0: bus 128 (PCIB)
> acpiprt5 at acpi0: bus 133 (POGA)
> acpiprt6 at acpi0: bus 134 (POGB)
> acpiprt7 at acpi0: bus 131 (BR5D)
> acpiprt8 at acpi0: bus 132 (BR5E)
> acpicpu0 at acpi0: PSS
> acpicpu1 at acpi0: PSS
> acpicpu2 at acpi0: PSS
> acpicpu3 at acpi0: PSS
> acpibtn0 at acpi0: PWRB
> ipmi at 

Re: Mac mini G4

2010-07-01 Thread Bryan Vyhmeister
On Thu, Jul 1, 2010 at 4:02 PM, FUGU  wrote:
> Also, while we are at it, does anyone know if openbsd supports
> the latest apple usb ethernet adapter?
> I see that the AXE(4) driver supports Apple USB Ethernet Adapter A1277
> but no info on the latest one
> thanks...

I wasn't aware that there was a new one. The old one works great.
Since we are on the topic of ethernet, I was wondering if anyone has
experienced the gem(4) driver having issues on a Mac mini G4. I have
six Mac mini G4's of varying speeds. There are two 1.25 GHz, two 1.42
GHz, and two 1.5 GHz. I have had mixed results with the built-in
gem(4). I first noticed the problem with one of the 1.25 GHz systems.
With both identically configured, one of them would have the gem(4)
interface drop out every few days and either 'sh /etc/netstart gem0'
or a restart would restore connectivity. This was with OpenBSD/macppc
4.5 and earlier for sure but I believe 4.7 is the same because the 1.5
GHz system I just installed had trouble with gem(4) as well. Anyone
have similar experiences?

Bryan



what is the OpenBSd equivalent for kern.maxfilesperproc on OpenBSD?

2010-07-01 Thread Siju George
Hi,

It is for Squid Optimizations from

http://wiki.squid-cache.org/SquidFaq/SystemSpecificOptimizations

thanks :-)

Siju



Re: what is the OpenBSd equivalent for kern.maxfilesperproc on OpenBSD?

2010-07-01 Thread Daniel Ouellet

On 7/2/10 1:25 AM, Siju George wrote:

Hi,

It is for Squid Optimizations from

http://wiki.squid-cache.org/SquidFaq/SystemSpecificOptimizations


Well your description is miss leading here.

The text on that page said:

"... increase the number of system-wide ..."

so, that would be

# sysctl | grep kern.maxfiles
kern.maxfiles=7030

and that is:

# The maximum number of open files that may be open in the system.

However, the name of the sysclt that your document refer at

kern.maxfilesperproc=8192

Of files per process is set in login.conf and as an example:
# Setting used by MySQL daemon

mysql:\
:openfiles-cur=2048:\
:openfiles-max=3072:\
:tc=daemon:


So, you set that up under the class you will use.

man(5) login.conf

So, depend what you really want to do, use the right place, or if you 
are not sure, then don't touch it.


Best,

Daniel




thanks :-)

Siju




Re: Mac mini G4

2010-07-01 Thread FUGU
On my G4 I 've had no probles so far with gem(4).
I have a 1.25GHz one.
Maybe we can compare logs on this.
However, my mini is not under any heavy network load.
I have it as a DMZ host with snort enabled and
a simple pf config. Nothing much.Just testing so far(7 days)



On Fri, Jul 02, 2010 at 01:07:21AM -0400, Bryan Vyhmeister wrote:
> On Thu, Jul 1, 2010 at 4:02 PM, FUGU  wrote:
> > Also, while we are at it, does anyone know if openbsd supports
> > the latest apple usb ethernet adapter?
> > I see that the AXE(4) driver supports Apple USB Ethernet Adapter A1277
> > but no info on the latest one
> > thanks...
>
> I wasn't aware that there was a new one. The old one works great.
> Since we are on the topic of ethernet, I was wondering if anyone has
> experienced the gem(4) driver having issues on a Mac mini G4. I have
> six Mac mini G4's of varying speeds. There are two 1.25 GHz, two 1.42
> GHz, and two 1.5 GHz. I have had mixed results with the built-in
> gem(4). I first noticed the problem with one of the 1.25 GHz systems.
> With both identically configured, one of them would have the gem(4)
> interface drop out every few days and either 'sh /etc/netstart gem0'
> or a restart would restore connectivity. This was with OpenBSD/macppc
> 4.5 and earlier for sure but I believe 4.7 is the same because the 1.5
> GHz system I just installed had trouble with gem(4) as well. Anyone
> have similar experiences?
>
> Bryan

[demime 1.01d removed an attachment of type application/pgp-signature]