-
ant-x
What are you standard use cases for rsync? Drew DeVault propose tar instead: <
drewdevault.com/blog/rsync-without-rsync> .
-
ant-x
Also, is there no possiblity to keep using the latest non-slop version for a while?
-
mason
ant-x: Nice thing about OpenRsync is it's BSD licensed.
-
rwp
The only reason OpenRsync exists is to change licenses for OpenBSD.
github.com/kristapsdz/openrsync
-
mason
And it accomplishes that nicely.
-
rwp
rsync is one of my examples that I use to show a project which never said no to an option-feature. They have more options than ls!
-
rwp
If rsync is now on the AI Slop train (
social.hails.org/@hailey/116657391001259044) it does not bode well for it. Might be time to switch to OpenRsync for stability.
-
yelnah
hi all, I have a pkgbase jail on 15.1-STABLE and within the jail I cannot get a result for ps which returns ps: /boot/kernel/kernel: No such file or directory. This does not happen on another 15.0-RELEASE jail. Any suggestions?
-
rwp
Sounds like a regression in ps. Jails do not normally have a kernel at all.
-
yelnah
yes, there is a thread here
forums.freebsd.org/threads/why-does…and-then-complain-when-it-is.102485 that indicates the same, but their discussion was not conclusive
-
rwp
yelnah, Thank you for running the prerelease and finding this bug before release. If it does not have a PR problem report then that would be good. Maybe it can be fixed before release and it hitting a lot of people.
-
rwp
Looking at that thread it is reported that known working previous versions of ps also fail. That indicates to me that the problem is either a library that is called or a kernel system call which has changed behavior.
-
yelnah
bugs.freebsd.org/bugzilla/show_bug.cgi?id=295782 I don't often report non-port bugs so let me know if that needs more
-
rwp
Seems like a good enough PR to me.
-
rwp
Just read the Drew DeVault's blog posting saying that tar options are "hard to remember how to use".
-
rwp
Huh? The options to tar are extremely basic and simple.
-
rwp
c to create, t for table of contents, x for extract. Add v for verbose. Use f for file to read or file to write.
-
rwp
That's really all that one ever needs to know about tar. How hard is that?
-
ivy
rwp: -C is also useful. my experience is that when people struggle with tar options, it's more about the order of the options. i'm not sure why that is though
-
rwp
Traditionally instead of <<tar xvf foo.tar.gz -C ~/src>> we would <<( cd /usr/src && tar xvf foo.tar.gz )>> and so the -C option is not ever really needed.
-
rwp
I mixed my metaphors there but I am sure you know what I meant to say there.
-
rwp
Same thing for the same reason about make -C too.
-
elivoncoder
-
elivoncoder
but it doesnt really say much?
-
ananke
elivoncoder: it says plenty, just may not say what you wanted to hear
-
ivy
elivoncoder: yeah, i thought it was pretty weak compared to what e.g. EFF have published.
-
ananke
not sure that's a fair comparison. it's literally the kind of stuff EFF deals with, and EFF doesn't have an actual product they maintain, so their position is very different
-
ivy
well, technically the freebsd foundation doesn't have a project, their entire job is advocacy (and paying people to work on freebsd)
-
ivy
s/project/product
-
ananke
sure, but their core goal is to support the freebsd project. treading lightly is to be expected
-
Axman6
Hello all, does anyone have any experience with cbsd? I've somehow managed to kill all of my jails, they all fail to start after updating my system to FreeBSD 14.4 and trying to update them to the same version. I get "/bin/sh: cannot open /etc/rc: No such file or directory\njail: unifi: /bin/sh /etc/rc: failed" when I try to start any of them
-
Axman6
Things started to go wrong when I changed the version for my jails, amd it asked me to choose a source for the base (I think), I chose to use the current system but then ^C's it in the middle after decided I'd use the repo option like I have in the past. I hoped it'd ask me again when I tried to start the jail again, but it just failed. I've been looking for ways to try and fix the base, and thought I had fixed it by using cbsd repo action=get sources=base and
-
Axman6
it seemingly installing a bunch of files, but they're still all broken.
-
Axman6
I've also tried setting the version back to 14.3, but they also fail despite previously working
-
rwp
Since the first error is about /bin/sh: cannot open /etc/rc I would start there and look in the jail and see if /etc/rc is there or missing. I expect it is missing.
-
rwp
Then I would look at a backup or snapshot where the file was there and probably restore to that previously working version. Because apparently something removed a bunch of files.
-
Axman6
I'm not sure how to look in the jail
-
mason
Axman6: It might be worth using straight system tools for your jails. It's important to understand how they're put together.
-
rwp
I use ls. For me I locate jails at /jails and named after the jail name. So for example an nginx jail is located at /jails/nginx. Therefore /etc/rc is located at /jails/nginx/etc/rc so I would look at it with ls -l /jails/nginx/etc/rc and also just the rest ls -l /jails/nginx/etc/ too.
-
Axman6
There are zfs snapshots for the various datasets but I'm not sure what would need to rolled back (and they're use read only bases, which I assume means they're shared)
-
Axman6
mason: that would have been good advice in the past
-
rwp
If you have a previous snapshot you can rollback to that previous snapshot using the zfs-rollback command. For example zfs rollback zroot/jails/nginx@2026-04-30-1 for me would cause the dataset to return to that data discarding what had happened since (assuming I don't have the recent stuff in another snapshot).
-
Axman6
Hmm, ok interesting, looking in /etc of one of the jails, there is indeed no /etc/rc; there is a /etc/rc.resume though; would that have been created by something like etcupdate?
-
rwp
Hmm... I don't know about .resume files. I haven't dealt with them before. So probably. But no idea.
-
Axman6
ok, looks like it was a botched etcupdate
-
rwp
Things that I put into jails I pretty much know what goes into them. The theory goes that I would simply create a new jail and then copy the configuration forward to the new jail start it up and discard the old one.
-
ivy
hm... so the new "pass ... nat-to" in pf.conf is quite nice, except it seems that it changes the semantics of outgoing packets. previously you could do something like "nat on $inet_if inet from 198.18.0.0/23 to any -> 1.2.3.4/32" and later rules would see the packet as coming from 1.2.3.4
-
ivy
now if you do "pass out on $inet_if from 198.18.0.0/23 to any nat-to 1.2.3.4/32", and later you have a rule "block out on $inet_if inet from 198.18.0.0/23 to any", it will block the NAT'd traffic
-
ivy
which is annoying because i like to block egress traffic from obviously invalid addresses
-
lts
ivy: can you use tags?
-
ivy
lts: ah yes, that seems to work, thanks
-
ivy
"pass out ... tag NAT nat-to ...", "block out ... !tagged NAT"
-
lts
Awesome
-
lbon
Hi!
-
ant-x
How high :-?
-
MelanieUrsidino
No.
-
ant-x
Since many members run their web- and other hosts on FreeBSD, I hope my question is not OT: Does /Let's Encrypt/ support a manual procedure for certificate generation and renewal, or is the ACME API the only way of using that service?
-
ant-x
Also, is automation (e.g. via ACME) that important for managing a single certificate for a single domain?
-
ivy
ant-x: they only support ACME, and since they only issue short-lived certificates (i think 3 months currently, probably moving to 30 days later) you really wouldn't want to do it manually
-
ant-x
I could tolerate 90 days, but not a month. OK. Why do you think they are decreasing certificate lifetime?
-
ant-x
I don't understand anything about this procedure, am using a self-singned cert right now, so I just wanted to start with the basics. Now it seems I'll need an ACME client from the start.
-
ivy
because it reduces the impact of leaked certificates or existing certificates for expired / reallocated domains, and it encourages people to use automation instead of an error-prone manual process
-
armin
why is a month so bad? You basically write a shell script and put that into cron.
-
lts
You assume Internet connectivity
-
ivy
if you don't have Internet connectivity, you shouldn't be using Let's Encrypt, because you won't be able to access the CRL or (for some providers) OCSP server
-
ant-x
I meant bad for the manual process. With ACME, I probably must invoke an ACME client regularly, and then signal my stunnel to load the updated certificate.
-
ant-x
So far, I assume internet connectivity.
-
wavefunction
LetsEncrypt does 90-day certs (on my side at least).
-
hodapp
I think that's what I have for my internal-only wildcard cert
-
wavefunction
ant-x: I have a single domain with a few subdomains, but if all I had was one domain I'd keep using LE. Renewing a certificate once a year or whatever is always error-prone and caused outages at my job regularly
-
ant-x
hodapp, Why use LE for internal certs?
-
hodapp
ant-x: because I have devices that are pissy and annoying if you try to use TLS with self-signed certs or those signed with custom CAs
-
hodapp
and it's so much simpler to just get "proper" certs
-
ant-x
wavefunction, thanks. I have considered <
getfreessl.org> (which supports manual workflow), but their own certificate is obsolette!
-
ant-x
Look like I will appeal to your help with setting up automation with acme-client. As far as I understand, one has regularly to run it and then to signal the services to reload the cert files.
-
wavefunction
ant-x: Depends entirely on how you want to authenticate and do stuff. I can shift this to DMs.
-
hmjsp
i have some odd behaivour with wireguard. im creating a wireguard interface and setting it to fib 1, because i only want to route specific processes to it, not all. it SEEMS to be working fine initially, but i get some absurd packet loss. pinging 1.1.1.1 20 times gives 60% packet loss one time, 40% the other, etc. running speedtest-go also gives about 55% packet loss, although the actual throughput is not horrible. im really unsure what i'm doing wrong, if anythi
-
hmjsp
ng. here's a paste with more info if needed:
paste.c-net.org/PicklesConrad
-
skered
hmjsp: What MTU size do you use?
-
skered
Is it different between locations?
-
hmjsp
skered: 1420, trying 1380 didn't help at all. it is between different locations, yes
-
skered
I forget what I had to drop min to to make it work at some different places.
-
skered
If you go lower you still have issues?
-
skered
But if it's the same thing, pings, then MTU might not be the problem.
-
skered
For me it was ping/ssh small payload size was fine.
-
skered
But when you tried something larger (scp) is when it failed
-
skered
But it was also depending where I was at.
-
hmjsp
dropped mtu to 1280, still get 50% packet loss
-
hmjsp
should i go lower?
-
skered
If it's all pings then it shouldn't be an MTU issue.
-
hmjsp
50% packet loss on ping that is
-
hmjsp
what else could it be? i rotated a couple different server configs from the vpn provider, same issue
-
skered
Ditto with my issues. OpenVPN did the samething but like I said it was only when you tried to use larger packets that you overflowed with the overhead.
-
skered
Any chance you're behind some load balancer? server or client side
-
hmjsp
not that i know of, certainly not client side
-
hmjsp
just a regular router, and a pc connected to it via ethernet
-
skered
You try running mtr ?
-
skered
Might help to see where it's dropping.
-
hmjsp
incidentally this exact same issue happened with an old router, and i recently replaced it (faster wifi) and it's the same issue, so it's defo not the router or anything
-
hmjsp
what's mtr?
-
skered
mtr is ping plus traceroute in one interface.
-
hmjsp
okok i'll see
-
hmjsp
-
skered
So you only have one hop between you and the endpoint?
-
hmjsp
no... sorry i didn't wanna post all ip addresses but ig it doesn't matter... give me a sec
-
skered
Well if it's all 0s and loss is at the end then it shouldn't matter.
-
hmjsp
-
hmjsp
very silly randomly generated paste name xD
-
elivoncoder
anyone use the kde install script on 15.1?
-
elivoncoder
did you initially get a login loop with wayland?
-
hmjsp
skered: it SEEMS it's just vpn provider having too high load? kept trying different servers, and on the last server i tried i finally got 0% packet loss
-
skered
Might be if you're first hop is losing stuff then that's not a good sign.
-
hmjsp
ugh nvm back to 50% packet loss
-
hmjsp
im 80% sure it's just vpn provider being dodgy
-
ek
hmjsp: Easy way to tell is to disable the VPN and test real quick.
-
ek
But, it looks to me like you're getting loss between you and the immediate router/gateway. That's a problem.
-
skered
Ideally you would let that mtr run for more than 20 seconds. Maybe all day.
-
skered
Or at least an hour.
-
ek
I usually let it run a while. Especially the entire duration of the troubleshooting.
-
ek
I'm trying to wrap my head around the loss to 192.168.1.1 or 10.2.0.1, though.
-
» iRobbery doesnt dare to click on anything labelled 'senate prostate'
-
ek
iRobbery: Haha. I noticed that as well and chuckled.
-
iRobbery
ek: but you did click?
-
skered
iRobbery: You don't click it... it clicks you.
-
ek
Of course! I don't worry about internet safety with this system. Worst that can happen is I see something grotesque or get Rickrolled or something.
-
iRobbery
Now i'm just terrified, but reading back on wg issue
-
skered
👉[C😲
-
hmjsp
ek: traffic on my non vpn is fine. vpn is only on fib 1, fib 0 works great. but im just as confused as you about 192.168.1.1 losses
-
iRobbery
hmjsp: do you write now that you did try wg/vpn using fib0 too?
-
hmjsp
i have not tried it on fib0, i wouldn't be able to ssh if i did that (im sshing into this system)
-
iRobbery
hmm i see, no ipmi or something to fallback to?
-
hmjsp
i do have physical access but it's in an awkward place away from any display
-
hmjsp
nope, nothing
-
hmjsp
or not that i know of
-
hmjsp
it's asus h110t
-
iRobbery
Do you get this weird jitter value consistently too in your speedtest results?
-
hmjsp
lemme see
-
iRobbery
paste.c-net.org/CurseKarate your mtr is a bit short too?
-
iRobbery
or it is just that hop where packetloss occurs?
-
hmjsp
on fib0: Download: 525.18 Mbps (Used: 680.23MB) (Latency: 14ms Jitter: 6ms Min: 7ms Max: 32ms)
-
hmjsp
iRobbery: ignore that one, see the next one
-
hmjsp
-
hmjsp
with fib1: Download: 344.46 Mbps (Used: 476.47MB) (Latency: 76ms Jitter: 31ms Min: 47ms Max: 140ms)
-
hmjsp
packet loss is back to 0% again...
-
iRobbery
aah it clicked me! *reading now*
-
hmjsp
90% sure it's just vpn provider, but idk. it's protonvpn, free tier, and i used protonvpn on a phone couple times and it was never horrible or laggy so im not sure
-
hmjsp
xD
-
iRobbery
if you wrote about this yesterday i still had some decomissioned metal online, but they janked it offline this morning
-
hmjsp
aww :(
-
iRobbery
sneaky bastards did 500 mbit cap unmentioned
-
hmjsp
lol
-
hmjsp
could i isolate the cause if i set up a vpn server locally? i do also have an openbsd box running locally, albeit it will most definitely be the limiting factor (rpi 4)
-
iRobbery
i reckon yes, you should have the same results as fib 0
-
iRobbery
do you have any special fib settings in your /boot/loader.conf?
-
hmjsp
-
hmjsp
nothing fib specific
-
hmjsp
also i got no idea how to set up a vpn server in the first place, but i guess it's a good experience to learn how...
-
iRobbery
wireguard server is really easy
-
iRobbery
not more difficult than setting up the client which you managed
-
hmjsp
should prolly be able to manage with man page and some googling
-
iRobbery
-
hmjsp
"Please note that the following configuration is in the style of the original wireguard-go implementation, from before OpenBSD got in-kernel support. The new ifconfig and /etc/hostname.wg0 approach is more reliable since the old method can potentially fail after an ABI change, requiring the wg-tools package to be updated before the WireGuard interface can come up." booo
-
iRobbery
ah the configuration looks pretty much the same
-
hmjsp
iRobbery: where do i find client public key on freebsd?
-
hmjsp
or should i generate it also?
-
iRobbery
you generate it yes
-
hmjsp
i did do that... and i can't connect?
-
hmjsp
i followed the instructions on the server side word for word
-
hmjsp
ping just hangs
-
hmjsp
100% packet loss
-
iRobbery
you see the wg tunnel established, bytes in and out?
-
hmjsp
wg show on client says: transfer: 2.30 KiB received, 67.81 KiB sent
-
hmjsp
so SOMETHING is happening
-
hmjsp
wg show on server just tells me the listening port
-
hmjsp
i did add pf.conf rules and reload
-
hmjsp
tcpdump on wg0 shows nothing tho...
-
iRobbery
wg show is a good indication yes. You should see something with tcpdump. Firewall setup good/active?
-
hmjsp
i can see this on tcpdump on bse0 (ethernet on pi 4 openbsd server): 19:57:47.573793 192.168.1.111.56973 > 192.168.1.123.51820: [wg] data length 96 to 0x7e5cb92e nonce 7
-
iRobbery
ip forwarding enabled?
-
hmjsp
192.168.1.111 is my freebsd, 192.168.1.123 is my openbsd
-
hmjsp
ip forwarding is enabled, yes
-
iRobbery
And you picked some random lan range for wireguard network?
-
hmjsp
net.inet.ip.forwarding=1 on obsd box
-
iRobbery
s/random/other
-
hmjsp
wdym?
-
hmjsp
AllowedIPs = 10.0.0.2/32 on server
-
iRobbery
yes something else for the wireguard network then your lan that's what i poorly said
-
hmjsp
im certain my public/private key combos are accurate in my configs...
-
iRobbery
and you only saw packets from your freebsd client to obsd and no return?
-
hmjsp
and on client, pf.conf has "pass out"
-
hmjsp
yes
-
hmjsp
100% packet loss on fbsd client
-
iRobbery
So no 2 way udp traffic on wireguard port?
-
hmjsp
yes
-
iRobbery
double check both sides firewalls i'd say?
-
hmjsp
i did; i added the three lines for client at the end of my pf.conf; ran pfctl -f /etc/pf.conf; added the single line for client as well, did the same. to no avail
-
iRobbery
hmm there should only be two options, or the keys/config is not correct, or firewall, i cant imagine anything else
-
hmjsp
i'll try generating and copying keys again i guess. wait, maybe router ports not being open stops this?
-
hmjsp
but it's on lan so
-
hmjsp
not sure how that would be an issue
-
spork_css
neither of the hosts are VMs are they?
-
hmjsp
transfer: 8.36 KiB received, 252.49 KiB sent; kbs sent/recv are increasing....
-
hmjsp
on client
-
hmjsp
spork_css: nope
-
hmjsp
both bare metal, one is obsd arm64, and the client is fbsd amd64
-
spork_css
just checking, I saw "em0" and figured it was physical, but wanted to check (ran into weird issues w/wireguard on a VPS myself).
-
hmjsp
redoing public/private keys doesn't help...
-
hmjsp
:(
-
iRobbery
hmm hmm debugging remote is hard
-
iRobbery
what does 'wg show' on server show?
-
hmjsp
interface: wg0
-
hmjsp
listening port: 51820
-
hmjsp
odd that it doesn't show in/out
-
iRobbery
can you show the configs? with censored keys?
-
hmjsp
sure
-
hmjsp
-
hmjsp
iRobbery: ^
-
iRobbery
server config doesnt specific an address? Sure it's listening on the right ip/interface there (just double checking)
-
hmjsp
server config from the website doesn't ask for an address
-
hmjsp
two lines each for interface and peer
-
hmjsp
im gonna try disable pf on both and see
-
hmjsp
...and still nothing. defo not firewall rules
-
iRobbery
client side doesnt specify a wg client ip?
-
iRobbery
at [interface] block
-
hmjsp
again, if the website instructions are correct, i don't need to specify an ip, it's only one line for the private key
-
iRobbery
well i do in my wireguard servers and clients :)
-
hmjsp
hmm okay i'll see...
-
iRobbery
-
hmjsp
should i put my local ip under the interface for the server?
-
hmjsp
since im doing all this on lan anyways
-
hmjsp
also hold on, freebsd wireguard (without isntalling from ports) does not support Address
-
hmjsp
it doesn't work, i learnt how to make it work from:
blog.feld.me/posts/2025/12/wireguard-freebsd-way
-
iRobbery
have to admit my servers are typically freebsd, clients are 'endusers' :) windows, mac, iot devices etc mainly
-
iRobbery
but i thought address would be standard wireguard spec
-
hmjsp
nah it's defo not
-
ek
Using DHCP on WG server-side, maybe?
-
hmjsp
iRobbery: also, wg show on server DOES show more info, if i run it with doas
-
hmjsp
blehh
-
hmjsp
-
hmjsp
ek: nop, static ip, connected via ethernet
-
hmjsp
despite there being i/o when using wg show, i consistently get 100% packet loss
-
ek
hmjsp: How is the client supposed to get an IP withing WG then?
-
hmjsp
good question. i got no idea. i thought wg just figures itself out...
-
hmjsp
nowhere is it mentioned that i need a dhcp server running?
-
ek
hmjsp: Sounds like it's connected to the server, handshake is good, but routing isn't working. Likely due to the client not getting an address that's routable.
-
hmjsp
i see
-
ek
Wireguard doesn't figure anything out. It's dumb as a box of rocks.
-
ek
So dumb, in fact, that it will allow any client to choose any IP they want (I don't like this feature and think it should be assigned from the server-side. But, who am I?)
-
ek
So, you either need to setup DHCP for WG on the server and have the client request an IP. Or, assign the IP on the client.
-
hmjsp
and i assign the ip on the client by doing...?
-
ek
Adding the "Address" line.
-
ek
The page your referenced is for setting up the server only. Not the client.
-
ek
-
ek
Scroll down a little to the "Create a WireGuard Client Configuration" section.
-
ek
It'll show you the client configuration.
-
hmjsp
-
hmjsp
i certainly had client working, i was just getting packet loss
-
ek
hmjsp: That's the server setup and it should work fine.
-
ek
But, you still need to specify an address for the client on the client-side WG configuration.
-
hmjsp
im pretty sure it's not server setup, given that i've had the client working this whole time, and it's only when introducing my own server into the equation that things went wrong
-
hmjsp
aside from getting packet loss which was intermittent, implying it's probably too much load on the vpn server's side
-
ek
The server should be fine. I'm guessing it's the client configuration that needs attention.
-
hmjsp
maybe... i'll revisit this tomorrow tbh because i have to go now
-
hmjsp
thanks for the help tho everyone
-
ek
hmjsp: Best of luck!