pf, bridge and vether: interface with no group

2016-02-15 Thread Clemens Goessnitzer
Hello misc, I noticed a strange behaviour with pf, when having three interfaces connected with a bridge(4) device, where two are assigned to the group wlan and one to no group at all. I have two WLAN interfaces, athn0 and athn1, and three wired interfaces, re0 to re2. (re2 is not used ATM.) re0

Re: question about fprintf()

2016-02-15 Thread Todd C. Miller
On Mon, 15 Feb 2016 21:08:20 +0300, Alexei Malinin wrote: > But can fprintf() set errno to EINTR if a program has no signal handlers > (i. e. there are default handlers for all signals)? > For example what will happen with fprintf() in a program with default > signal dispositions if the program's

PPPoE / isakmpd race

2016-02-15 Thread Christopher Snell
Hi, I recently set up a site-to-site IPsec VPN on an OpenBSD firewall/router that connects to the public Internet via PPPoE. I've noticed that the VPN does not come up properly upon system boot because of what appears to be a race condition between the PPPoE connection and isakmpd start. I say

Re: Accessing USB with OpenBSD 5.7/amd64

2016-02-15 Thread Neil Hughes
On 13/02/2016 20:11, jla wrote: Same issue for me. Did you get any answer? This looks like the same issue I hit a while ago () - the dmesg in the original post is similar enough that it's probably the same motherboard (makes sense...HP vs.

Re: Will Softraid RAID1 read from the fastest mirror/-s / supports user-specified device read priority order, nowadays? Takes broken disk out of use?

2016-02-15 Thread Karel Gardas
> ..And therefore you need enterprise disks because they behave "cleanly", as > when using those only, essentially full softraid QoS is maintained at all > times. Interesting! I've understand Nick excellent email in completely reversed sense. I understood it in "use consumer drives which fail

Re: fsck_ffs mystic

2016-02-15 Thread Otto Moerbeek
On Mon, Feb 15, 2016 at 09:16:57AM -0600, Todd wrote: > Can you boot into bsd.rd and try fdisk? I guess you mean fsck_ffs? Also, it's easy to boot into single use mode (-s at the boot prompt), or drop to single user mode when running multi-user (shutdown now). Then you unmount filesystems (if

Re: pkg.conf edit on -current #1870

2016-02-15 Thread Raf Czlonka
On Mon, Feb 15, 2016 at 06:17:39PM GMT, Andrew wrote: > GENERIC.MP #1870 amd64 > > FWIW: Last night did a clean (re) installl using the toronto.edu mirror. > > boot> boot hd0a:/bsd.rd > > Puffy loaded up fine -- but no packages. > > I edited my /etc/pkg.conf > > from: > > ...

Re: fsck_ffs mystic

2016-02-15 Thread Chris Cappuccio
lilit-aibolit [lilit-aibo...@mail.ru] wrote: > Thank you. This is definitely the case then. > I didn't know that fsck could produce fake errors while running on mounted > fs. fsck requires exclusive control of the underlying disk partition. When the partition is mounted, the kernel shares

Re: sshfs man page, -o idmap=user

2016-02-15 Thread Daniel Boyd
That was what I figured since it's relatively new. Unfortunately, because of this, I have been unable to get sshfs working in any meaningful way. Regardless of whether I run sshfs as root or as a regular user (with kern.usermount=1), I can't access any of the files. I don't see a way to change

Re: Will Softraid RAID1 read from the fastest mirror/-s / supports user-specified device read priority order, nowadays? Takes broken disk out of use?

2016-02-15 Thread Tinker
Constantine, Just basically followup to say that I agree with you. On 2016-02-15 17:41, Constantine A. Murenin wrote: On 13 February 2016 at 08:50, Tinker wrote: Hi, 1) http://www.openbsd.org/papers/asiabsdcon2010_softraid/softraid.pdf page 3 "2.2 RAID 1" says that

Re: question about fprintf()

2016-02-15 Thread Alexei Malinin
On 02/15/16 20:27, Todd C. Miller wrote: > On Mon, 15 Feb 2016 19:22:59 +0300, Alexei Malinin wrote: > >> Please tell me can fprintf() set errno to EINTR? > Yes, it is possible but see below. > >> I have not found assignments such as "errno=EINTR" in libc sources >> (src/lib/libc/stdio, amd64

pkg.conf edit on -current #1870

2016-02-15 Thread Andrew
GENERIC.MP #1870 amd64 FWIW: Last night did a clean (re) installl using the toronto.edu mirror. boot> boot hd0a:/bsd.rd Puffy loaded up fine -- but no packages. I edited my /etc/pkg.conf from: ... toronto.edu/pub/OpenBSD/%c/packages/%a/ to:

Re: Will Softraid RAID1 read from the fastest mirror/-s / supports user-specified device read priority order, nowadays? Takes broken disk out of use?

2016-02-15 Thread Tinker
Dear Nick, On 2016-02-15 05:29, Nick Holland wrote: On 02/13/16 11:49, Tinker wrote: Hi, 1) http://www.openbsd.org/papers/asiabsdcon2010_softraid/softraid.pdf page 3 "2.2 RAID 1" says that it reads "on a round-robin basis from all active chunks", i.e. read operations are spread evenly

Re: question about fprintf()

2016-02-15 Thread Todd C. Miller
On Mon, 15 Feb 2016 19:22:59 +0300, Alexei Malinin wrote: > Please tell me can fprintf() set errno to EINTR? Yes, it is possible but see below. > I have not found assignments such as "errno=EINTR" in libc sources > (src/lib/libc/stdio, amd64 OpenBSD-5.6 ) but I'm not sure. > > fprintf()'s man

question about fprintf()

2016-02-15 Thread Alexei Malinin
Hello. Please tell me can fprintf() set errno to EINTR? I have not found assignments such as "errno=EINTR" in libc sources (src/lib/libc/stdio, amd64 OpenBSD-5.6 ) but I'm not sure. fprintf()'s man page does not say anything about errno but POSIX.1 says, "If an output error was encountered,

Re: fsck_ffs mystic

2016-02-15 Thread lilit-aibolit
On 02/15/2016 04:43 PM, Josh Grosse wrote: On 2016-02-15 09:08, lilit-aibolit wrote: On 02/15/2016 04:03 PM, Josh Grosse wrote: See the words "NO WRITE" in that message? This happens because you are attempting to fsck(8) a *mounted* file system. Yes, it's true. But I can't unmount /var

Re: fsck_ffs mystic

2016-02-15 Thread Todd
Can you boot into bsd.rd and try fdisk? On Mon, Feb 15, 2016 at 8:08 AM, lilit-aibolit wrote: > On 02/15/2016 04:03 PM, Josh Grosse wrote: > >> On 2016-02-15 07:57, lilit-aibolit wrote: >> >>> Hi list. >>> After unclear shutdown I've booted in single user mode >>> by

Re: Network isolation of process using rdomain rtable

2016-02-15 Thread Lampshade
It seems it is starting to work. Server command: /usr/local/bin/sudo -u user /usr/bin/nc -4 -k -l 172.10.0.2 9191 Commands for programs I would like to intercept/redirect: #!/bin/sh /usr/local/bin/sudo /sbin/route -T1 exec /usr/local/bin/sudo \ -u user /usr/bin/nc -4 -n -v 172.10.0.2 9191

Re: fsck_ffs mystic

2016-02-15 Thread Josh Grosse
On 2016-02-15 09:08, lilit-aibolit wrote: On 02/15/2016 04:03 PM, Josh Grosse wrote: See the words "NO WRITE" in that message? This happens because you are attempting to fsck(8) a *mounted* file system. Yes, it's true. But I can't unmount /var under normal boot. And then why errors haven't

Re: fsck_ffs mystic

2016-02-15 Thread lilit-aibolit
On 02/15/2016 04:03 PM, Josh Grosse wrote: On 2016-02-15 07:57, lilit-aibolit wrote: Hi list. After unclear shutdown I've booted in single user mode by typing "boot -s". I executed "fsck -fp" and "fsck -fy" few times and got no problem, see screenshot here:

Re: fsck_ffs mystic

2016-02-15 Thread Josh Grosse
On 2016-02-15 07:57, lilit-aibolit wrote: Hi list. After unclear shutdown I've booted in single user mode by typing "boot -s". I executed "fsck -fp" and "fsck -fy" few times and got no problem, see screenshot here:

fsck_ffs mystic

2016-02-15 Thread lilit-aibolit
Hi list. After unclear shutdown I've booted in single user mode by typing "boot -s". I executed "fsck -fp" and "fsck -fy" few times and got no problem, see screenshot here: http://i.piccy.info/i9/f7bced6083e3f77d29dc832102147bfd/1455540839/795750/999296/image1.jpg But after reboot with normal

Network isolation of process using rdomain rtable

2016-02-15 Thread Lampshade
012345678901234567890123456789012345678901234567890123456789 Hello, OpenBSD current amd64 I would like to isolate application from network and also to make sure that every packet goes to certain port at certain IP address. On Linux I achieved that using network namespace, veth, iptables

Re: 64 Queue Size, ARC routing, MP Networking, OpenBSD 5.9

2016-02-15 Thread Andy Lemin
Thanks guys :) As always I will report back on testing results. I have a lot of DR traffic (multiple TB's daily) I can push through this to see how it fairs.. Thanks Andy. On Tue, Feb 9, 2016 at 4:33 PM, Stuart Henderson wrote: > On 2016/02/09 08:22, Chris Cappuccio

Re: Will Softraid RAID1 read from the fastest mirror/-s / supports user-specified device read priority order, nowadays? Takes broken disk out of use?

2016-02-15 Thread Constantine A. Murenin
On 13 February 2016 at 08:50, Tinker wrote: > Hi, > > 1) > http://www.openbsd.org/papers/asiabsdcon2010_softraid/softraid.pdf page 3 > "2.2 RAID 1" says that it reads "on a round-robin basis from all active > chunks", i.e. read operations are spread evenly across disks.