Kapetanakis Giannis | 20 Dec 13:02 2014

ospf - pfsync initial bulk transfer


I've just changed my pair of of firewalls (master/backup) from 
carp/pfsync to ospf/pfsync (both external/internal interfaces).
Primary has metric 1 and backup has metric 10 in interfaces in ospfd.conf.

I'm looking for success stories for the initial bulk transfer/sync of 
states with pfsync when I reboot the primary firewall for maintenance.

I don't want for it to go primary again until the initial sync finishes.

What do you guys do for that?
- Delayed ospfd start?
- copy states from the second firewall immediately after boot?
ssh root <at> fw /sbin/pfctl -S /dev/stdout | /sbin/pfctl -L /dev/stdin

- tricks with ifstated?

thanks for any input on this.


Ignacio Ocampo | 20 Dec 03:51 2014

Best way to upgrade latest OpenBSD version

I know that one of the goals of OpenBSD dev team is launch a new version
every six months. I'm new here, and, I want to know, what is the best way
to update OpenBSD? There is an automated way to do it?


Ignacio Ocampo Millán

Damo Gets | 19 Dec 22:08 2014

Problem getting or finding core dumps

  I've got a problem with a piece of non-BSD software that I'm running
on my OpenBSD 5.4 system.  I'm not looking to you guys for help with it
at all; I'm working closely with the developers on it.  However, it
turns out that it's not at a stage where it's receiving almost daily
segfaults knocking it out of the active processes.  Strangely enough,
though I'm able to get .core files from many of the related programs
that are along with it, when bad things happen to them, this one
primary daemon won't leave a core file.
  I've checked my ulimits, specifically 'ulimit -u' under the user that
this is running as, and I'm only finding that it's 'unlimited'.  As far
as I know, that means that I _should_ be getting a core file
somewhere.  The process name is 'sbbs', and I've searched (as root) my
entire filesystem, not just the small separate filesystem that this
resides on, doing a general search, grepping for 'core', and then
searching through it for 'sbbs', and I'm not finding the file that I
need anywhere.
  The developers do not have any OpenBSD machines available for work on
this software, but they do want to help.  Getting that stack trace is
the only thing that might get around any issues, at this point, or
point in the right direction for where to go with things.  I know
OpenBSD fairly well, but when it comes to kernel internals and things
along the lines of core debugging and [a lot of the] ulimits, I'm still
somewhat in the dark.
  Can anybody tell me if I'm missing anything obvious, and what I might
be able to do to force a core dump next time this guy segfaults?  I
really need to get my hands on that stack and I'm clueless here.  I use
this package as a fully featured communications hub for myself and
several other users, and short of the kludgy solution of running a cron
script job that checks for the process, verifies its health, and
(Continue reading)

Tony Sarendal | 19 Dec 10:13 2014

bgpd.conf macros on 5.5 and up

From 5.5 and up it looks like bgpd macros are broken.

tonsar <at> obc2.rad$ cat bgpd.conf
good="{,, }"
AS 65001
deny from any prefix { $good }
tonsar <at> obc2.rad$

On 5.4:
tonsar <at> obc2.rad$ bgpd -f bgpd.conf
configuration OK
tonsar <at> obc2.rad$

On 5.5:
tonsar <at> obc0.rad$ bgpd -f bgpd.conf -nv
good = "{,, }"
bgpd.conf:3: syntax error
tonsar <at> obc0.rad$

On 5.6 snapshot:
tonsar <at> obc1$ uname -mrsv
OpenBSD 5.6 GENERIC.MP#701 amd64
tonsar <at> obc1$ bgpd -f bgpd.conf -nv
good = "{,, }"
bgpd.conf:3: syntax error
tonsar <at> obc1$

Also, the example from bgpd.conf man page fails on 5.4-5.6.
I haven't tested on 5.3 and lower.
(Continue reading)

C. L. Martinez | 19 Dec 08:35 2014

About special configs to do in OpenBSD for KVM environments

Hi all,

 Please, first of all, I don't want to start a flame or quite similar.
I only want to know what problems I can encounter when I need to
install OpenBSD in kvm environments (mostly CentOS 6.x servers).

 Yes, I know, OpenBSD is not supported to run in virtualization
environments, but many of us only have access to that kind of
environments for testing (new pf rules, updates, etc). We can't use
physical server and although I am not a big fan of this type of
technology, it is here to stay.

 My questions are KVM specific. As far as I know:

a) OpenBSD/i386: turn APIC off and set up vio flags to 0x02

b) OpenBSD/amd64: set up vio flags to 0x02

Anything else??

Adam Thompson | 19 Dec 04:49 2014

suggested change to upgrade56.html

Because this is a new thing that even experienced users can easily 
forget (like I did)...

Index: faq/upgrade56.html
RCS file: /cvs/www/faq/upgrade56.html,v
retrieving revision 1.10
diff -u -r1.10 upgrade56.html
--- faq/upgrade56.html    10 Nov 2014 12:11:12 -0000    1.10
+++ faq/upgrade56.html    19 Dec 2014 03:33:50 -0000
 <at>  <at>  -661,7 +661,8  <at>  <at> 

  The package tools support in-place updating using <tt>pkg_add -u</tt>.
-For instance, to update all your packages, make sure <tt>PKG_PATH</tt> is
+For instance, to update all your packages, make sure <tt>PKG_PATH</tt> 
+/etc/pkg.conf if applicable) is
  pointing to the 5.6 packages directory on your CD or nearest FTP mirror,
  and use something like


-Adam Thompson
  athompso <at> athompso.net

Alfonso Sabato Siciliano | 19 Dec 04:28 2014

OpenBSD sound system

hello, I am willing to know the sound system of OpenBSD, 
so I started to read the manpages. 
I summarized with a graph below, it is right?

sndio(7): The sndio audio and MIDI system provides 
access to audio and MIDI hardware and to services 
provided by sndiod, summarized below.

   |------|	|------|	     |------|
   | app1 |	| app2 |    ....     | appN |
   |------|	|------|	     |------|
      |		   |			 |
     \|/	  \|/			\|/
|		     sndio.h			|
|	    sio_open(3)/mio_open(3)		|
| interface to audio devices and MIDI streams	|
    |		    sndiod(1)		    |
    |		audio/midi server	    |
	       |	           |
	      \|/	          \|/
     |--------------------|  |-------------|
     |       audio(4) 	  |  |   midi(4)   |
     | device-independent |  | raw device  |
     |	  driver layer	  |  | independent |
(Continue reading)

Jason Adams | 19 Dec 02:14 2014

xfce4/apm Power-Management falls off a cliff

Upon, pulling the plug from the wall on my older Toshiba Satellite (which has a new-ish battery)
both xfce4 and apm agree while reporting declining battery power down to about 85%
then both fall off a cliff and immediately indicate 8% and start warning about imminent battery

85% to 8% in the blink of an eye. And nothing in between.

If I plug it back in, let it charge for a 10 minutes, it will be back up around 24%.
If I again unplug, it will drop roughly in a linear fashion. with no sudden

This seems like a bug in what ever apm and xfce4 use to obtain readings.
Any clue where I should start looking for this?


Those who do not understand Unix are condemned to reinvent it, poorly.

Marko Cupać | 18 Dec 16:08 2014

constant blocked procs in vmstat


I have constant number of blocked procs in vmstat after xfce starts
when system-wide dbus is enabled in pkg_scripts on my laptop:

pacija <at> efreet:~ $ vmstat 1 10 
 procs    memory       page                    disk traps          cpu
 r b w    avm     fre  flt  re  pi  po  fr  sr sd0  int   sys   cs us sy id
 1 4 0 201148 7327260 3506   0   0   0   0   0 228  340 14801 1258  2  2 96
 0 4 0 201148 7327260   28   0   0   0   0   0   0   35   540   75  0  0 100
 0 4 0 201156 7327248   42   0   0   0   0   0   0  625  2742  436  0  1 99
 0 4 0 201160 7327240   13   0   0   0   0   0   0  256   904  138  0  0 100
 0 4 0 201248 7327148  173   0   0   0   0   0   0  602  5636  737  0  0 100
 0 4 0 201248 7327148   13   0   0   0   0   0   0  614  3147  460  0  0 100
 0 4 0 201256 7327140   15   0   0   0   0   0   0  202  2064  238  0  0 100
 0 4 0 201256 7327140   13   0   0   0   0   0   0   22  1355  170  0  0 100
 0 4 0 201268 7327128   52   0   0   0   0   0   0   25  2183  399  1  0 99
 0 4 0 201268 7327128   24   0   0   0   0   0   0   18  1518  185  0  0 100

If i disable system-wide dbus, it drops to constant 1.

How can I find out what are blocked processes? And why are they
constantly blocked?

Thank you in advance,

Marko Cupać

(Continue reading)

Marko Cupać | 18 Dec 09:13 2014

clementine stutters when playing local files


When playing local mp3 files in clementine, there are frequent short
skips. Listening to the same files over network (icecast) everything
is ok.

This is modern laptop with SSD disk, I guess it should be faster than

Any advice on where should I start looking for solution?

Thank you in advance,

Marko Cupać

Dutch Ingraham | 18 Dec 01:44 2014

mouse spontaneously detaches in console

Hello all:

I have three different installs of OpenBSD:  one -RELEASE, one -STABLE,
and one -CURRENT.  My wired usb mouse spontaneously detaches on each one
when remaining in the console for about 15 seconds.  However, that was
never much of an issue when I was only using -RELEASE and -STABLE,
since enabling wsmoused would stop that behavior.

However, with -CURRENT, while enabling wsmoused does still stop the 
while in the console, the mouse does not then work in X.

I see there was a recent addition to the Changelog: "Stopped supporting
wsmoused(8) and X(7) in parallel. Code is racy and known to break mice upon
resume."  Unfortunately, from a technical basis, I don't know what that
means, or whether that contributes to my issue.

Is there a way to have the mouse in both console and X in this situation?

Thanks for your help and if further info is needed, please let me know.

dmesg with detached mouse message follows:
OpenBSD 5.6-current (GENERIC.MP) #699: Tue Dec 16 15:55:06 MST 2014
deraadt <at> amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error 11<memory_size>
real mem = 3149918208 (3003MB)
avail mem = 3062276096 (2920MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
(Continue reading)