Re: Hardware recommendation for small form factor, noiseless, server

2024-05-08 Thread Страхиња Радић
Дана 24/05/08 02:37PM, Karsten Pedersen написа:
> [...] The C program can be as simple as compiling "Hello World" to exhibit the
> issue. Takes about 15 seconds to compile "Hello World". [...]

On a Lenovo IdeaPad 3-15IGL05 81WQ[1] laptop:

$ time sh -c "printf '#include \\nint main() { puts(\"Hello,\
 world!\"); }\\n' | cc -o hello -xc -"
0m01.24s real 0m00.16s user 0m00.42s system

15 seconds? What is happening in the background? Ports compilation while 
encoding video?

[1]: https://psref.lenovo.com/Product/IdeaPad/IdeaPad_3_15IGL05



Re: bgpd(8) not announcing IPv6 addresses from local network

2024-05-08 Thread Benjamin Raskin
> Is it possible to have a sample network diagram or at least a better
> description of how you setup your network?

Sure. My router is connected to two other routers via mgre0 to 2 other
routers (routes should be sent to those 2 routers). The router which
is sending routes has 4 NICs sit on a veb0 and are connected to some
hosts on the network. These hosts are given prefix information by the router
and autoconfigure their ipv6 addresses.

> I'm not sure you must use BGP to advertise all your connected and static
> routes. Of course it depends on your setup and goals but ideally before
> BGP you may use an IGP for any prefix related to your infrastructure.
> Then use BGP for what you consider as your 'end-user' prefix

What I want to do is have the router that is connected to all of the hosts
on my network to advertise the autoconfigured addresses of these hosts.

I can see these hosts in the routers routing table, however bgpd doesn't
advertise these routes, even though these routes are present within my
routing table and I've specifically configured bgpd to advertise connected
routes.



Re: Favorite configuration and system replication tools?

2024-05-08 Thread Raymond, David
Rsync.  I also have a root directory in /home to keep local stuff.  This is
the same for about 20 machines running obsd and is also distributed by
rsync. Since it is in home, it survives upgrades. Various shell scripts in
/home/root/etc are used to manage the system.

On Wed, May 8, 2024, 11:08 Jan Stary  wrote:

> On May 07 22:15:27, olp...@yahoo.ca wrote:
> > I was wondering which programs you use for replicating/copying/syncing
> environments/configs on your openbsd systems with between your desktops
> (home or work) and laptops?
>
> git
>
> > Do you also maintain installeded/removed packages in some standard way
> across systems so that you have reasonable consistent systems to work on?
>
> a plaintext list of package names
>
>


Re: bgpd(8) not announcing IPv6 addresses from local network

2024-05-08 Thread Willy Manga

Hi,

On 06/05/2024 18:14, Benjamin Raskin wrote:

Hello, all;

I've been having some issues getting bgpd to announce IPv6 routes,
apologies for the dumb question in advance.

I've setup rad(8) and bgpd(8) on an OpenBSD machine. bgpd(8) is
sending routes over to some neighbors (routes such as
fd80::fce1:baff:fea6:bf3a) while rad(8) is sending prefix information
for hosts to auto assign themselves some address (such as
2620:ba:6000:3:21db:f1bb:8ad9:21d6).


Is it possible to have a sample network diagram or at least a better 
description of how you setup your network?



[...]




bgpd(8) is configued to advertise all connected and static routes,
however bgpd(8) only advertises routes that are connected to the wg0
interface and none that are connected on the vport0 interface.


I'm not sure you must use BGP to advertise all your connected and static 
routes. Of course it depends on your setup and goals but ideally before 
BGP you may use an IGP for any prefix related to your infrastructure.

Then use BGP for what you consider as your 'end-user' prefix.

But speaking of BGP at this point if you want to announce a prefix (not 
just addresses), you must advertise it by BGP *and* it must be in your 
routing table.





[...]

As far as I can tell bgpd(8) is configured correctly, and there are no
anomalies when it comes to routes. Below is a sample of my bgpd(8)
configuration for reference.


AS 10261

neighbor fe80::9ab7:85ff:fe00:3726%mgre0 {
 remote-as 10261
}
neighbor fe80::9ab7:85ff:fe00:3727%mgre0 {
 remote-as 10261
}

network inet6 priority 4
network inet6 connected
network inet6 static


Is it this router that is speaking with your upstream?

Here you expect bgp to advertise routes:
- with a priority somewhere else
- connected
- statically configured

Do you have them in the routing table?

--
Willy Manga



Re: Favorite configuration and system replication tools?

2024-05-08 Thread Jan Stary
On May 07 22:15:27, olp...@yahoo.ca wrote:
> I was wondering which programs you use for replicating/copying/syncing 
> environments/configs on your openbsd systems with between your desktops (home 
> or work) and laptops?

git

> Do you also maintain installeded/removed packages in some standard way across 
> systems so that you have reasonable consistent systems to work on?

a plaintext list of package names



Re: Favorite configuration and system replication tools?

2024-05-08 Thread Fernando Milovich

duplicity

On 2024-05-07 9:09 p.m., Matthew Ernisse wrote:

On Wed, May 08, 2024 at 12:25:43AM +0100, Jo MacMahon said:
I'm interested if anybody has solutions using just the base system 


I've had a set of functions in my .profile for about 15 years
that keeps large parts of my home directory available and in
sync across Linux, macOS and OpenBSD systems.  On the upstream
end it is just a web server with some files, including a file
that has the sha256 hashes of the files.  This happens to be
updated by a git post-receive hook but you could do it however
you want.  In my .profile it checks the sha256 hashes of the
local files against the remote files and if they differ,
downloads them.  I used $RANDOM to make sure this doesn't run
every single time I start a shell.  On OpenBSD this works using
ksh(1), ftp(1), and sha256(1).





Re: Hardware recommendation for small form factor, noiseless, server

2024-05-08 Thread Karsten Pedersen
> What exactly is "good" with OpenBSD?

I summarize the issues in my last email

> So again, what is "slow"?

The machine running OpenBSD. Compared to similar ThinkCenters I have
(m73 Tiny and m92 Tiny). Also a Raspberry Pi 3 (running OpenBSD at lowest freq).
It seems not to be the SSD disk because the "slowness" is present when writing 
to
MFS mounts.

> 14 Watts for compilation or just idling?

Just at idle. Granted OpenBSD tends to run quite hot compared to alternatives
it still seems to draw more than the m73 and m93p.

> What issues?

I mention them in the last email

> Might be, but you didn't checked by tests. Yes, of course you have to
> use the same "C program" as before.

I tested against different operating systems and different hardware. As 
mentioned there
is definitely something up with this combo but I haven't had time to explore 
further. Hence
my general note to avoid this machine if people can for now (if they want 
something
guaranteed working). The C program can be as simple as compiling "Hello World" 
to exhibit the
issue. Takes about 15 seconds to compile "Hello World". It doesn't need to be a 
"test" to suspect
things aren't quite right here.

> I suspect something different, I guess it is from the black / red
> combination of the case colors. This is a broken combination and a
> dangerous one in art and design.

The m73 and m92 have similar case colors. So it is definitely not that ;)