-
runxiyu
Does anyone know of a library that exposes something similar to Linux futexes, using something like _umtx_op
-
dch
dgeo: still having issues?
-
dch
dgeo: from my scaleway vm I have no trouble, so its probably your ISP
-
dgeo
dch: yes
-
dch
can you share output of `drill www.freebsd.org` , `traceroute www.freebsd.org` & `curl -4vsSLo /dev/null
freebsd.org` ?
-
dch
just in case its geodns in freebsd cluster behaving badly
-
dgeo
;; ANSWER SECTION:
-
dgeo
www.freebsd.org. 10 IN CNAME web.geo.freebsd.org.
-
dgeo
web.geo.freebsd.org. 150 IN A 96.47.72.77
-
» dgeo mtr -4nt www.freebsd.org
-
dgeo
1. (waiting for reply)
-
dgeo
2. 147.94.19.209 7.1% 14 0.1 0.1 0.1 0.3 0.1
-
dgeo
3. 193.51.105.249 0.0% 14 0.4 0.4 0.2 0.5 0.1
-
dgeo
4. 10.4.61.11 0.0% 14 1.0 0.9 0.7 1.3 0.2
-
dgeo
5. 193.55.205.167 0.0% 14 26.5 2.7 0.4 26.5 6.9
-
dgeo
6. 193.55.205.166 0.0% 14 1.1 1.3 0.9 3.5 0.7
-
dgeo
7. 193.55.205.0 0.0% 14 3.4 1.8 0.8 5.4 1.3
-
dgeo
8. 193.51.180.128 0.0% 14 4.9 5.2 4.9 5.4 0.2
-
dgeo
9. 77.95.71.77 0.0% 14 9.3 10.2 9.3 19.4 2.7
-
dgeo
10. 64.125.29.94 0.0% 14 91.8 91.9 91.8 92.2 0.1
-
dgeo
11. 208.184.34.238 0.0% 14 88.1 88.0 88.0 88.4 0.1
-
dgeo
12. 96.47.77.210 0.0% 14 88.3 89.0 88.2 98.9 2.8
-
dgeo
13. 96.47.66.42 0.0% 14 88.4 88.4 88.0 89.8 0.5
-
dgeo
14. (waiting for reply)
-
dgeo
dgeo% curl -4vsSLo /dev/null
freebsd.org 1
-
dgeo
* Host www.freebsd.org:443 was resolved. 1
-
dgeo
* IPv6: (none) 1
-
dgeo
* IPv4: 96.47.72.77 1
-
dgeo
* Trying 96.47.72.77:443... 1
-
dgeo
* connect to 96.47.72.77 port 443 from 147.94.19.169 port 49516 failed: Operation timed out 1
-
dgeo
* Failed to connect to www.freebsd.org port 443 after 75067 ms: Could not connect to server
-
dgeo
* closing connection #0
-
dgeo
curl: (28) Failed to connect to www.freebsd.org port 443 after 75067 ms: Could not connect to server
-
dgeo
other people using the same isp (RENATER / AS2200) have the same problem, other ISPs behave differently
-
nimaje
please use some pastebin next time
-
dgeo
RENATER's support saw the traceroute and told me the problem must be on server side (in fact, I can ping 96.47.72.76 and 96.47.72.79 but not 96.47.72.77)
-
dgeo
nimaje: yes, sorry. I'll remember
-
dch
-
dch
dgeo can you do a paste like mine? also traceroute not mtr so I can compare it to what I see here
-
dch
but based on what you have here it does indeed look like problems at the last hop
-
dch
I wonder if your ISP / net range has been blocked because of bad crawler behaviour?
-
dgeo
dch: I have the same results from other ISPs, the problem appears only from RENATER ISP and 96.47.72.77 IP (we saw this because a friend using IPv4 only can't join
vuxml.freebsd.org/freebsd/vuln.xml.xz)
-
dch
dgeo: based on this info please open a bugzilla ticket for clusteradm to look into
-
dch
let me know the PR# and I'll attach my info from Paris for comparison
-
dgeo
I don't know, but this would be a bit hard: this ISP is dedicated to all public universities and research in france
-
dgeo
I'll open a PR and tell you
-
dgeo
dch: #285877
-
nimaje
hm, does devd not have any way to reload its configs? do I really have to reboot to make new rules take effect?
-
ivy
nimaje: can't you just restart it?
-
nimaje
ah, yeah, that should work too, lets see if it breaks anything
-
dch
dgeo: thanks, I added mine also
-
nimaje
seems like it worked and webcamd gets started for my gamepad
-
dch
\o/
-
ivy
your gamepad has a webcam?
-
nimaje
no, webcamd is a bit misnamed
-
nimaje
"The webcamd daemon is basically a port of Linux USB device drivers into userspace in FreeBSD."
-
ivy
oh, weird
-
polarian
runxiyu: in general anything ! firefox shouldn't be used on Firefox, chromium tends to lag behind on security patches by a good week or two
-
polarian
and its too big to just compile from source
-
runxiyu
sorry, wht was that in reply to
-
polarian
runxiyu: ungoogled chromium not working
-
polarian
also I typoed, shouldn't be used on FreeBSD
-
polarian
I have not tried ungoogled chromium, but considering it is a fork of chromium it would likely recieve security patches even slower than chromium
-
runxiyu
> in general anything ! firefox shouldn't be used on Firefox
-
runxiyu
I can't parse this sentence
-
polarian
runxiyu: its typoed, I meant anything ! firefox shouldn't be used on freebsd
-
runxiyu
Oh
-
polarian
for reference right now ungoogled-chromium within the port tree is 2 weeks out of date (4 versions, including 1 major update)
-
polarian
after being bumped it can still take a while for the port to be built
-
runxiyu
I'll just not use my FreeBSD system for web browsing them (since I mostly use Librewolf, and occasionally Ungoogled Chromium for certain webdev™ things)
-
polarian
I dont see the issue with firefox, for the most part you can still get it reasonably secure/private
-
runxiyu
polarian: I need unsigned extenions
-
runxiyu
Well I guess I could use firefox esr
-
polarian
in any case it might be wise to jail whatever browser you do use because it usually is the biggest attack vector on a BSD system
-
polarian
and unlike Linux distros which have a lot more compute, and a lot more devs able to port browsers, *BSD tend to struggle to keep up, with... in some cases, biweekly updates to fix security issues
-
polarian
which is generally why most people use firefox, its much easier to build, its much faster to build (when I benchmarked it a few years back when playing with gentoo, Chromium took something like 15 hours to compile, while firefox was just 50 mins)
-
runxiyu
polarian: Unfortunately sometimes I need to test various modern "web technology"
-
polarian
for testing on a more normal system, BSD wont be your firend
-
polarian
friend8
-
polarian
friend*
-
polarian
and I dont think anyone would disagree with the statement "FreeBSD is not desktop ready"
-
polarian
which is exactly why the freebsd foundation is funneling cash into freebsd desktop
-
polarian
but they are focusing on the framework laptop mainly
-
polarian
theres not really that manpower to focus on lots of different laptop-specific problems, so they standardised on the framework laptop as that is what a lot of freebsd devs use
-
mzar
FreeBSD can be used on desktop, in 1990s I was running FreeBSD and browsed the Internet with Netscape Navigator
-
polarian
mzar: compare it to Linux desktop, there is unfortunately no comparison
-
deepy
desktop ready never meant that it worked on desktop
-
polarian
you cant even try to say that freebsd is as desktop ready as anything else
-
mzar
Linux was wonky at that time and panicked a lot
-
polarian
yeah, and now look at it, the standard *nix
-
mzar
OK
-
polarian
mzar: but BSD used to be big in the early 2000s server side too
-
polarian
ISPs were renown for adopting OpenBSD for routing and firewalling
-
polarian
how many of the big networking players now use a BSD base? very few afaik
-
nimaje
it works pretty good as a desktop system, of course there is always room for improvement, like wifi support, which is more a laptop thing than a desktop thing
-
polarian
I dont know of a single home router/modem/AP bundle you get these days which isn't a 5 year old Linux version with 101 security flaws
-
polarian
nimaje: they "borrowed" DRM from Linux using LinuxKPI
-
polarian
same with the other BSDs
-
polarian
The "desktop" experience, is a lot of Linux code
-
runxiyu
polarian: Tbh, "I can't get a stable Chromium installation" (which is not that important to my normal workflow) is my only problem with FreeBSD desktop, so far
-
runxiyu
I mean, I guess I have issues with i915kms, but whatever I can work around them
-
cyric
a lot of "linux" code mostly provided by hardware vendors
-
polarian
cyric: never said it wasn't, but the Linux folks simply blame that on the fact they use better licencing (the GPL)
-
polarian
and I have bumped into a lot of BSD people which are pro-GPL now
-
cyric
windows wins that vendor popularity contest by far, so those folks should be pro-proprietary then
-
polarian
it kinda feels like there is a shift, I read a lot of old ML archives, and the older BSD devs have always made it clear they oppose the GPL and do not want it within base, the younger people I meet are all for the GPL, usually coming from Linux anyways, many of them use the GPL for their code. There is discussions on moving DRM into base, which will fix the i915kms issues, but means merging GPL
-
polarian
code directly into the src tree...
-
polarian
Dont get me wrong I came from Linux, but it never really fit my beliefs that well, and I strongly aligned with BSD more, but was too scared to hop ship...
-
polarian
apart from ghostbsd, there isn't a BSD you can just slap on your laptop/desktop and have a out the box desktop experience...
-
polarian
then add the notorious wifi troubles, and the spotty hardware support, compared to Linux which today can run on almost anything
-
polarian
anyways I derailed the discussions, apologies
-
polarian
runxiyu: you haven't experienced mass coredumps in your homedir yet?
-
polarian
a notible one is code-oss which seems to randomly segfault
-
polarian
i915kms has also caused panics a few times, why? dunno, pretty rare though
-
polarian
tends to happen on a fresh update it seems (after rebuilding :))
-
SFJulie1
morning
-
polarian
SFJulie1: afternoon :P
-
SFJulie1
I wanted to understand what could have gone wrong in a BSD install
pastebin.com/Gjg9yF1J
-
SFJulie1
context : I use qemu on linux to bootstrap an installer config and I made a change to add podman to the custom image
-
runxiyu
polarian: I use, uh, wayland, nvim, librewolf, texlive, gcc, clang, go1.24.1
-
runxiyu
that's about it
-
SFJulie1
afternoon polarian :D
-
runxiyu
I've got a few MCEs due to me messing around in /usr/src/sys/kern too much
-
polarian
SFJulie1: seems like it can't find the root partition
-
SFJulie1
strange it used too 1 commit ago
-
runxiyu
polarian: my i915kms issues tend to only make my display unusable, and doesn't crash the entire system
-
runxiyu
polarian: Fortunately the laptop I run FreeBSD on has Intel WiFi
-
runxiyu
another one I own has rtl8821ce which sucks
-
polarian
runxiyu: librewolf lags behind on updates, 127.0 has hit firefox latest, it has been pushed to the port tree but not yet built for latest, both quarterly's are lagging behind obviously
-
polarian
just as an example :P
-
runxiyu
Yeah that'd be a tiny issue for security
-
mzar
polarian: were you running it on servers at that time ?
-
polarian
mzar: at what time?
-
polarian
early 2000s?
-
polarian
nah I wasn't born, but I know people who were :P
-
polarian
in fact during the XFS issues, freebsd was kinda the only choice for storage solutions at the time :)
-
mzar
OK
-
mzar
at that time RiserFS was trending, but for Linux
-
SFJulie1
and then reiser killed his wife
-
mzar
that's another story
-
polarian
bigger concern is it has been 1 month since an xorg vuln, the patch hit latest about a week ago, there is still no patch for quarterly
-
polarian
its been 1 month since the patch was pushed to the port tree
-
mzar
so it's now in quarterly
-
polarian
so to be honest moaning about a few days difference between a first party browser, and a third party is negligable compared to the bigger fish
-
mzar
2025Q2
-
polarian
mzar: freshports last checked 4am today, and quarterly 14 still has the vulnerable version
-
mzar
freshports are awesome, we have to be grateful to dvl with that regard
-
SFJulie1
polarian, how can BSD boot from a partition and ignore its root partition ?
-
SFJulie1
I guess I miss a command to tell the kernel hey guy your root partition is here (I use installer config that normaly works well)
-
SFJulie1
and maybe qemu is not perfect
-
polarian
mzar: indeed, very useful!
-
polarian
SFJulie1: I don't know, but what I am seeing from the pastebin is the kernel init, and then it failing to find the root (asking you to specify it)
-
SFJulie1
btw, kudo : podman installation on freeBSD is a breeze and it works as expected
-
polarian
if this is a podman issue, it might be worth asking in #freebsd-jails (despite the name, they do all containerisation)
-
SFJulie1
I have a giganormous /etc/installerconfig I play with on qemu (I added podman this morning on a perfectly fine customization), and I fear it is qemu not doing its job correclty.
-
SFJulie1
well, at least the old « dichotomy » method will work : commenting half the patch and see who creates the problem
-
SFJulie1
polarian, when given the right root partition it is booting
-
SFJulie1
is there a rescue command to fix the issue (with let's say boot device being ufs:/dev/ada0p4)
-
SFJulie1
.
-
SFJulie1
?
-
SFJulie1
gptboot ?
-
polarian
SFJulie1: probably a bootloader configuration problem, but afaik it should autodetect the root partition
-
SFJulie1
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 something ?
-
polarian
ah right, silly me I forgot
-
polarian
the root should be in /etc/fstab
-
SFJulie1
LOL found it thanks to you
-
polarian
I think its only zfs which it detects it
-
polarian
on a zfs system the only thing you put in /etc/fstab is your swap
-
polarian
not sure on ufs, haven't played with it in over a year now
-
SFJulie1
I did a stupid > in fstab instead of a >>
-
polarian
ah right
-
polarian
that would explain it lol
-
polarian
I wish there was a networking channel for freebsd
-
polarian
maybe a suggestion for th eops
-
polarian
ops*
-
polarian
I dont want to post my stupid questions to the mailing list, its cemented in the history then :P
-
SFJulie1
polarian, for the sake of curiosity I put you where the bug was (with a comment BUG)
pastebin.com/GSjxgpsA
-
SFJulie1
as a linux boy this one was tough for me ^^
-
polarian
ok so reading rc.conf gateway_enable needs to be YES if you want packets routed between interfaces, which I would assume you would want if you have different networks (obviously need a gateway), so I was kinda hoping this would fix my vnet jail problem but it doesn't and now I am stumped. ICMP packets pass, TCP packets pass out to the webserver, pass back to the router, and leaves the router iface
-
polarian
(in this case wireguard), tcpdump'ing my laptop, the packet never hits the wg0 iface on my laptop, so I assume its been dropped, so I added a pass all under the nat rule on my pf and loaded it, and STILL its being dropped, there should already be a state within the state table so it SHOULD bypass the PF filtering within the network stack, so at this point I am clueless on what to try...
-
SFJulie1
logging ?
-
polarian
SFJulie1: sorry wasn't replying to you, thats me having my own issue lol
-
SFJulie1
polarian, I know. I have my issues with vnet in jails too, I was trying to help (poorly)
-
polarian
wait you suggesting I log? I already have tcpdump'd on all relavent ifaces
-
polarian
I am going to go with the MTU problem and see if I can bump wg back up to 1500
-
» SFJulie1 is used to solving iptables problem by having it spew logs
-
polarian
sorry, the default is 1420 not 1500
-
polarian
ah I never bothered with IPTables
-
polarian
nftable is meant to be better
-
polarian
I just used ufw on Linux
-
SFJulie1
pf is way better :D
-
polarian
indeed
-
polarian
pf is fun to work with, until something breaks :P
-
SFJulie1
describing a graph is more logical for networks than spaghetti code (à la ASM)
-
runxiyu
I think pf is technically better in my mind but I'm used to iptables.....
-
polarian
at the end of the day it is "whatever floats your boat"
-
SFJulie1
right
-
SFJulie1
and put butter in the spinach
-
SFJulie1
BSD is like sailing at the end of the day when you are bored of your linux tesla with too much magic :D
-
polarian
I think it is time to embarrass myself on the mailing list
-
SFJulie1
good luck and godspeed
-
polarian
I should make an alt just for asking stupid questions :P
-
polarian
wait I wonder if it is due to the routing table...
-
polarian
because I am using wireguard all packets go via wg0
-
polarian
I guess I should try it without wireguard
-
polarian
*pretty obvious I should have done this first*
-
polarian
ok I can see the routing table has nothing for managing this
-
polarian
ok its wireguard, found the issue
-
SFJulie1
... and it was ?
-
polarian
SFJulie1: yes
-
polarian
hot tip: always check what route(8) outputs when using "show"
-
polarian
omfg selectively removing blocks of IPs from the wireguard AllowedIPs is painful
-
polarian
hmmm, does freebsd route IP addresses based on the smallest block first, ie: 0.0.0.0/0 would be the last matched rule, if there is a say 192.168.0.0/24 rule, it would match the smaller block over 0.0.0.0/0 which means in theory, I just need to add an explicit rule and the 0.0.0.0/0 will not match
-
ivy
polarian: yes, longest prefix always wins
-
ivy
all IP routers work like this
-
polarian
thought so
-
polarian
just had to make sure so I didnt seem like an idiot :P
-
jbo
never be too proud for doing that. I do that all the time.
-
CrtxReavr
Well. . . just remember, the metric trumps all.
-
CrtxReavr
People forget that.
-
ivy
CrtxReavr: not unless you're doing something quite unusual. a worse (metric) longer prefix is still preferred over a shorter but better prefix
-
polarian
hmm this one is a head whack
-
polarian
so I assumed the reason the response packets for tcp connections were being dropped ont he host was due to the routing table, but using route show the routing table should route the packet via the epair... but yet the host is still dropping the packet for some reason...
-
polarian
there is state, it shouldn't even be checked by pf, state bypasses it
-
ivy
polarian: do you by any chance have 'set state-policy if-bound'? also, add 'log' to all your block rules and check pflog to see which rule is dropping the packet
-
polarian
the only block rule is block all so I will log that
-
polarian
also I do not have set state-policy if-bound
-
polarian
I do not have pflog configured though
-
ivy
you should probably enable pflog and check there anyway to see if it's pf dropping the packet or something else
-
polarian
that would be a good idea
-
polarian
I will take a look later, thanks for the suggestion
-
ivy
also if this is wireguard, check AllowedIPs, that seems obvious but it's easy to forget
-
polarian
ivy: its 0.0.0.0/0
-
polarian
but its not the biggest priority in the routing table
-
polarian
I checked the IP address of the jail against the routing table, it should go via the epair
-
polarian
the thing I dont get, I have read a lot on pf, and afaik in all cases pf does not deal with the response if its stateful, (aka if you have keep state, and the state exists, then packet ALWAYS passes)
-
polarian
it doesn't hurt to setup pflog and check, but I doubt that is the issue
-
polarian
I also doubt it MTU either, as it goes from 1420 to 1500 just fine router side
-
CrtxReavr
I've never had an issue with FreeBSD getting MTU wrong when routing between interfaces, even with tunnels.
-
CrtxReavr
Now Linux, on the other hand. . .
-
polarian
I will have to check pflog and see if it is there
-
polarian
I am not really sure what else it could be though
-
polarian
the weirdest thing is that ICMP passes, but TCP doesn't
-
polarian
the routing table is correct, and the /24 route should match before the 0.0.0.0/0 route
-
polarian
I see it leave the router wg0 if but not enter the host wg0 if
-
mzar
polarian: you have to run tcpdump, sniff the traffic, check each TCP segment with it and you will find the culprit
-
mzar
you just need good, extended troubleshooting
-
regis
mzar: no need to sniff - he's already got pflog, so can read the traffic from a file
-
regis
polarian: I've seen wg behave... in various different ways across systems. And it includes FreeBSDs hypervised by 3rd party or my own bhyve.
-
regis
polarian: please tl;dr, as I'm not sure what the issue is. I've read the buzz above, about the MTU or what not; but what's the tl;dr?
-
mzar
regis: good to know
-
mzar
anyway, good, extended troubleshooting will help
-
mzar
could you please fix the topic or #freebsd-pulse ?
-
mzar
koobs retired and we are now low on qualified ops
-
» ober has daily crashes while watching youtube vids. dumpdev="AUTO" but it never seems to find it. swap is /dev/ada0p3.eli.
-
kevans
ober: er, release/stable/main?
-
ober
14.2 release
-
jmnbtslsQE
ober: not sure but is it writing to the swap dev at startup and then the .eli swap from your fstab overwrites the crash dump metadata with geli ?
-
ober
that's what I'm guessing. need a non-encrypted device
-
jmnbtslsQE
maybe so. i think i remember something like this happening to me
-
mtll
how big is your swap compared to your ram?
-
ober
2GB swap, 64GB memory
-
mtll
I stupidly forgot to change mine during the installation and now I have a default sized swap partition of 2GiB to my 64GiB of ram, and dump fails because the swap is too small
-
polarian
regis: host is dropping packets when they come in via wireguard
-
jmnbtslsQE
heh that could also be an issue
-
ober
ty
-
mtll
I didn't want to reinstall, because tbh I never need the swap for performance reasons anyway
-
mtll
you can use a USB drive as dumpdev
-
mtll
that was my workaround
-
ober
that's an idea
-
mtll
there's also like a way to store the dump to another device over the network(which I freaking love btw, this type of thing is what I love about FreeBSD
-
ober
will ddb_enable do the right thing from within X to drop to console?
-
mtll
most of my time in ddb so far has been after kernel panics from loading the graphics drivers, so can't help you with that one :P
-
mtll
I guess try it and see what happens
-
mtll
that's funny that we made the same brainfart during install with the same amount of ram. makes me feel slightly less silly, I guess
-
nimaje
dumpdev="AUTO" should dump on your swap device in the crash handler before powering off and write the dump to your filesystem before mounting your swap
-
mtll
nimaje: yeah, but if the swap is too small, it won't
-
ober
even just a backtrace would be nice.
-
nimaje
was mostly meant for jmnbtslsQE
-
mtll
at least in my case, even on a fresh install with nothing running, not even X, kernel panic from loading i915kms, the size of the minidump was something like 2.5G, so no cigar
-
ober
mtll: are there docs on dumping over the network?
-
mtll
dumpon manpage is your friend
-
mtll
netdumpd in ports
-
ober
ty
-
mtll
though netdumpd is what you install on the receiving machine, to be clear
-
ober
aye
-
mtll
again this is what i love about FreeBSD in general; it tends to have the kind of features that you rarely need, but when you do need them, you *really* need them
-
cyric
mtll: yep, the default of 2gb swap is weird, i really wish freebsd supported dumping to a zvol so you could resize that dynamically
-
farhan
Does anyone know if dtrace scripts can include another file? I plan to have a LOT of structs and the file will likely get quite large.
-
lisbeths
it seems to me that the bsd license could be extended to help protect the bsd licensers from having their software stolen from them by proprietary or gpl copyright trolls. i have been bullied out of using bsd license by nearly everyone I speak to threatening to sue me
-
nimaje
farhan: yes cpp is used for that, so #include like you would in c
-
jaredj
lisbeths: what? do they think your software is derived from some GPL software?
-
lisbeths
no they keep telling me that they are going to make a new version and sue me if I use that version
-
lisbeths
for example there will be a spelling mistake in my software and then they will fix the spelling mistake and then threaten to sue me
-
jaredj
who are these jerks
-
jaredj
any company that's interested in the software should be glad for the gift and not try to kill the golden goose
-
jaredj
it's free as in puppies, not free as in beer