-
SoniEx2_
ugh, compiling llvm with -j1... this is gonna be a while
-
alepzi
Soni: you got ipv4 disabled?
-
Soni
alepzi: not yet
-
alepzi
Soni: i wonder how much ram usage is cut when ipv4 is disabled. and i wonder if ipv6 traffic is any faster
-
Soni
personally? it's not about ram, but about (code) maintenance. unfortunately upstream doesn't see it that way.
-
alepzi
what did upstream say?
-
zoid
I've tried googling to no avail, is there somewhere I should check for issues with specific hardware? My X260 works great with both FreeBSD and GhostBSD out of the box, but my screen brightness keys don't seem to be detected. xev is not recognizing them when pressed.
-
V_PauAmma_V
zoid, I don't have one so I can't test, but have you tried the "PMU" "keys" combo described in the devd.conf manual page, devd.conf(5)?
-
markmcb
just wrote my first rc.d script, w00t! it works, i can start/stop the service, but for some reasonputting myservice_enable="YES" in /etc/rc.conf doesn't seem to start it automatically. any gotchas? it's in a jail if that matters.
-
alepzi
grats
-
zoid
I've not tried that yet! I'll give it a look.
-
V_PauAmma_V
markmcb, going for the easy guess: does your script use the "nojail" keyword?
-
markmcb
no, just shutdown
-
V_PauAmma_V
OK. Then I guess it's time to share your script in a pastebin, suitably redacted if it contains confidential or sensitive info.
-
markmcb
V_PauAmma_V: here you go
bsd.to/a6Qu
-
VimDiesel
Title: dpaste/a6Qu (Plain Text)
-
markmcb
I just found this in the logs "listen tcp 10.0.1.231:20181: bind: can't assign requested address" ... but I don't get that error when staring manually ... is there a dependency I should list to avoid that?
-
V_PauAmma_V
When you start it manually, is that within the jail or outside?
-
markmcb
inside the jail
-
V_PauAmma_V
What assigns 10.0.1.231 to the jail?
-
markmcb
i think i solved it adding -r to the list of daemon args
-
V_PauAmma_V
If that makes the problem go away, that's probably because there's a timing issue associated with that IP address assignment.
-
markmcb
the IP is assigned by the host as with an epair+vnet config
-
markmcb
i tried "REQUIRE: NETWORKING" in the rc script, but that didn't help
-
markmcb
i agree, seems like a timing issue
-
markmcb
looks like it fails once and starts on the second try, so it's a very narrow miss on timing
-
V_PauAmma_V
OK. We've reached the end of my ability to troubleshoot jail networking issues. :-(
-
markmcb
no worries, at least it's working :)
-
V_PauAmma_V
To figure out what caused it if you feel inclined that way, I would suggest 2 things: 1- doublecheck your jail configuration, and 2- wait until someone more knowledgeable than me looks in and answers.
-
SponiX
So, it is okay to run the latest git of the ports on FreeBSD 14 release-p6 ?
-
lw
SponiX: yes, ports is supported on all currently supported freebsd releases
-
lw
there are no release-specific branches
-
SponiX
thanks for the reply
-
SponiX
I'm tinkering with FreeBSD 14 in a VM. If I get good enough with it, I might do it as my Host OS eventually
-
lw
Soni: what do you mean by "upstream doesn't see it that way"? -- freebsd has full support for building without IPv4 code in the system. it sounds like your issue is you don't have enough disk space to build it, which isn't really an upstream issue
-
kevans
we have a -INET4 LINT kernel that gets built regularly so that the option to rip it out doesn't break it, and at least one developer that actively refuses to build with ipv4 included last I checked
-
kevans
LINT-NOINET
-
lw
kevans: i had to submit 4 patches yesterday to get main to build without INET so it may not be 100% tested at all times :-)
-
kevans
mjg usually complains when it breaks because it breaks tinderbox
-
lw
i wanted to fix ipfw too, but that's a bit awkward because it uses an AF_INET socket for the user/kernel interface
-
kevans
pretty quickly
-
SponiX
I saw there is signal-desktop. Anyone know if there is a Discord package for FreeBSD?
-
livestradamus
SponiX: i saw this mentioned on fediverse
github.com/SrWither/DiscordBSD
-
VimDiesel
Title: GitHub - SrWither/DiscordBSD: an attempt at a native discord client for FreeBSD
-
SponiX
livestradamus: thanks.. looks promising
-
kevans
iirc discord official policy is kinda dick-ish against unsanctioned clients, so maybe be careful there
-
SponiX
kevans: Yeah, I've heard that as well
-
SponiX
I might just end up running it within the browser and calling that close enough\
-
SponiX
there isn't any real major advantages to having the electron client vs the browser anyway, from what I understand
-
SponiX
Anyone running KDE Plasma 6?
-
livestradamus
SponiX: RE: electron app. Not for me since I can turn any URL into a launchable app
-
SponiX
livestradamus: what method does that?
-
SponiX
Can Chromium login with your Google account and sync passwords and so on? Like normal Chrome does (on Linux) ?
-
parv
Is en-Googled-Chromium not available in The Ports?
-
lw
is there a utility in the base system to format tabulated data nicely (in ASCII)?
-
nmz
I used to use cordless, It was a good client... either way, there's a telegram client on freebsd. its pretty good, even leaner than discord
-
nmz
lw: format? like column -t ?
-
lw
nmz: yep, ty
-
nmz
people should use telegram more, the freebsd telegram channel for one is kinda empty, but there's people in it
-
lw
the Foundation seems to have embraced Discord which is a bit disappointing, even though i understand it's probably because of the low barrier to entry
-
nmz
but... there's no application
-
nmz
for freebsd
-
nmz
I'm using it in chrome because gtkcord is lacking and uses a lot of resources
-
lw
yeah, but the native 'app' is just the web app in an electron package anyway
-
nmz
not to mention you have to get the auth key from the browser and go into developer mode which is risky of termination of the user as well
-
Soni
lw: we believe freebsd would benefit from officially removing the ipv4 stack
-
lw
Soni: that seems objectively false since many users still have only IPv4 connectivity. but from your point of view, how would that differ from simply compiling the system WITHOUT_INET?
-
Soni
lw: you don't have to break ipv4-only connectivity to go ipv6-only
-
Soni
since ppl are gonna run ipv6-only networks, then you need to maintain code to support setting up ipv6-only networks, in addition to maintaining an ipv4 stack. isn't that a waste of maintainer effort? you could instead do away with the ipv4 stack and support only the SIIT translation code, and that would be less code to maintain overall.
-
lw
how is your FreeBSD router going to do SIIT when it doesn't have an IPv4 stack? you'd have to reimplement most of IPv4 inside ipfw or something to do the translation
-
nimaje
Soni: but how would you then use freebsd if you have a ipv4-only network for some reason? (or just no ipv6 from your provider, so no internet without ipv4)
-
Soni
through "platd"
-
Soni
(a glorified raw socket that trivially translates ipv4 packets into the ipv6 world that ipv6-only freebsd can handle)
-
lw
and that works with an ISP that only supports IPv4?
-
Soni
yes
-
lw
so when dhclient gets an IPv4 address, what does it do with the address?
-
Soni
it's a bit awkward only having enough ipv6 to route the NAT64 prefix, but at least you'd only have a single ip stack, with all the benefits that comes with
-
Soni
dhclient would have to be integrated into "platd" - it needs to know when to attach/detach the NAT64 interface, and you can't send broadcast/multicast over NAT64
-
lw
ok, and my Xyplex terminal server that only supports IPv4, how does that access the Internet through my IPv6-only router?
-
Soni
painfully
-
lw
you also need to run a DHCPv4 server internally for devices like Google Chromecast that won't boot on an IPv6-only network, does platd handle that somehow?
-
remiliascarlet
Soni: "we believe freebsd would benefit from officially removing the ipv4 stack" This is a very delusional statement.
-
Soni
this would be a lot easier if there were a way to carry broadcast/multicast over nat64, as you could then just use a regular clat-in-libc with regular dhcpv4 tooling and whatnot
-
lw
how does CLAT in libc help with IPv4-only hosts?
-
remiliascarlet
Every single server on the planet has IPv4, but far from all of them have IPv6. How are you supposed to interact with these servers in an immaginary "IPv6-only world"?
-
Soni
with SIIT
-
lw
remiliascarlet: for servers it's actually pretty easy with 464XLAT (or SIIT or whatever). IPv4-only clients is the problem
-
lw
a lot of widely-deployed devices, especially in IoT world, are still IPv4-only
-
remiliascarlet
"IPv4-only clients is the problem" Alright, good to know I'm the problem then.
-
lw
? by 'the problem' i mean 'the problem with running an IPv6-only network', that wasn't some kind of personal attack
-
remiliascarlet
My ISP doas supply IPv6 addresses on request, except their request form is forever broken.
-
remiliascarlet
s/doas/does
-
remiliascarlet
"that wasn't some kind of personal attack" I know, I was just joking.
-
lw
if i was the only user on our network, i'd have gone IPv6-only years ago, but i have to support other users and they bring their own devices they want to use, i can't really just tell them to spend £££ on new devices because i prefer IPv6
-
lw
(that said, i did try IPv6-only for a while and it *did* work pretty well... it was mostly the Chromecast that had issues with it, i think we might replace that at some point and i'll try again)
-
lw
doesn't help that our router vendor (mikrotik) still doesn't support NAT64, but i'm going to replace that with a freebsd box anyway
-
remiliascarlet
My previous ISP had a way to request IPv6 addresses, but you had to install something from either App Store or Play Store in order to request, so I thought "fuck that shit!".
-
Soni
honestly we only just set up ipv6-only at home, it'll be a while before we get more going with it
-
Soni
are you familiar with ipv6-mostly?
-
Soni
(dhcp option 108 etc)
-
lw
you only just deployed IPv6-only network and you already know it would be easier for all FreeBSD users to immediately turn off IPv4? :-)
-
Soni
lw: given our initial experience setting this up, yeah
-
Soni
this was a pain to set up
-
Soni
luckily that was only the initial setup
-
Soni
but yeah, we should make this easier
-
lw
i'm fine with making ipv6-only networks easier to set up, i'm sure any patches to do that would be appreciated. but that's a whole different thing from removing ipv4 support entirely, which will break things for many, many users
-
lw
i've actually been meaning to look at making freebsd understand PREF64 in RAs for client-side CLAT setup, like macOS does
-
lw
(macOS is basically the only mainstream OS that does IPv6-only properly today... Windows only does CLAT on LTE connections for some bizarre reason)
-
satanist
and even macos doesn't support pref64 (at least the last time I checked)
-
lw
satanist: it does now, it'll configure CLAT automatically if it sees PREF64 in RA
-
lw
at least since 13.x
-
satanist
ah nice, need to check soon if this allows to disable dns64 (makes problems)
-
satanist
another problem is, pref64 support in routers is not that common
-
lw
yeah, freebsd rtadvd doesn't support advertising it, that's another thing i've been meaning to fix
-
lw
hopefully that one should be pretty simple
-
lw
need to fix if_bridge not loading on a non-INET kernel first
-
Soni
lw: so how can we remove ipv4 without breaking things for many users?
-
lw
Soni: you can't, because those users depend on IPv4. you can argue they should upgrade to IPv6... sure, i don't disagree. but in real world it's not that simple
-
lw
Soni: but if *you personally* want to remove IPv4 code from the OS, you can do that, by building WITHOUT_INET
-
Soni
lw: we mean from the kernel, we're not trying to drop ipv4 networks altogether
-
Soni
(not yet anyway)
-
lw
well, you need to present a solution that works for current users, including users with IPv4-only hosts
-
Soni
(tho we are trying to push for more ipv6 networks)
-
lw
if you want to create "ipv4d" that provides IPv4 connectivity for IPv4-only hosts by bridging to SIIT or something, you could do that
-
Soni
lw: we believe "platd" would work fine for most freebsd clients
-
Soni
the hard part is routers
-
satanist
you mean clat (client) not plat (provider)?
-
Soni
no, clat is in libc
-
satanist
in freebsd?
-
lw
satanist: Soni wants FreeBSD libc to do CLAT internally to support IPv4 apps on an IPv6-only host. which is not an unreasonable suggestion, if they wanted to write the code for it...
-
lw
of course that won't help things like Go that don't use libc, but hopefully there aren't many IPv4-only Go apps around
-
dstolfa
lw: hasn't go moved to using libc on the BSDs finally?
-
lw
i do think it makes more sense to implement that in the kernel though, so it just works for everything
-
dstolfa
i recall seeing it mentioned somewhere
-
lw
dstolfa: idk, i saw something about that but isn't it just for some syscalls?
-
lw
(is this why we got libsys?)
-
dstolfa
no idea, i just saw it mentioned in passing. honestly i don't really care about go
-
satanist
I just don't get why "platd" would work fine for most freebsd clients, on the ipv6-only-client doesn't run a platd
-
lw
i don't either really but sadly i do have to use some Go stuff, like prometheus
-
satanist
for clat it would be nice to have something like ifconfig bla -clat $ipv4-addr $source $prefix
-
lw
satanist: i've never tested it, but ipfw does support CLAT already
-
satanist
while $source can also be a prefix and it would do some privacy-extention
-
lw
satanist: what i was hoping to do with PREF64 was have the prefix show up in ifconfig and then auto-configure ipfw using that somehow
-
Soni
satanist: you don't need an ipv4 stack to put ipv4 packets on the wire
-
satanist
yes of course, but this way it would be quite easy to addopt
-
lw
Soni: you kind of do, because whatever is sending IPv4 packets *is* your IPv4 stack
-
lw
if you do it in userland, it's still an ipv4 stack
-
satanist
and could be used to route packegs for clients which doesn't support v6
-
Soni
lw: is a SIIT an ipv4 stack
-
lw
Soni: every SIIT implementation i'm aware of uses an existing IPv4 stack, yes
-
Soni
lw: well this one wouldn't
-
lw
what is "this one"?
-
lw
if you're sending IPv4 packets and doing IPv4 NAT... that *is* an IPv4 stack
-
Soni
the "platd"/"ipv4d" thing or whatever we end up calling it
-
lw
the fact it's in userland and doesn't depend on kernel IPv6 doesn't mean it's not an IPv4 stack
-
Soni
nah we don't do ipv4 NAT, we use the ipv6 stack for port mapping
-
lw
i really hate code like this
-
lw
if (PFIL_HOOKED_OUT(V_inet_pfil_head)
-
lw
#ifdef INET6
-
lw
|| PFIL_HOOKED_OUT(V_inet6_pfil_head)
-
lw
#endif
-
lw
) {
-
lw
what's the least worst way to convert this to work without #ifdef INET? like i could add a temporary variable, but...
-
Soni
ifdef INET, if defined(INET) && defined(INET6), ifdef INET6?
-
lw
i don't like that much duplication of code
-
lw
i think this is the least worst option
le-fay.org/tmp/30d/eokPZC.txt
-
Soni
this only duplicates the define checks, not the code
-
dstolfa
lw: could add a macro that does "false" in the case where INET6 is not defined, and the condition if it is?
-
Soni
hmm
-
dstolfa
e.g. defined a macro INET6_HOOK_CHECK(...) which does different things based on INET6 being defined or not. same thing for INET
-
dstolfa
if they're not defined, it just does false
-
dstolfa
and then you can undef them after you no longer need them i guess
-
dstolfa
if you don't want them to escape the scope
-
lw
dstolfa: do you really think two macros is easier than my proposed fix above?
-
dstolfa
lw: no, but i'm fine with what's currently there too, even though it's a bit icky :D
-
dstolfa
i'm not too fussed about these things unless it's my own code tbh
-
lw
dstolfa: the issue with what's currently there is it breaks on a non-INET kernel
-
lw
link_elf_obj: symbol vnet_entry_inet_pfil_head undefined
-
lw
linker_load_file: /boot/kernel.LFV6/if_bridge.ko - unsupported file type
-
dstolfa
right, then it needs to be fixed :D
-
dstolfa
lw: i don't have an opinion on which one is better. was just offering an option without a variable
-
lw
yeah, sure
-
lw
dstolfa: i didn't mean that as a criticism, i'm just really not sure what the best fix is :-)
-
lw
i think i'll just send this version and see what reviewers say
-
dstolfa
lw: no worries, i don't take code discussions personally :D
-
dstolfa
it's just code
-
lw
oh funny, i just found it already does this:
-
lw
#ifdef INET6
-
lw
#define PFIL_HOOKED_INET6 PFIL_HOOKED_IN(V_inet6_pfil_head)
-
lw
#else
-
lw
#define PFIL_HOOKED_INET6 false
-
lw
#endif
-
lw
it's just not used consistently, maybe i'll do it like that instead
-
lw
(and add the INET version)
-
lw
-
VimDiesel
Title: if_bridge.c « net « sys - src - FreeBSD source tree
-
lw
don't write code like this :-(
-
dstolfa
uh oh... doesn't even seem to be a generator of any form, should just be a function probably
-
Soni
wow
-
lw
dstolfa: i guess someone 'refactored' it to add bpf support and just turned the whole thing into a macro instead of doing it properly...
-
lw
if_bridge patch (cc dstolfa):
freebsd/freebsd-src #1159 ... tested to the extent that i can load if_bridge.ko and create a bridge
-
VimDiesel
Title: sys/net/if_bridge: support non-INET kernels by llfw · Pull Request #1159 · freebsd/freebsd-src · GitHub
-
lw
actually this is wrong because i mixed out HOOKED_IN and HOOKED_OUT
-
lw
better patch up
-
lw
jbo: any idea what's going on this this, i need to build it on arm64... if it's not likely to be committed i'll have to fork a local ports tree to include it
bugs.freebsd.org/bugzilla/show_bug.cgi?id=276996
-
VimDiesel
Title: 276996 – [NEW PORT] databases/postgres_exporter: PostgreSQL metric exporter for Prometheus
-
SKull
lw: stuff like
cgit.freebsd.org/src/tree/sys/net/if_bridge.c#n2647 is why i'd never participate in open source C :)
-
VimDiesel
Title: if_bridge.c « net « sys - src - FreeBSD source tree
-
lw
SKull: yeah it made me o_O a bit but i'm sure other OSs have just as worse code...
-
lw
writing my own OS from scratch is on my todo list but that might take a while
-
Puzfire
hey, do freebsd 14 has something i need to set, for me to be able to use /etc/jail.conf.d/jailname.conf as placeholder for jails? atm it only accepts /etc/jail.conf and wont see the conf i placed in jail.conf.d
-
CrtxReavr
Who's in the Bay Area?
-
lw
CrtxReavr: Californians
-
» CrtxReavr kicks lw in the shins.
-
lw
what's the company called that does FreeBSD stuff and begins with a 'k'? i thought it was Klara but that's some kind of credit provider
-
CrtxReavr
What do they sell?
-
lw
i don't know, like... zfs stuff? or something?
-
lw
oh, it is Klara
-
lw
are there two companies with the same name?
-
CrtxReavr
Stranger things have happened.
-
xmj
-
VimDiesel
Title: Klara Inc | Open Source Development. Reimagined.
-
xmj
the other one you probably refer to is Klarna (.com)
-
lw
ah right, the bnpl company is klarna
-
xmj
yeah, the linkedin people page reads like it's grown a good bit
-
» lw mails klara (not klarna) to beg for a job
-
xmj
AllanJude: which of the eight open positions has the highest priority for you at the moment?
-
AllanJude
probably the technical project manager, and then the com-rel role
-
markmcb
so i just solved a problem i've been having with tmux. the default terminal "e.g., echo $TERM" is tmux-256color in tmux, but FreeBSD doesn't know what that is without terminfo-db installed. should that package be a dependency? i was breaking mouse functionality for me in tmux. not sure how i suggest a change.
-
jauntyd
I'd e-mail the tmux maintainer
-
markmcb
will do
-
kevans
markmcb: yeah, I believe that's the best way (though tmux-256color seems to be in termcap on recent versions)
-
markmcb
kevans: when you say recent, do you mean 14p.0p6, or something newer in stable/current? i'm on 14.0p6
-
kevans
current
-
kevans
maybe stable, haven't checked
-
CrtxReavr
Yet another reason why I stick to screen.
-
rwp
markmcb, I have tmux-256color in termcap in 13.2R okay. Perhaps the problem is that the termcap entry needs expansion to include a capability that is included in terminfo but not in termcap.
-
rwp
That would be the better solution. Improve the native termcap database.
-
markmcb
rwp: maybe so, i'm not so well-versed in this stuff. whatever is missing breaks the tmux "send-keys -M" functionality to pass mouse events to apps in a tmux pane. i'm not sure what/where i'd report.
-
alepzi
docs.freebsd.org/en/books/handbook/jails/#creating-vnet-jail in the "ADD TO bridge INTERFACE" part of the sample jail config, where do i set 'private' on the epair#a interface?
-
VimDiesel
Title: Chapter 17. Jails and Containers | FreeBSD Documentation Portal
-
Ltning
What's the best way to check if a CVE is handled by a freebsd security advisory?
-
Ltning
The list of SAs on freebsd.org is not helpful if all I've got is a CVE ..
-
alepzi
it seems optional to copy /etc/localtime into a jail so why do docs imply it's necessary?
-
rwp
Ltning, If you subscribe or download the
freebsd.org/security/advisories mailbox then you can search the advisories for the CVE number and see what it says. Easier is the source. If you have the git source then you can search the git source for the CVE number.
-
VimDiesel
Title: FreeBSD Security Advisories | The FreeBSD Project
-
Soni
do we need to worry about calcru: runtime went backwards
-
debdrup
Soni: it's an issue with the CPU speed, usually called by Intel Speedstep.
-
debdrup
Do you have powerd(xx)? running?
-
Soni
no idea, this is a VM
-
Soni
it kinda crashed for a bit (it paused because we ran out of host disk)
-
debdrup
-
VimDiesel
Title: kern_resource.c « kern « sys - src - FreeBSD source tree
-
debdrup
I'm specifically going off of
cgit.freebsd.org/src/commit/sys/kern/kern_resource.c?id=bacb140f31a in making that guess, because otherwise your CPU is probably very fucked.
-
VimDiesel
Title: src - FreeBSD source tree
-
debdrup
-
VimDiesel
Title: MARC: Mailing list ARChives
-
debdrup
that'll search in the bodies of the mails sent to the security-notifications mailing list
-
Ltning
rwp, debdrup: Yea, I got about that far myself, but it has just came to my attention that a reverse search (cve -> advisory) could make certain peoples jobs a lot easier. I can figure it out, but those people that receive "security testing reports" and need to respond don't necessarily want to search mailing lists or source code.
-
Ltning
The nearest I got was vuxml, and for the time being the website can list all SAs by CVE, but that's inefficient and not scalable..
-
debdrup
Ltning: problem is, CVE isn't a universal identifier
-
Ltning
(Then again, several of the public CVE databases link back to the advisories - but not always)
-
debdrup
I mean, the real answer is that Someone(TM) uses AsciiDoc and/or the ruby scripting it offers to add the CVES from any .asc file that contains it.
-
Ltning
Right now the openssh stuff from december or so is causing a fair bit of noise
-
Ltning
Because a scan doesn't reveal that systems are update
-
Ltning
+d