Re: filters in OpenBSD in printing

2020-10-19 Thread Kapfhammer, Stefan
Hello David,

you might make use of the SMM - 4.3BSD Line Printer Spooler Manual.

It is mentioned here https://man.openbsd.org/OpenBSD-6.7/amd64/printcap#SEE_ALSO
but without a referring link.

You can find it here https://docs.freebsd.org/44doc/smm/07.lpd/paper.html

Or for offline reference here 
https://docs.freebsd.org/44doc/smm/07.lpd/paper.pdf

Regards,
-Stefan

P.S. It does not bite, even though it is from 1983



> -Ursprüngliche Nachricht-
> Von: owner-m...@openbsd.org  Im Auftrag
> von Raymond, David
> Gesendet: Dienstag, 20. Oktober 2020 05:19
> An: misc 
> Betreff: filters in OpenBSD in printing
> 
> Questions about lpr printing:
> 
> I tried putting a filter that drives an HP Deskjet printer (works with lprng 
> on
> linux) as an output filter in printcap and it didn't work.
> Would it be more proper to put it as an input filter?  I am still on version 
> 6.7 of
> the OS.  (I saw a recent post indicating that changes were made to the lpr
> system in 6.8.)
> 
> One of the problems was that I couldn't get rid of the banner page even
> though the appropriate flags were set.
> 
> I have looked for lpr documentation more informative than the
> lpr/lpd/printcap man pages, but I haven't found anything.  The printcap page
> describes some really archaic filters, but not much that is helpful in today's
> world.
> 
> I am currently using cups but would like to get rid of it, because if their 
> set of
> filters doesn't do the job, you are stuck.  (Plus other hair-pulling 
> frustrations.)
> 
> Dave
> 
> --
> David J. Raymond
> david.raym...@nmt.edu
> http://kestrel.nmt.edu/~raymond



List of files to remove for upgrade

2020-10-19 Thread Aisha Tammy

Hi,

  I'm wondering why the upgrade guide at 
https://www.openbsd.org/faq/upgrade68.html

doesn't contain more list of files to remove.

Sysclean gives out a lot more names, but I haven't removed them yet cuz I

trust the upgrade guide more as it is crosschecked by humans.

But was still curious why this is much smaller than 66->67.


Aisha



Re: filters in OpenBSD in printing

2020-10-19 Thread Chris Bennett
On Mon, Oct 19, 2020 at 09:19:26PM -0600, Raymond, David wrote:
> Questions about lpr printing:
> 
> I tried putting a filter that drives an HP Deskjet printer (works with
> lprng on linux) as an output filter in printcap and it didn't work.

LPRng was removed a good while back.
What software besides the base lpr system are you using?
What commands are you using exactly?
Does it speak Postscript? That can be really helpful as a lot of
software speaks Postscript. I stopped getting printers that didn't speak
it.

apsfilter is pretty helpful for getting things working. You might give
it a try. Some of it's filters were astoundingly slow. But it helps fill
out printcap.

I haven't used lpr for a few years because my printer is in Mexico and
I'm in Washington state.

> Would it be more proper to put it as an input filter?  I am still on
> version 6.7 of the OS.  (I saw a recent post indicating that changes
> were made to the lpr system in 6.8.)

Someone else will probably be able to explain those changes.
Moving to 6.8 might be well worth it.

> 
> One of the problems was that I couldn't get rid of the banner page
> even though the appropriate flags were set.
> 
> I have looked for lpr documentation more informative than the
> lpr/lpd/printcap man pages, but I haven't found anything.  The
> printcap page describes some really archaic filters, but not much that
> is helpful in today's world.

I haven't looked at the code recently, but I think I know what filters
you are refering to. Super archaic.

> 
> I am currently using cups but would like to get rid of it, because if
> their set of filters doesn't do the job, you are stuck.  (Plus other
> hair-pulling frustrations.)
> 

Can't agree more!

--
Regards,
Chris Bennett



Re: Multiple USB NICs

2020-10-19 Thread Lee Nelson




On Tue, 20 Oct 2020, Aaron Mason wrote:


On Tue, Oct 20, 2020 at 12:29 PM Lee Nelson  wrote:




On Mon, 19 Oct 2020, Allan Streib wrote:


Lee Nelson  writes:


I had considered some late-running script that would query the MAC's of
each NIC and then configure them accordingly or rewrite the hostname.*
files and call netstart on them, but that just seems sloppy and
unreliable.


What about DHCP? It supports MAC-specific configurations.

Allan


Very good point, except in my case, this machine would be the dhcp server.



You could run scripts to set the IP address based on the MAC with this
in each hostname.axenN file:

!/path/to/script axeN

And then write that script to pick the IP address based on the MAC.

--
Aaron Mason - Programmer, open source addict
I've taken my software vows - for beta or for worse


Brilliant!  That's the kind of thing I normally think of, but I hadn't 
yet.  I wish I had thought of this before I ordered adapters using 
different drivers on impulse.  Still, this is an idea I will probably use 
at some point.  Thank you!




filters in OpenBSD in printing

2020-10-19 Thread Raymond, David
Questions about lpr printing:

I tried putting a filter that drives an HP Deskjet printer (works with
lprng on linux) as an output filter in printcap and it didn't work.
Would it be more proper to put it as an input filter?  I am still on
version 6.7 of the OS.  (I saw a recent post indicating that changes
were made to the lpr system in 6.8.)

One of the problems was that I couldn't get rid of the banner page
even though the appropriate flags were set.

I have looked for lpr documentation more informative than the
lpr/lpd/printcap man pages, but I haven't found anything.  The
printcap page describes some really archaic filters, but not much that
is helpful in today's world.

I am currently using cups but would like to get rid of it, because if
their set of filters doesn't do the job, you are stuck.  (Plus other
hair-pulling frustrations.)

Dave

-- 
David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond



Re: Multiple USB NICs

2020-10-19 Thread Aaron Mason
On Tue, Oct 20, 2020 at 12:29 PM Lee Nelson  wrote:
>
>
>
> On Mon, 19 Oct 2020, Allan Streib wrote:
>
> > Lee Nelson  writes:
> >
> >> I had considered some late-running script that would query the MAC's of
> >> each NIC and then configure them accordingly or rewrite the hostname.*
> >> files and call netstart on them, but that just seems sloppy and
> >> unreliable.
> >
> > What about DHCP? It supports MAC-specific configurations.
> >
> > Allan
> >
> Very good point, except in my case, this machine would be the dhcp server.
>

You could run scripts to set the IP address based on the MAC with this
in each hostname.axenN file:

!/path/to/script axeN

And then write that script to pick the IP address based on the MAC.

-- 
Aaron Mason - Programmer, open source addict
I've taken my software vows - for beta or for worse



Re: Input Filter and LPD

2020-10-19 Thread Sean Kamath



> On Oct 19, 2020, at 18:26, Predrag Punosevac  wrote:
> 
> CUPS is not needed around here.

Possibly it will not be needed sometime in the future: 
https://www.theregister.com/2020/10/15/apple_cups_develoment/



Re: Input Filter and LPD

2020-10-19 Thread Predrag Punosevac
Ian Darwin  wrote:

> > Just for the Internet Archive. This is fixed in 6.8 release. Printing
> > works as expected. CUPS is not needed around here.
> 
> Not to complain, but curious: can you send any combination of plain text,
> postscript and PDF via lpd? If so, what input filter(s) are you using?
> 
> Thanks!

Hi Ian,

Yes, I can! 

oko# cat /etc/printcap
# Remote printer must use jetdirect since foomatic-rip doesn't speak LPD
rp|HL-5250DN:\
:lp=9100@192.168.3.15:\
:if=/etc/foomatic-rip/script_brother.sh:\
:sh:sd=/var/spool/output/brother:\
:lf=/var/log/lpd-errs:

oko# cat /etc/foomatic-rip/script_brother.sh
#!/bin/sh

/usr/local/bin/a2ps -BRq --columns=1 -o - | \
/usr/local/bin/foomatic-rip -P HL-5250DN --ppd \
/etc/foomatic-rip/direct/brother-hl-5250dn-postscript-brother.ppd

predrag@oko$ head .xpdfrc
# Set the default PostScript file or command.
psFile "|a2ps -Prp -1 -s2"
psPaperSizeletter

# launch URLs in Firefox
urlCommand "firefox-esr '%s'"

# launch movie annotations in mplayer
movieCommand "/usr/local/bin/mplayer %s"

Best,
Predrag





Re: Input Filter and LPD

2020-10-19 Thread Predrag Punosevac
punoseva...@gmail.com (Predrag Punosevac), 2020.06.08 (Mon) 23:57 (CEST):
> It seems that there is another change on 6.7 perhaps among packages
> which broke printing for me. I am using built in LPD to print onto the
> network connected Brother HL-5250DN. I am getting row PostScript output
> on the printer instead of the document.

Just for the Internet Archive. This is fixed in 6.8 release. Printing
works as expected. CUPS is not needed around here.

Best,
Predrag



Re: Multiple USB NICs

2020-10-19 Thread Lee Nelson




On Mon, 19 Oct 2020, Allan Streib wrote:


Lee Nelson  writes:


I had considered some late-running script that would query the MAC's of
each NIC and then configure them accordingly or rewrite the hostname.*
files and call netstart on them, but that just seems sloppy and
unreliable.


What about DHCP? It supports MAC-specific configurations.

Allan


Very good point, except in my case, this machine would be the dhcp server.



Re: Multiple USB NICs

2020-10-19 Thread Allan Streib
Lee Nelson  writes:

> I had considered some late-running script that would query the MAC's of 
> each NIC and then configure them accordingly or rewrite the hostname.* 
> files and call netstart on them, but that just seems sloppy and 
> unreliable.

What about DHCP? It supports MAC-specific configurations.

Allan



Blobs

2020-10-19 Thread SOUL_OF_ROOT 55
Hi!

It is written in article "Explaining Why We Don't Endorse Other Systems of
gnu.org:

"BSD systems

FreeBSD, NetBSD, and OpenBSD all include instructions for obtaining nonfree
programs in their ports system. In addition, their kernels include nonfree
firmware blobs.

Nonfree firmware programs used with Linux, the kernel, are called “blobs”,
and that's how we use the term. In BSD parlance, the term “blob” means
something else: a nonfree driver. OpenBSD and perhaps other BSD
distributions (called “projects” by BSD developers) have the policy of not
including those. That is the right policy, as regards drivers; but when the
developers say these distributions “contain no blobs”, it causes a
misunderstanding. They are not talking about firmware blobs.

None of those BSD distributions has policies against proprietary
binary-only firmware that might be loaded even by free drivers."

Reference of article "Explaining Why We Don't Endorse Other Systems of
gnu.org: https://www.gnu.org/distros/common-distros.en.html

Is it true that OpenBSD include instructions for obtaining nonfree programs
in their ports system?

Is it true that none of those BSD distributions has policies against
proprietary binary-only firmware that might be loaded even by free drivers?

It is written in LibertyBSD website:

"However, OpenBSD ships with several pieces of non-free, binary only
firmware  in
the base system, and depending on the hardware detected, by default a
script will download more at first boot
,
without informing the user."

Reference of LibertyBSD website: https://libertybsd.net

Is it true that OpenBSD ships with several pieces of non-free, binary only
firmware  in
the base system?


Re: Multiple USB NICs

2020-10-19 Thread Lee Nelson




On Mon, 19 Oct 2020, Theo de Raadt wrote:


Lee Nelson  wrote:


If I have multiple USB Ethernet adapters of identical make and model,
how does OpenBSD distinguish them over time.


In the order their drivers reach "interface attach" code.  There are
multiple reasons the drivers could reach this out of order.


In other words if
there's a reboot or the adapters get unplugged and moved around and
plugged back in, is there a way to make sure that the adapters
associated with axen0 and axen1 maintain those associations?


No.


Is there some way to pin an interface to the adapters MAC address?


No method comes to mind.

Well there is a method, but it is incompatible with KARL kernel
relinking so I don't think people should use that, and hence I'm not
going to explain it.


A related question: if the adapters never move, and always stay in the
same place on their respective USB hubs, will they always be numbered
the same (axen0, axen1, etc)?


Cannot gaurantee that. Especially if they are on different usb busses,
or the initial probe fails, some probes may occur late and thus adjust
the order.

From my testing, all the adapters are plugged into the same hub (not a 
good idea) and they don't get moved around, they appear to stay in order. 
I suppose that could depend on the quality of the hub being used. 
However, in the case of my RPI4, I have a USB3 hub connected to the root 
USB xHCI hub.  If I move an adapter from that hub to one of the USB 2.0 
ports (which are themselves a hub), then it's there's no real pattern was 
to which will come first, the adapters on the USB 3 hub or the adapter on 
the internal USB 2 hub.


The only real solution here, aside from using better hardware, seems to be 
to use adapters with different drivers.  That is the approach I'm trying 
next.


I had considered some late-running script that would query the MAC's of 
each NIC and then configure them accordingly or rewrite the hostname.* 
files and call netstart on them, but that just seems sloppy and 
unreliable.




Re: fresh install

2020-10-19 Thread Chris Bennett
On Mon, Oct 19, 2020 at 05:55:59PM -0500, Hakan E. Duran wrote:
> Dear all,
> 
> Having been a linux user for quite a while, I am used to doing a fresh 
> install every few years, following a few upgrades. I usually set a separate 
> partition for the /home directory to be able to inherit my settings to the 
> fresh installation. This is the first time I did an upgrade in OpenBSD from 
> 6.7 to 6.8, which actually went flawless, but being a skeptical linux user, I 
> am wondering how I can do a fresh install if need be, by preserving my user 
> directory. I chose the auto-partitioning during the installation of OpenBSD 
> 6.7 but I don't know if that would be possible in a scenario like this, since 
> I am not sure if the installation algorithm would recognize the /home 
> directory or not. Your guidance will be greatly appreciated.
> 
> Hakan
> 

You can do a fresh install and preserve existing partitions with great
care and NOT using auto partition. Just don't add /home to the
partitions to be created and make absolutely sure that the area on the
disklabel doesn't include the space allocated for /home.
But only if this fresh install is after having done a fresh install
previously. Use Custom for the disklabel step, which will reflect the
already existing disklabel, except without the mount points. You will
need to delete the /home partition, finish the install, then use
disklabel to add the home partition, fsck -fp it, and mount it manually.
If OK, add to fstab if desired.

Be sure to backup the /home partition before doing this.
Since this is a bit complicated, practice this many times, read the
manual pages very well. Buy a USB drive to practice this on.
Be sure to do something wrong. Understanding this will really help you
if you somehow have a disaster, like a sudden power failure that messes
up a critical partition hopelessly.

This is not Linux. The rules are totally different. If you ask yourself
what you would do in Linux, you have failed in this task.

Auto-partition is really helpful for someone new to OpenBSD.
But I rarely partition across only a single disk and always partition
some special partitions like /var/postgresql, /home/vip-user, /var/www,
etc. /usr/src, /usr/obj are not needed by every user now that we have
syspatch.

Have fun,
Chris Bennett




Re: dmesg for 6.8-release on Pine A64+ 1GB (Arm64)

2020-10-19 Thread Stuart Longland
On 19/10/20 2:20 am, pipus wrote:
> maybe no need to ruin the 6.8 release with a mention of linux,"other 
> unfinished broken operating systems" might be better as a reference point? :)

A "finished" OS is one that's no longer being maintained, sitting on old
media quietly bit-rotting away to uselessness.
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.



Re: fresh install

2020-10-19 Thread Tom Smyth
Hi Hakan,
easiest method would be to have your /home on a separate drive if
possible...   that way when you run the installer
your "OS Disk"  can be blown away by the auto partitioning and then
you can manually update the /etc/fstab to mount
/home to the home partition on your "Own UserDisk"

this I think is the most foolproof  (tom proof anyway )   way of doing it ...

the partition method / offsets may change from version to version (in
my humble experience) it may be because the different
disk manufacturers.

that said the OpenBSD Installers / upgrade tools are designed to be
straightforward, not to be too complex

for instance if you dont install a given install set eg xbase.tgz  at
install time, you can simply download it and extract the tgz
file in / and it will install the set just like the installer would.

If you love your data and you are unfamiliar with OpenBSDs partitions
and installers I would not be reinstalling the OS
over existing partitions without a backup.

the upgrade tools bsd.rd  / sysupgrade or the latest install.iso or
install.img are pretty  reliable when it comes to upgrades.
(even when I dont use the standard partition layouts)

I hope this helps

Tom Smyth




On Tue, 20 Oct 2020 at 00:14, Hakan E. Duran  wrote:
>
> Dear all,
>
> Having been a linux user for quite a while, I am used to doing a fresh 
> install every few years, following a few upgrades. I usually set a separate 
> partition for the /home directory to be able to inherit my settings to the 
> fresh installation. This is the first time I did an upgrade in OpenBSD from 
> 6.7 to 6.8, which actually went flawless, but being a skeptical linux user, I 
> am wondering how I can do a fresh install if need be, by preserving my user 
> directory. I chose the auto-partitioning during the installation of OpenBSD 
> 6.7 but I don't know if that would be possible in a scenario like this, since 
> I am not sure if the installation algorithm would recognize the /home 
> directory or not. Your guidance will be greatly appreciated.
>
> Hakan
>


-- 
Kindest regards,
Tom Smyth.



fresh install

2020-10-19 Thread Hakan E. Duran
Dear all,

Having been a linux user for quite a while, I am used to doing a fresh install 
every few years, following a few upgrades. I usually set a separate partition 
for the /home directory to be able to inherit my settings to the fresh 
installation. This is the first time I did an upgrade in OpenBSD from 6.7 to 
6.8, which actually went flawless, but being a skeptical linux user, I am 
wondering how I can do a fresh install if need be, by preserving my user 
directory. I chose the auto-partitioning during the installation of OpenBSD 6.7 
but I don't know if that would be possible in a scenario like this, since I am 
not sure if the installation algorithm would recognize the /home directory or 
not. Your guidance will be greatly appreciated.

Hakan



Re: Switching layout in vmm linux guest on OpenBSD host with english layout only

2020-10-19 Thread Martin
TightVNC marked as Attic in ports/net/tightvnc CVS source tree. May I update it 
and return it back to the tree in order to have layout switching functionality?

Martin

‐‐‐ Original Message ‐‐‐
On Thursday, October 8, 2020 9:35 AM, Stuart Henderson  
wrote:

> On 2020/10/07 23:11, Mike Larkin wrote:
>
> > On Tue, Oct 06, 2020 at 02:28:54PM +, Martin wrote:
> >
> > > Hi,
> > > Linux Guest has virtual dummy video card to emulate video hardware. Linux 
> > > Guest has TightVNC server running also. It automatically starts on boot. 
> > > Guest has two layouts.
> > > The same Guest *.qcow2 image is running on both Linux host and OpenBSD 
> > > vmm host.
> > >
> > > 1.  When I connected from Linux host by TightVNC with EN layout only to 
> > > Guest, I can switch layout and I see symbols when input.
> > > 2.  When I connected from OpenBSD host by ssvnc with only EN layout 
> > > present, I can switch layout in Guest but no symbols input. Any pressed 
> > > key shows nothing, like keyboard is absent at all.
> > >
> > > Any fresh idea can help.
> > > Martin
> >
> > Whatever your issue is, it's not with vmm(4)/vmd(8) as we don't emulate a
> > keyboard at all. So it would sorta be hard to mess up the layout on a device
> > we don't even say we have.
>
> yep.
>
> > Go talk to the TightVNC or ssvnc people, the issue is in one of those two
> > products.
>
> ssvnc is old and doesn't have the keycodes extension.
>
> I suggest trying tigervnc's version of vncviewer first which I think
> supports it, otherwise try getting tightvnc built on OpenBSD.
>
> > > ‐‐‐ Original Message ‐‐‐
> > > On Friday, October 2, 2020 7:34 AM, Stuart Henderson s...@spacehopper.org 
> > > wrote:
> > >
> > > > On 2020-09-30, Martin martin...@protonmail.com wrote:
> > > >
> > > > > Graphical mode of vmm
> > > >
> > > > vmm has no graphical mode ..
> > > >
> > > > > and qemu
> > > >
> > > > and has no interaction with qemu.
> > > > If you're using qemu on OpenBSD then it's emulating a cpu in software,
> > > > not managing a VM on your real cpu.
> > > >
> > > > > Layout switching works fine in qemu on Debian host even the host has 
> > > > > single english layout.
> > > > > But layout switching doesn't work in vmm and can't be changed in any 
> > > > > way. OpenBSD host uses single english layout as Debian host.
> > > > > Looking any solution on how to fix it. Please suggest.
> > > >
> > > > Which vnc client are you using? AFAIK you want one which supports the
> > > > extension to use raw keycodes rather than keysyms for things to work
> > > > properly, I believe tigervnc's version of vncviewer does this.




Re: OpenSMTP - Wrong user for Dovecot LMTP

2020-10-19 Thread Aisha Tammy

On 10/19/20 1:18 PM, Chris Bennett wrote:

On Mon, Oct 19, 2020 at 06:24:47AM -0400, Aisha Tammy wrote:

On 10/19/20 12:20 AM, Kastus Shchuka wrote:

On Sun, Oct 18, 2020 at 08:55:16PM -0400, Aisha Tammy wrote:

Hi,

   I just upgraded to 6.8 and the upgrade process has been super cool and 
simple :)

Unfortunately I seem to have hit some weird issue in OpenSMTPD where it has 
stopped
delivering the mail using Dovecots LMTP due to sending as wrong user.

osmtpd tries to send the mail as *_smtpd* even when configured to send as a
different user *excision*



Could it be this change: https://marc.info/?t=15878902902=1=2 ?



Well damn... That would indeed cause this error.
I guess a simple fix would be to add _smtpd to the socket group or change socket
group to _smtpd.

Another fix would be to have the whole virtual user system also be done using
_smtpd but I feel that keeping things with separate users is better.

Thanks a lot for the answer!

Aisha



Are you using Maildir and IMAP from dovecot? I am.
I've setup using vmail as the user for dovecot. Something similar to
your virtual user files, except that I have three files:
vdomains, vaddr and vusers.

vusers has the table you are using, except moving to user vmail instead
of excision, which doesn't matter. vdomains are the domains getting
mail.
vaddr are just the plain addresses used.

action a01 lmtp "/var/dovecot/lmtp" rcpt-to alias 
action a02 lmtp "/var/dovecot/lmtp" rcpt-to virtual 

match from any for local action a01
match from any for domain  rcpt-to  action a02

This works really well. I'm also using PostgreSQL for the users,
passwords and home folders for dovecot, which solves the upcoming
removal of bsdauth in dovecot.

However, unrelated I'm having trouble setting up auth for sending. There
are many conflicting examples which I can't sort out. I'll look over
what you've posted to see if that can work for me. I have four mail
domains on this server and I'm definitely missing some small piece of
the puzzle.

Regards,
Chris Bennett



Yea, take a look at my config, it allows senders to send from any of their
allowed aliases. like no...@domain1.com has an alias anothern...@domain2.org.
Then no...@domain1.com can both send and receive mails for anothernoob.

You have a create the virtuals table, and a reverse virtuals table, called 

in my config.

Though I don't use postgresql or anything... I just cooked up a small homegrown
scheme using openssh and passwd file format storage for users and passwords.
Everyone supports that, don't think its gonna be killed anytime soon :D

Aisha



bioctl -cC -l /dev/sd1a softraid0 for encryption two disks RAID1 mirrored

2020-10-19 Thread Martin
Hi misc,

I'd like to have two encrypted 1TB disks in RAID 1 mirror mode (no hardware 
RAID installed). Is it possible to use bioctl for that purpose or do I need to 
use HW RAID and encrypt mirrored disks with bioctl -cC -l /dev/sd1a softraid0 ?

Please advice.

Martin



Logs, ' modernity', and stdout - daemon that log on stdout - prometheus

2020-10-19 Thread Sven F.
Many new software for ' reason ' think STDOUT is a logging interface.

Of course level may become complex , and nothing stops the new
https://www.freedesktop.org/software/systemd/man/sd-daemon.html * no comment *

The prometheus package just uses the nice rcctl tool to daemonize and pipe
to logger , fixing level to info : Production ready !
(I'm poking around this because I am integrating VictoriaMetrics.)

Fun fact none of them follow the SD_* tag to level the log, prometheus
is doing heroku style log , Victoria something similar, no info on
actual level ...

I first though logger could be made SD_* compliant and did it , but those
go program don't even follow that ( they probably more upstart friendly )

I can send that patch , on -d it reads stdin but look for the  and
change level.

Logger is so basic , i fear any change would never made it into base
So i thought about a perl script , as perl is in base, like so:

--
# ls -l  /usr/local/share/examples/prometheus/logger.pl
-rwxr--r--  1 _prometheus  wheel  246 Oct 19 17:35
/usr/local/share/examples/prometheus/logger.pl
--
[0]-[/home/VictoriaMetrics]
# cat /usr/local/share/examples/prometheus/logger.pl
#!/usr/bin/perl
use Sys::Syslog qw(:standard :macros);
openlog("prometheus", "pid", "daemon");

while (my $l = <>) {
  $l =~ /level=(\w+)/;
  my $ll = $1 ? $1 : "info";
  $ll = ($ll eq "warn") ? "warning" : $ll;
  syslog($ll, $l);
}

closelog();
--

and then the rc.start is like this :
--
rc_start() {
${rcexec} "${daemon} ${daemon_flags} < /dev/null 2>&1 | \
/usr/local/share/examples/prometheus/logger.pl"
}
--

I tried to inline the perl but it's just almost impossible to \ all
the $" etc..  correctly.

Maybe logger could have a -d hero and a -d sd to do that job, or it
just kept package base,
or a similar perl logger could be added so it shared for those new log
" method "
( I know ttyd is like that too )

I Hope to get some positive feedback on how to manage those log ,
and on pushing that for the package or going down the logger road

Best.

-- 
--
-
Knowing is not enough; we must apply. Willing is not enough; we must do



Re: South American mirrors?

2020-10-19 Thread Umgeher Torgersen
I've a not full mirror, just for amd64.

http://openbsd.dc.vikingmakt.tech/

br, campos do jordao SP.

On Mon, Oct 19, 2020 at 11:53:06AM -0300, Eike Lantzsch wrote:
> On Monday, 19 October 2020 11:29:34 -03 Stuart Henderson wrote:
> > On 2020-10-19, Eike Lantzsch  wrote:
> > > Hello y'all,
> 
> and thanx to y'all
> 
> > > Thank you for 6.8 and a painless way to upgrade.
> > > Just out of curiosity and as a sidenote: downloading from Brazil was
> > > always faster for me than from Canada or Europe.
> > > Is there any information available about what happened to the South
> > > American mirrors of Argentina, Brazil and Uruguay? They are still
> > > there with 6.6 and 6.7 but no 6.8 and accordingly already do not
> > > show up in the mirror list.
> > 
> > There was never a mirror on the official list in Uruguay.
> oops - maybe I mixed that up in my memory with Debian.
> > The mirrors in Argentina closed.
> a pity ...
> 
> Thanks Stuart for the quick answer. We'll see if and when UFPR 
> (Universidade Federal do Paraná) updates their mirror.
> 
> > http://openbsd.c3sl.ufpr.br/pub/OpenBSD/ exists again (it was
> > previously broken so was removed from the list) but does not have 6.8
> > yet.
> 
> > > Do those mirrors not comply anymore with the requirements for
> > > mirrors or will they come up later with 6.8 or is it due to the
> > > situation of the pandemic and the closure of the s.am.
> > > universities?
> 
> > No idea..
> No wonder. An insider of the university would probably know  - please 
> don't bother.
> Ricardo Marcelo Fonseca's email of whois is not available anymore so I 
> got no comment from their side.
> 
> 
> 



Re: Inphi CS4223 for 4x 10GbE SFP+

2020-10-19 Thread Stuart Henderson
On 2020-10-19, Harald Dunkel  wrote:
> On 10/19/20 4:36 PM, Stuart Henderson wrote:
>> On 2020-10-19, Tom Smyth  wrote:
>>> Hi Harald, check the Atom processor and make sure that it is not one
>>> of those ones that fail after a while (some electrical issue) ...
>> 
>> It isn't.
>> 
>> 
> Anyway, some more precise information about the affected models would be
> highly appreciated.
>
> Regards
> Harri
>
>

Denverton Atoms (C2000). Usual fix for those seems to be to pull-up
LPC_CLKOUT0 or LPC_CLKOUT1 with approx 100 ohms to +3.3v.
See https://www.eevblog.com/forum/microcontrollers/intel-atom-c2000-failures/




Re: Inphi CS4223 for 4x 10GbE SFP+

2020-10-19 Thread Stuart Henderson
On 2020-10-19, Harald Dunkel  wrote:
> On 10/19/20 4:40 PM, Stuart Henderson wrote:
>> 
>> I can't say for sure but I think there's a high chance that the 10G
>> will work, and at least some of the 1G will work, but you might run into
>> problems with the 1G "bypass" ports.
>> 
>> dmesg would be of interest :)
>> 
>> 
>
> Of course. The host are already on the way. I will post the dmesg output
> asap.
>
> What would these bypass problems look like? Hopefully the bypass feature
> can be turned off/ignored.

If there are problems then possibly 2 of the ports either won't work
or will be connected directly to 2 of the other ports until a magic
command is sent somehow (either gpio or via some memory mapped io
port I guess, I don't know the hardware).

> Anything else I should look for?

Nothing in particular that I can think of.



Re: bioctl -cC -l /dev/sd1a softraid0 for encryption two disks RAID1 mirrored

2020-10-19 Thread Erling Westenvik
On Mon, Oct 19, 2020 at 06:28:50PM +, Martin wrote:
> I'd like to have two encrypted 1TB disks in RAID 1 mirror mode (no hardware 
> RAID installed). Is it possible to use bioctl for that purpose or do I need 
> to use HW RAID and encrypt mirrored disks with bioctl -cC -l /dev/sd1a 
> softraid0 ?
> Please advice.

Yes, it's possible, and quite common I guess. OpenBSD cannot boot from
an encrypted softraid(4) RAID 1+CRYPTO though, so true RAID 1+CRYPTO FDE
is not achieveable. (You'll have to leave an unencrypted partition for
root so that the system can boot into singleuser. When not finding the
remaining of fstab(5) mounts, rc(8) will complain and stop and give you
the option to drop to a prompt where you can manually bioctl(8) the
CRYPTO partition before continue booting. Kinda cumbersome since every
(re)boot will have to be performed attended, so you should carefully
consider whether your data is truly so important as to justify the added
troubles.)

Cheers,
Erling



Re: South American mirrors?

2020-10-19 Thread Rachel Roch
One of the CDNs would seem the obvious answer to your problem. Or have you 
already tried them ?

Addresses are :
Fastly (CDN)
https://cdn.openbsd.org/pub/OpenBSD/
Cloudflare (CDN)
https://cloudflare.cdn.openbsd.org/pub/OpenBSD/
Verizon Digital Media Services (CDN)
https://mirror.vdms.com/pub/OpenBSD/


19 Oct 2020, 14:13 by zp6...@gmx.net:

> Hello y'all,
> Thank you for 6.8 and a painless way to upgrade.
> Just out of curiosity and as a sidenote: downloading from Brazil was
> always faster for me than from Canada or Europe.
> Is there any information available about what happened to the South
> American mirrors of Argentina, Brazil and Uruguay? They are still there
> with 6.6 and 6.7 but no 6.8 and accordingly already do not show up in
> the mirror list.
> Do those mirrors not comply anymore with the requirements for mirrors or
> will they come up later with 6.8 or is it due to the situation of the
> pandemic and the closure of the s.am. universities?
> Does anyone know?
> Cheers
> Eike
> --
> Eike Lantzsch ZP6CGE
> 01726 Asuncion / Paraguay
>



Re: OpenSMTP - Wrong user for Dovecot LMTP

2020-10-19 Thread Chris Bennett
On Mon, Oct 19, 2020 at 06:24:47AM -0400, Aisha Tammy wrote:
> On 10/19/20 12:20 AM, Kastus Shchuka wrote:
> > On Sun, Oct 18, 2020 at 08:55:16PM -0400, Aisha Tammy wrote:
> > > Hi,
> > > 
> > >   I just upgraded to 6.8 and the upgrade process has been super cool and 
> > > simple :)
> > > 
> > > Unfortunately I seem to have hit some weird issue in OpenSMTPD where it 
> > > has stopped
> > > delivering the mail using Dovecots LMTP due to sending as wrong user.
> > > 
> > > osmtpd tries to send the mail as *_smtpd* even when configured to send as 
> > > a
> > > different user *excision*
> > 
> > 
> > Could it be this change: https://marc.info/?t=15878902902=1=2 ?
> > 
> 
> Well damn... That would indeed cause this error.
> I guess a simple fix would be to add _smtpd to the socket group or change 
> socket
> group to _smtpd.
> 
> Another fix would be to have the whole virtual user system also be done using
> _smtpd but I feel that keeping things with separate users is better.
> 
> Thanks a lot for the answer!
> 
> Aisha
> 

Are you using Maildir and IMAP from dovecot? I am.
I've setup using vmail as the user for dovecot. Something similar to
your virtual user files, except that I have three files:
vdomains, vaddr and vusers.

vusers has the table you are using, except moving to user vmail instead
of excision, which doesn't matter. vdomains are the domains getting
mail.
vaddr are just the plain addresses used.

action a01 lmtp "/var/dovecot/lmtp" rcpt-to alias 
action a02 lmtp "/var/dovecot/lmtp" rcpt-to virtual 

match from any for local action a01 
match from any for domain  rcpt-to  action a02

This works really well. I'm also using PostgreSQL for the users,
passwords and home folders for dovecot, which solves the upcoming
removal of bsdauth in dovecot.

However, unrelated I'm having trouble setting up auth for sending. There
are many conflicting examples which I can't sort out. I'll look over
what you've posted to see if that can work for me. I have four mail
domains on this server and I'm definitely missing some small piece of
the puzzle.

Regards,
Chris Bennett




Re: Inphi CS4223 for 4x 10GbE SFP+

2020-10-19 Thread Harald Dunkel

On 10/19/20 4:36 PM, Stuart Henderson wrote:

On 2020-10-19, Tom Smyth  wrote:

Hi Harald, check the Atom processor and make sure that it is not one
of those ones that fail after a while (some electrical issue) ...


It isn't.



Anyway, some more precise information about the affected models would be
highly appreciated.

Regards
Harri



Re: South American mirrors?

2020-10-19 Thread Brian Brombacher



> On Oct 19, 2020, at 10:29 AM, Stuart Henderson  wrote:
> 
> On 2020-10-19, Rachel Roch  wrote:
>> One of the CDNs would seem the obvious answer to your problem. Or have you 
>> already tried them ?
> 
> They fetch files from origin sources on the fly, mostly from Canada
> (for fastly/cloudflare) or USA (VDMS). Frequently fetched files can get
> cached for a bit but if you're somewhere far from the origin they are
> still not great. Usually better than connected directly to a far-away
> site (they do keepalives so there are fewer delays, and the network
> path is usually not too bad) but not as good as a real mirror.
> 
> Worth a try but don't expect magic (and there can be caching problems
> with snapshots).
> 
>> Addresses are :
>> Fastly (CDN)
>> https://cdn.openbsd.org/pub/OpenBSD/
>> Cloudflare (CDN)
>> https://cloudflare.cdn.openbsd.org/pub/OpenBSD/
>> Verizon Digital Media Services (CDN)
>> https://mirror.vdms.com/pub/OpenBSD/
>> 
>> 
>> 19 Oct 2020, 14:13 by zp6...@gmx.net:
>> 
>>> Hello y'all,
>>> Thank you for 6.8 and a painless way to upgrade.
>>> Just out of curiosity and as a sidenote: downloading from Brazil was
>>> always faster for me than from Canada or Europe.
>>> Is there any information available about what happened to the South
>>> American mirrors of Argentina, Brazil and Uruguay? They are still there
>>> with 6.6 and 6.7 but no 6.8 and accordingly already do not show up in
>>> the mirror list.
>>> Do those mirrors not comply anymore with the requirements for mirrors or
>>> will they come up later with 6.8 or is it due to the situation of the
>>> pandemic and the closure of the s.am. universities?
>>> Does anyone know?
>>> Cheers
>>> Eike
>>> --
>>> Eike Lantzsch ZP6CGE
>>> 01726 Asuncion / Paraguay
>>> 
>> 
>> 

Hey Eike,

https://mirror.planetunix.net/pub/OpenBSD has a local endpoint in São Paulo, 
Brazil if that is helpful.  Everything except packages are stored on the 
endpoint.  If you need greater speed from the node, I can upgrade it for a 
short period of time.

Cheers,
Brian




Re: Inphi CS4223 for 4x 10GbE SFP+

2020-10-19 Thread Harald Dunkel

On 10/19/20 4:40 PM, Stuart Henderson wrote:


I can't say for sure but I think there's a high chance that the 10G
will work, and at least some of the 1G will work, but you might run into
problems with the 1G "bypass" ports.

dmesg would be of interest :)




Of course. The host are already on the way. I will post the dmesg output
asap.

What would these bypass problems look like? Hopefully the bypass feature
can be turned off/ignored.

Anything else I should look for?


Regards
Harri



Re: bird make network unusable on 6.8-current

2020-10-19 Thread Tom Smyth
Hi Bastien,
can you do a
route show -n |grep 10\.42
Im guessing here but
can you verify if BGP  or Ospf is  *Not* inserting  routes that are
more specific than your connected route on your interface

say you have 10.42.42.x/24  on your interface em0

and then you receive a /32 route 10.42.42.1  to point at another address

once that route is installed your kernel wont know how to look up the
mac address of 10.42.42.1  (because it will no longer try your
physical interface)

quick workaround is put a sciatic arp entry for the ips that are being
inserted as a morespecific route than your connected route

proper workaround filter out the more specifics If you need more
specifics (have the more specific ips on a separate network that does
not conflict with your connected routes

Hope this helps


On Mon, 19 Oct 2020 at 17:02, Bastien Durel  wrote:
>
> Le vendredi 03 avril 2020 à 17:41 +0200, Bastien Durel a écrit :
> > Hello,
> >
> > As bird makes 6.6 panic, I tested it on 6.6-current. The kernel does
> > not panic, but after bird runs, networking deos not work anymore.
> >
> > Bird seems to work correctly, it inserts routes in the kernel as
> > intended :
> >
> > (before bird)
> > Routing tables
> >
> > Internet:
> > DestinationGatewayFlags   Refs  Use   Mtu
> > Prio Iface
> > default10.42.42.1 UG100 -
> > 56 em0
> > 224/4  127.0.0.1  URS0   17 32768
> > 8 lo0
> > 10.42.2/24 10.42.42.21UG100 -
> > 56 em0
> > 10.42.42/2410.42.42.69U1h1   51 -
> > 56 em0
> > 10.42.42.3 10.42.42.69UGHD   1   51 - L
> > 56 em0
> > 10.42.42.6908:00:27:d6:6e:dd  UHLhl  1   26 -
> > 1 em0
> > 10.42.42.255   10.42.42.69UHb0   10 -
> > 1 em0
> > 127/8  127.0.0.1  UGRS   00 32768
> > 8 lo0
> > 127.0.0.1  127.0.0.1  UHhl   12 32768
> > 1 lo0
> >
> > (with bird)
> > Routing tables
> >
> > Internet:
> > DestinationGatewayFlags   Refs  Use   Mtu
> > Prio Iface
> > default10.42.42.1 UGS5   12 -
> > 8 em0
> > default10.42.42.1 UG100 -
> > 56 em0
> > 224/4  127.0.0.1  URS0   15 32768
> > 8 lo0
> > 10.0.42.21 10.42.42.21UGH1   00 -
> > 56 em0
> > 10.42.0/24 10.42.42.1 UG100 -
> > 56 em0
> > 10.42.1.56/30  10.42.42.21UG100 -
> > 56 em0
> > 10.42.1.64/30  10.42.42.21UG100 -
> > 56 em0
> > 10.42.1.76/30  10.42.42.21UG100 -
> > 56 em0
> > 10.42.2/24 10.42.42.21UGS04 -
> > 8 em0
> > 10.42.2/24 10.42.42.21UG100 -
> > 56 em0
> > 10.42.2.25410.42.42.21UGH1   00 -
> > 56 em0
> > 10.42.7.6  10.42.42.21UGH1   00 -
> > 56 em0
> > 10.42.7.7  10.42.42.21UGH1   00 -
> > 56 em0
> > [...]
> >
> > Bird config is simple (stripped comments):
> > router id 10.42.42.69;
> > protocol device {
> > }
> > protocol direct {
> > disabled;   # Disable by default
> > ipv4;   # Connect to default IPv4 table
> > ipv6;   # ... and to default IPv6 table
> > }
> > protocol kernel {
> > ipv4 {  # Connect protocol to IPv4 table by
> > channel
> >   import none;  # Import to table, default is import
> > all
> >   export all;   # Export to protocol. default is
> > export none
> > };
> > }
> > protocol ospf v2 ospfv2 {
> > rfc1583compat yes;
> > tick 2;
> > ipv4 {};
> > area 0 {
> >  interface "em0" { cost 10; };
> > };
> > }
> >
> > But although bird adjacencies are ok, the box cannot communicate with
> > others, via TCP (ssh) or ping, even on the same link :
> >
> > BIRD 2.0.6 ready.
> > ospfv2:
> > Router ID   Pri  State  DTime   Interface  Router IP
> > 10.42.42.21   1 ExStart/DR  39.261  em0
> > 10.42.42.21
> > 10.42.42.11 ExStart/BDR 38.635  em010.42.42.1
> > BIRD 2.0.6 ready.
> > ospfv3:
> > Router ID   Pri  State  DTime   Interface  Router IP
> > 10.42.42.21   1 Full/DR 35.854  em0
> > fe80::225:22ff:fe1e:bb7
> > 10.42.42.11 Full/BDR36.525  em0
> > fe80::4262:31ff:fe01:4b66
> >
> > PING fe80::225:22ff:fe1e:bb7 (fe80::225:22ff:fe1e:bb7): 56 data bytes
> > ping6: sendmsg: Network is unreachable
> > ping: wrote fe80::225:22ff:fe1e:bb7 64 chars, ret=-1
> > ping6: sendmsg: Network is unreachableping: wrote
> > fe80::225:22ff:fe1e:bb7 64 chars, 

Re: Inphi CS4223 for 4x 10GbE SFP+

2020-10-19 Thread Sven F.
On Mon, Oct 19, 2020 at 10:55 AM Stuart Henderson  wrote:
>
> On 2020-10-19, Harald Dunkel  wrote:
> > Hi folks,
> >
> > I am about to order 2 network appliances, providing an
> > "Inphi CS4223 for 4x 10GbE SFP+".
>
> This is the PHY (physical interface layer) not the NIC type itself.
> Since the gigabit are listed as i211 (which *is* a NIC type) it would
> seem likely they are attached to the main chipset.
>
> I can't say for sure but I think there's a high chance that the 10G
> will work, and at least some of the 1G will work, but you might run into
> problems with the 1G "bypass" ports.
>
> dmesg would be of interest :)
>
>

1G works over the SFP , I don't remember having a bypass port on the SFPs
when i tested the thing

Very difficult to have more speed, apparently some kernel quirks are
limiting that
according to comment in the code i saw.

I tested against a dlink ethernet to SFP , on loopback and with some
deverton based
hardware.

-- 
--
-
Knowing is not enough; we must apply. Willing is not enough; we must do



Re: bird make network unusable on 6.8-current

2020-10-19 Thread Bastien Durel
Le vendredi 03 avril 2020 à 17:41 +0200, Bastien Durel a écrit :
> Hello,
> 
> As bird makes 6.6 panic, I tested it on 6.6-current. The kernel does
> not panic, but after bird runs, networking deos not work anymore.
> 
> Bird seems to work correctly, it inserts routes in the kernel as
> intended :
> 
> (before bird)
> Routing tables
> 
> Internet:
> Destination    Gateway    Flags   Refs  Use   Mtu 
> Prio Iface
> default    10.42.42.1 UG1    0    0 -   
> 56 em0  
> 224/4  127.0.0.1  URS    0   17 32768
> 8 lo0  
> 10.42.2/24 10.42.42.21    UG1    0    0 -   
> 56 em0  
> 10.42.42/24    10.42.42.69    U1h    1   51 -   
> 56 em0  
> 10.42.42.3 10.42.42.69    UGHD   1   51 - L 
> 56 em0  
> 10.42.42.69    08:00:27:d6:6e:dd  UHLhl  1   26 -
> 1 em0  
> 10.42.42.255   10.42.42.69    UHb    0   10 -
> 1 em0  
> 127/8  127.0.0.1  UGRS   0    0 32768
> 8 lo0  
> 127.0.0.1  127.0.0.1  UHhl   1    2 32768
> 1 lo0  
> 
> (with bird)
> Routing tables
> 
> Internet:
> Destination    Gateway    Flags   Refs  Use   Mtu 
> Prio Iface
> default    10.42.42.1 UGS    5   12 -
> 8 em0  
> default    10.42.42.1 UG1    0    0 -   
> 56 em0  
> 224/4  127.0.0.1  URS    0   15 32768
> 8 lo0  
> 10.0.42.21 10.42.42.21    UGH1   0    0 -   
> 56 em0  
> 10.42.0/24 10.42.42.1 UG1    0    0 -   
> 56 em0  
> 10.42.1.56/30  10.42.42.21    UG1    0    0 -   
> 56 em0  
> 10.42.1.64/30  10.42.42.21    UG1    0    0 -   
> 56 em0  
> 10.42.1.76/30  10.42.42.21    UG1    0    0 -   
> 56 em0  
> 10.42.2/24 10.42.42.21    UGS    0    4 -
> 8 em0  
> 10.42.2/24 10.42.42.21    UG1    0    0 -   
> 56 em0  
> 10.42.2.254    10.42.42.21    UGH1   0    0 -   
> 56 em0  
> 10.42.7.6  10.42.42.21    UGH1   0    0 -   
> 56 em0  
> 10.42.7.7  10.42.42.21    UGH1   0    0 -   
> 56 em0  
> [...]
> 
> Bird config is simple (stripped comments):
> router id 10.42.42.69;
> protocol device {
> }
> protocol direct {
> disabled;   # Disable by default
> ipv4;   # Connect to default IPv4 table
> ipv6;   # ... and to default IPv6 table
> }
> protocol kernel {
> ipv4 {  # Connect protocol to IPv4 table by
> channel
>   import none;  # Import to table, default is import
> all
>   export all;   # Export to protocol. default is
> export none
> };
> }
> protocol ospf v2 ospfv2 {
> rfc1583compat yes;
> tick 2;
> ipv4 {};
> area 0 {
>  interface "em0" { cost 10; };
> };
> }
> 
> But although bird adjacencies are ok, the box cannot communicate with
> others, via TCP (ssh) or ping, even on the same link :
> 
> BIRD 2.0.6 ready.
> ospfv2:
> Router ID   Pri  State  DTime   Interface  Router IP
> 10.42.42.21   1 ExStart/DR  39.261  em0   
> 10.42.42.21
> 10.42.42.1    1 ExStart/BDR 38.635  em0    10.42.42.1
> BIRD 2.0.6 ready.
> ospfv3:
> Router ID   Pri  State  DTime   Interface  Router IP
> 10.42.42.21   1 Full/DR 35.854  em0   
> fe80::225:22ff:fe1e:bb7
> 10.42.42.1    1 Full/BDR36.525  em0   
> fe80::4262:31ff:fe01:4b66
> 
> PING fe80::225:22ff:fe1e:bb7 (fe80::225:22ff:fe1e:bb7): 56 data bytes
> ping6: sendmsg: Network is unreachable
> ping: wrote fe80::225:22ff:fe1e:bb7 64 chars, ret=-1
> ping6: sendmsg: Network is unreachableping: wrote
> fe80::225:22ff:fe1e:bb7 64 chars, ret=-1
> ping6: sendmsg: Network is unreachableping: wrote
> fe80::225:22ff:fe1e:bb7 64 chars, ret=-1
> ping6: sendmsg: Network is unreachableping: wrote
> fe80::225:22ff:fe1e:bb7 64 chars, ret=-1
> 
> --- fe80::225:22ff:fe1e:bb7 ping statistics ---
> 4 packets transmitted, 0 packets received, 100.0% packet loss
> 
> 
> PING 10.42.42.1 (10.42.42.1): 56 data bytes 
> ping: sendmsg: Invalid argument
> ping: wrote 10.42.42.1 64 chars, ret=-1 
> ping: sendmsg: Invalid argument
> ping: wrote 10.42.42.1 64 chars, ret=-1 
> ping: sendmsg: Invalid argument
> ping: wrote 10.42.42.1 64 chars, ret=-1 
> ping: sendmsg: Invalid argument
> ping: wrote 10.42.42.1 64 chars, ret=-1
> 
> --- 10.42.42.1 ping statistics ---
> 4 packets transmitted, 0 packets received, 100.0% packet loss
> 
> Stopping bird does not let network recover, nor does flushing routes
> (route -n flush) or restarting interface with netstart em0
> 
> I've done theses tests on 

Re: dmesg for 6.8-release on Pine A64+ 1GB (Arm64)

2020-10-19 Thread Stuart Henderson
On 2020-10-18, pipus  wrote:
> maybe no need to ruin the 6.8 release with a mention of linux,"other 
> unfinished broken operating systems" might be better as a reference point? :)

No need to ruin a report and useful observations with a comment like
this which doesn't help anybody.

OpenBSD is unfinished too. And all operating systems are broken in some ways.
You just need to pick whatever is the best fit for your needs.

>> A contrived test of network performance, using httpd(8) to serve a
>> large file from an mfs ramdisk over plain http, yields about 175 mbit/s
>> sustained transfer speed. I was not expecting to reach even 100 mbit/s
>> so this was a positive surprise, even if it's nowhere near the full
>> gigabit that other OSes can squeeze out of this board.

MFS isn't particularly fast, tcpbench is better if you want to isolate
network from storage io performance. (I was surprised to see pretty
much a full Gb/s from tcpbench on rpi4!)




Re: South American mirrors?

2020-10-19 Thread Eike Lantzsch
On Monday, 19 October 2020 11:29:34 -03 Stuart Henderson wrote:
> On 2020-10-19, Eike Lantzsch  wrote:
> > Hello y'all,

and thanx to y'all

> > Thank you for 6.8 and a painless way to upgrade.
> > Just out of curiosity and as a sidenote: downloading from Brazil was
> > always faster for me than from Canada or Europe.
> > Is there any information available about what happened to the South
> > American mirrors of Argentina, Brazil and Uruguay? They are still
> > there with 6.6 and 6.7 but no 6.8 and accordingly already do not
> > show up in the mirror list.
> 
> There was never a mirror on the official list in Uruguay.
oops - maybe I mixed that up in my memory with Debian.
> The mirrors in Argentina closed.
a pity ...

Thanks Stuart for the quick answer. We'll see if and when UFPR 
(Universidade Federal do Paraná) updates their mirror.

> http://openbsd.c3sl.ufpr.br/pub/OpenBSD/ exists again (it was
> previously broken so was removed from the list) but does not have 6.8
> yet.

> > Do those mirrors not comply anymore with the requirements for
> > mirrors or will they come up later with 6.8 or is it due to the
> > situation of the pandemic and the closure of the s.am.
> > universities?

> No idea..
No wonder. An insider of the university would probably know  - please 
don't bother.
Ricardo Marcelo Fonseca's email of whois is not available anymore so I 
got no comment from their side.





Re: Inphi CS4223 for 4x 10GbE SFP+

2020-10-19 Thread Stuart Henderson
On 2020-10-19, Harald Dunkel  wrote:
> Hi folks,
>
> I am about to order 2 network appliances, providing an
> "Inphi CS4223 for 4x 10GbE SFP+".

This is the PHY (physical interface layer) not the NIC type itself.
Since the gigabit are listed as i211 (which *is* a NIC type) it would
seem likely they are attached to the main chipset.

I can't say for sure but I think there's a high chance that the 10G
will work, and at least some of the 1G will work, but you might run into
problems with the 1G "bypass" ports.

dmesg would be of interest :)




Re: dmesg for 6.8-release on apu2e4 4GB (amd64)

2020-10-19 Thread Stuart Henderson
On 2020-10-19, Amarendra Godbole  wrote:
> - additional x*.tgz packages were installed by sysupgrade, though in
> the previous configuration I had explicitly deselected these. Maybe a
> bug or my incompetence, I need to figure this out.

This is sysupgrade "working as expected".




Re: Multiple USB NICs

2020-10-19 Thread Theo de Raadt
Lee Nelson  wrote:

> If I have multiple USB Ethernet adapters of identical make and model,
> how does OpenBSD distinguish them over time.

In the order their drivers reach "interface attach" code.  There are
multiple reasons the drivers could reach this out of order.

> In other words if
> there's a reboot or the adapters get unplugged and moved around and
> plugged back in, is there a way to make sure that the adapters
> associated with axen0 and axen1 maintain those associations?

No.

> Is there some way to pin an interface to the adapters MAC address?

No method comes to mind.

Well there is a method, but it is incompatible with KARL kernel
relinking so I don't think people should use that, and hence I'm not
going to explain it.

> A related question: if the adapters never move, and always stay in the
> same place on their respective USB hubs, will they always be numbered
> the same (axen0, axen1, etc)?

Cannot gaurantee that. Especially if they are on different usb busses,
or the initial probe fails, some probes may occur late and thus adjust
the order.



Re: Inphi CS4223 for 4x 10GbE SFP+

2020-10-19 Thread Stuart Henderson
On 2020-10-19, Tom Smyth  wrote:
> Hi Harald, check the Atom processor and make sure that it is not one
> of those ones that fail after a while (some electrical issue) ...

It isn't.




Re: South American mirrors?

2020-10-19 Thread Stuart Henderson
On 2020-10-19, Rachel Roch  wrote:
> One of the CDNs would seem the obvious answer to your problem. Or have you 
> already tried them ?

They fetch files from origin sources on the fly, mostly from Canada
(for fastly/cloudflare) or USA (VDMS). Frequently fetched files can get
cached for a bit but if you're somewhere far from the origin they are
still not great. Usually better than connected directly to a far-away
site (they do keepalives so there are fewer delays, and the network
path is usually not too bad) but not as good as a real mirror.

Worth a try but don't expect magic (and there can be caching problems
with snapshots).

> Addresses are :
> Fastly (CDN)
> https://cdn.openbsd.org/pub/OpenBSD/
> Cloudflare (CDN)
> https://cloudflare.cdn.openbsd.org/pub/OpenBSD/
> Verizon Digital Media Services (CDN)
> https://mirror.vdms.com/pub/OpenBSD/
>
>
> 19 Oct 2020, 14:13 by zp6...@gmx.net:
>
>> Hello y'all,
>> Thank you for 6.8 and a painless way to upgrade.
>> Just out of curiosity and as a sidenote: downloading from Brazil was
>> always faster for me than from Canada or Europe.
>> Is there any information available about what happened to the South
>> American mirrors of Argentina, Brazil and Uruguay? They are still there
>> with 6.6 and 6.7 but no 6.8 and accordingly already do not show up in
>> the mirror list.
>> Do those mirrors not comply anymore with the requirements for mirrors or
>> will they come up later with 6.8 or is it due to the situation of the
>> pandemic and the closure of the s.am. universities?
>> Does anyone know?
>> Cheers
>> Eike
>> --
>> Eike Lantzsch ZP6CGE
>> 01726 Asuncion / Paraguay
>>
>
>



Re: South American mirrors?

2020-10-19 Thread Stuart Henderson
On 2020-10-19, Eike Lantzsch  wrote:
> Hello y'all,
> Thank you for 6.8 and a painless way to upgrade.
> Just out of curiosity and as a sidenote: downloading from Brazil was
> always faster for me than from Canada or Europe.
> Is there any information available about what happened to the South
> American mirrors of Argentina, Brazil and Uruguay? They are still there
> with 6.6 and 6.7 but no 6.8 and accordingly already do not show up in
> the mirror list.

There was never a mirror on the official list in Uruguay.
The mirrors in Argentina closed. 

http://openbsd.c3sl.ufpr.br/pub/OpenBSD/ exists again (it was previously
broken so was removed from the list) but does not have 6.8 yet.

> Do those mirrors not comply anymore with the requirements for mirrors or
> will they come up later with 6.8 or is it due to the situation of the
> pandemic and the closure of the s.am. universities?

No idea..




Re: OpenSMTP - Wrong user for Dovecot LMTP

2020-10-19 Thread Aisha Tammy

On 10/19/20 12:20 AM, Kastus Shchuka wrote:

On Sun, Oct 18, 2020 at 08:55:16PM -0400, Aisha Tammy wrote:

Hi,

  I just upgraded to 6.8 and the upgrade process has been super cool and simple 
:)

Unfortunately I seem to have hit some weird issue in OpenSMTPD where it has 
stopped
delivering the mail using Dovecots LMTP due to sending as wrong user.

osmtpd tries to send the mail as *_smtpd* even when configured to send as a
different user *excision*



Could it be this change: https://marc.info/?t=15878902902=1=2 ?



Well damn... That would indeed cause this error.
I guess a simple fix would be to add _smtpd to the socket group or change socket
group to _smtpd.

Another fix would be to have the whole virtual user system also be done using
_smtpd but I feel that keeping things with separate users is better.

Thanks a lot for the answer!

Aisha



Re: Thinkpad T400 only records from the external mic

2020-10-19 Thread Alexandre Ratchov
On Sat, Oct 17, 2020 at 07:05:53PM +0200, Jan Stary wrote:
> 
> Strangely, with each of
> 
>$ aucat -i /tmp/file.wav
>$ aucat -o /tmp/file.wav
> 
> it is both
> 
>   play.bytes=562560
>   record.bytes=562560
> 
> that keep growing in audioctl. Is that intended?

Yes. We always play and record at the same time. We do it this way
because this costs virtually nothing and because once playback is
started, we can't start recording properly synchronized to playback.



South American mirrors?

2020-10-19 Thread Eike Lantzsch
Hello y'all,
Thank you for 6.8 and a painless way to upgrade.
Just out of curiosity and as a sidenote: downloading from Brazil was
always faster for me than from Canada or Europe.
Is there any information available about what happened to the South
American mirrors of Argentina, Brazil and Uruguay? They are still there
with 6.6 and 6.7 but no 6.8 and accordingly already do not show up in
the mirror list.
Do those mirrors not comply anymore with the requirements for mirrors or
will they come up later with 6.8 or is it due to the situation of the
pandemic and the closure of the s.am. universities?
Does anyone know?
Cheers
Eike
--
Eike Lantzsch ZP6CGE
01726 Asuncion / Paraguay




Re: Inphi CS4223 for 4x 10GbE SFP+

2020-10-19 Thread Jonathan Gray
On Mon, Oct 19, 2020 at 01:28:50PM +0200, Harald Dunkel wrote:
> Hi folks,
> 
> I am about to order 2 network appliances, providing an
> "Inphi CS4223 for 4x 10GbE SFP+".
> 
> Does this ring a bell? Is this already supported by 6.8? Other
> technical specs can be found on
> 
> https://www.ibase.com.tw/english/ProductDetail/NetworkAppliance/FWA8506

Atom C3000 10 GbE is known as X553.

Support was added in


revision 1.161
date: 2020/03/02 01:59:01;  author: jmatthew;  state: Exp;  lines: +134 -83;  
commitid: xmdy2UWGGO2CwfiN;
Update ix(4) from freebsd to add support for X553 controllers.

Tested on 82599 (sfp+) and X540 (baseT) by me and Hrvoje Popovski,
and on X553 by sthen@ and abieber@, and possibly more via snapshots
ok sthen@ mikeb@


And is present in 6.7 and 6.8.

> 
> BTW, congratulations to the new release
> 
> 
> Regards
> Harri
> 
> 



Re: Inphi CS4223 for 4x 10GbE SFP+

2020-10-19 Thread Tom Smyth
Hi Harald, check the Atom processor and make sure that it is not one
of those ones that fail after a while (some electrical issue) ...

On Mon, 19 Oct 2020 at 12:48, Harald Dunkel  wrote:
>
> Hi folks,
>
> I am about to order 2 network appliances, providing an
> "Inphi CS4223 for 4x 10GbE SFP+".
>
> Does this ring a bell? Is this already supported by 6.8? Other
> technical specs can be found on
>
> https://www.ibase.com.tw/english/ProductDetail/NetworkAppliance/FWA8506
>
> BTW, congratulations to the new release
>
>
> Regards
> Harri
>


-- 
Kindest regards,
Tom Smyth.



Inphi CS4223 for 4x 10GbE SFP+

2020-10-19 Thread Harald Dunkel

Hi folks,

I am about to order 2 network appliances, providing an
"Inphi CS4223 for 4x 10GbE SFP+".

Does this ring a bell? Is this already supported by 6.8? Other
technical specs can be found on

https://www.ibase.com.tw/english/ProductDetail/NetworkAppliance/FWA8506

BTW, congratulations to the new release


Regards
Harri



Firefox libGL errors if unveil is enabled

2020-10-19 Thread Anirudh Oppiliappan
Firefox 81 gives the below errors, and tabs hang for about ~2-3 minutes
before becoming usable, when unveil is enabled:

libGL error: failed to open /dev/drm0: No such file or directory
libGL error: failed to load driver: i965
libGL error: MESA-LOADER: failed to open swrast (search paths 
/usr/X11R6/lib/modules/dri)
libGL error: failed to load driver: swrast

This is on Intel UHD 620, so intel(4).  Workaround is to disable
unveil.{main,gpu,content}, but that's not ideal.

Thoughts?

--
Anirudh Oppiliappan
https://icyphox.sh