-
meena
yuripv: i have managed to lxc launch --vm a thing, but not yet to connect to it via lxc console
-
_xor
Re: Earlier discussion on audio devices...
-
_xor
I remember a while back when I was setting up my headphones, it was a pain in the neck to review & figure out the various options/configurations and how they interact with each other.
-
_xor
I'm honestly looking at revising the notes I took on it and updating some docs or something on it.
-
_xor
One of the things that I remember was bt/virtual_oss vs. kernel/module managed devices and the sysctl combinations neccessary for them.
-
meena
yuripv: i can't seem to get a login… will try again tomorrow, fresher.
-
yuripv
meena: thank you.
-
yuripv
btw, i had similiar ifconfig change to show the original ifname parked somewhere, don't remember why it wasn't wanted
-
ghoti
How can I generate a custom RARP packet?
-
meena
-
VimDiesel
Title: Ifconfig limitations
-
meena
if ab interface is renamed, it would be cool if you could still refer to it somehow, because sysctl doesn't give a damn about your rename
-
ghoti
I'm trying to find hosts for which I know the MAC addresses, but they don't source enough packets to show up reliably in the switch's mac address table. So, RARP.
-
V_PauAmma_V
I take it you don't know their IP addresses either?
-
mason
_xor: If you refine your notes, could you put them up on the wiki?
-
_xor
Yes.
-
_xor
Going through that stuff is on my agenda, but I'm getting through it pretty slowly as it's not a high priority. I have a ton of notes that would likely be useful in general. The USB issue though is particularly annoying because I remember thinking to myself, "What should have taken no more than 20-30 minutes has now had over an hour spent on it.
-
_xor
Maybe I'm just dumb, but better docs here would have saved a bunch of time."
-
ghoti
V_PauAmma_V: if I knew the IP, I wouldn't need RARP. :)
-
mason
_xor: I want to finally just get all the audio and videoconferencing stuff I want working under FreeBSD, and I remember the maze that presented itself last time I tried.
-
_xor
Don't source enough packets to show up on the switch? How short is the ARP cache TTL? Or alternatively, depending on the switch, maybe SNMP via push/poll when entries are added/updated/removed?
-
_xor
mason: Which version of FreeBSD? Which browser? What's the audio device interface? (e.g. Bluetooth, USB, etc)
-
yuripv
ghoti: there are several *arp* utilities in ports/net/, may be one of those could be useful? (looking at arping and arp-scan)
-
» _xor sighs
-
mason
_xor: FreeBSD 13.1, or I guess it'll be 13.2, Firefox, USB.
-
_xor
That's another thing I should try to spend a bit of time on each week. Submitting internal ports I whipped up. I know I have a few that weren't in the main ports tree before (maybe they are now), of which at least a couple of them dealt with network diagnostics (including ARP utilities).
-
_xor
yuripv: In fact, unless I'm mistaken, I think I've seen some of those ports pop up on the freshports.org home page that you created?
-
_xor
mason: What was the issue you ran into? Anything relevant pop up in /var/logs around the time you plugged in the USB device or when you tried playing audio in Firefox? Alternatively, launch firefox from a terminal and watch what it dumps to stdout/stderr when trying to play audio to see if there are any warnings/errors (which can tell you if it
-
_xor
can't find a device, can't open it, etc)
-
mason
_xor: Hrm, it was long enough ago that I'll have to try again. One thing I was trying to do was enable V4L and I couldn't for the life of me find how I was supposed to specify device names to ffmpeg on FreeBSD.
-
_xor
That's my environment too btw, 13.1 + Firefox + USB headset.
-
yuripv
_xor: me? i don't know anything about freshports (probably confusing me with yuri@?)
-
» yuripv hides
-
_xor
Yeah, probably.
-
_xor
-
VimDiesel
Title: WebcamCompat - FreeBSD Wiki
-
_xor
mason: Check that and see if your device(s) need webcamd, cuse, etc.
-
ghoti
yuripv: arping doesn't seem to produce rarp. I'll check a few other ports, thanks for that suggestion
-
ghoti
_xor: the problem is, the devices don't source packets frequently enough to stay cache. They know their IP, but I can't send them status requests if I don't know where they are.
-
ghoti
And besides, I get more utility by populating the local ARP cache than trying to query the switch's mac forwarding table.
-
Ellenor
So, GELI might be vulnerable, if it uses PBKDF2.
mjg59.dreamwidth.org/66429.html
-
VimDiesel
Title: Captcha Check
-
parv
If nothing, that could provide some formal|serious scrutiny (for GELI) as had not found any concrete reviews about the security of the encryption
-
parv
Ellenor, Thank you for the link
-
parv
On the related topic, Back to "PBKDF2" from "Aargon2" due to more memory use by the later
go-gitea/gitea #14675/commits/b337ef56b90e11136ddb23826838404d8eb2f3e2
-
VimDiesel
Title: Turn default hash password algorightm back to pbkdf2 from argon2 until we found a better one (#14673) by lunny · Pull Request #14675 · go-gitea/gitea · GitHub
-
Ellenor
the higher memory use is a feature, not a bug...
-
Ellenor
password validation needs to be rate limited. higher memory and cpu usage is a crude way to do that and sometimes the only
-
» parv missed to note the date of Gitea commit c 2021
-
meena
that setting is gone
-
Ellenor
-
VimDiesel
Title: Hector Martin: "@mjg59⊙nc Something doesn'…" - Treehouse Mastodon
-
meena
let's hope they're doing better by now, yeah, defaults back to argon2:
github.com/search?q=repo%3Ago-gitea%2Fgitea%20argon2&type=code
-
VimDiesel
Title: Sign in to GitHub · GitHub
-
meena
but still, this shit drives me bonkers
go-gitea/gitea #3217
-
VimDiesel
Title: Confidential (private) issues on public repo · Issue #3217 · go-gitea/gitea · GitHub
-
parv
meena, Your earlier URL asked me to "sign-in"
-
parv
the one with search query
-
meena
parv: yeah, the new search feature is login only
-
parv
meena, Aaahhh
-
meena
because the search is now actually really good lol
-
meena
but also, i reckon, it is quite costly, performance wise
-
debdrup
Ellenor: GELI was designed differently, because it doesn't make assumptions about the number of iterations - instead it tests to see how many iterations can be performed on the CPU it's being initialized on, and subsequently uses that number of iterations.
-
debdrup
Also, if the point is to use something that's memory-prohibitive, scrypt is better.
-
ghoti
morning, debdrup. :)
-
meena
-
VimDiesel
Title: 270909 – find: /.zfs: Invalid argument
-
ghoti
meena: that's weird indeed. But thanks for the reminder to upgrade. :)
-
Ellenor
debdrup: and can i increase that despite a low bench
-
debdrup
If only there was some sort of manual page that'd give some sort of answer..
-
debdrup
Also, Matthews article is making a LOT of guesses..
-
Ellenor
Yes
-
Ellenor
I'm since hearing it's not credible
-
debdrup
Matthews article talks about 128bit key lengths, but GELI is using PKCS#5 specifically because it features HMAC/SHA1 which variable length, and the number of interations that can be performed by the CPU in 2 seconds is what defines that length.
-
debdrup
You can try setting up geli on top of a ggate to see how many interations a modern CPU does.
-
Ellenor
ah.
-
debdrup
I find it much more likely that a nation state could manage to simply bypass the encryption simply by knowing the key.
-
Ellenor
yes.
-
debdrup
If someone doesn't know they're being watched, they aren't likely to practice the highest levels of opsec when typing in their password.
-
debdrup
I've no idea what LUKS does with respect to the key derivation function used to supply the key material for the AES encryption, but the French-language text does seem to suggest (to my understanding, which admittedly is very limited) that they decrypted the full-disk encryption by knowing the password since they had full write access to the machine (given that there were modified files).
-
debdrup
French is NOT a language I'm even remotely comfortable with, though - so it's possible I missed something.
-
debdrup
Iteration count for LUKS1 seems to default to 1000 (used to default to 10) and for LUKS2 it seems to be controlled by a time variable (or the number of iterations can be forced).
-
debdrup
I think they used LUKS1, since they mention Ubuntu 18 (which I take to mean the one released in 2018, and which defaulted to LUKS1 according to what little documentation I can find).
-
debdrup
1000 iterations wasn't a lot in 2005.
-
meena
luks has terrible usability…
-
debdrup
..turns out, even the most-recently-released Ubuntu still defaults to LUKS1.
-
ghoti
methinks the wikipedia page for LUKS is begging for a "criticism" section.. :)
-
» debdrup shrugs.
-
meena
-
VimDiesel
Title: Ubuntu LUKS cryptsetup upgrade · GitHub
-
meena
fun
-
debdrup
I don't see how you should be able to do in-place upgrades of the key derivation function, or the encryption, for any system.
-
debdrup
Even changing the number of iterations should, it seems to me, warrent a complete rewrite of the system.
-
meena
aye, that makes sense
-
debdrup
I think if crypto(9) implemented scrypt as a replacement for PKCS#5 and I wanted to take advantage of it, I'd set up partitioning and geli initialiszation a disk connected via USB, then do zpool create (mirroring what's in zpool-history(8)), do zfs send | receive, and then switch out the disks.
-
debdrup
If I had a laptop with two M.2 slots, I might insert one, do the partitioning+geli initialization+zpool create+zfs send|receive, and then use rerooting..
-
debdrup
In theory you could reroot to the USB disk and replace the M.2 disk since PCIe does support hot-plugging - but I'm not sure uptime is _that_ important on a laptop.
-
debdrup
-
VimDiesel
Title: 270794 – multimedia/kodi-addon-inputstream.adaptive unbreak
-
debdrup
-
VimDiesel
Title: FreeBSD 14.0 Release Process | The FreeBSD Project
-
yuripv
pretty soon yeah
-
meena
wat
-
meena
what are the chances we'll get dhcpcd into base until then
-
angry_vincent
non zero, i would predict
-
meena
10.0.0 was released, that's what we were waiting for
-
mbeis
q
-
sektor
Morning.
-
debdrup
meena:
reviews.freebsd.org/D22012#894877 seems to suggest that there's work being done on it
-
VimDiesel
Title: ⚙ D22012 Import dhcpcd(8) into FreeBSD base.
-
CrtxReavr
Having dhcpcd in base would not be a terrible idea.
-
yuripv
oh my, i was reading it as dhcpd
-
Ellenor
dhcpcd is alright... on linux, where the alternatives are BINDCO dhclient and manual configuration.
-
jmnbtslsQE
i have a strange issue where an ethernet interface on pci is being detached overnight with a message such as the following on console: "pci2: <network, ethernet> at device 0.0 (no driver attached)" "pci2: detached" "pci2: <ACPI PCI bus> on pcib2"
-
jmnbtslsQE
i'm thinking it would be hardware related since it's an old machine, but not sure
-
jmnbtslsQE
now on a restart it's displaying these messages fairly radpidly, maybe 2-3 per second on average
-
jmnbtslsQE
and also a message "pcib2: Timed out waiting for Data Link Layer Active"
-
RhodiumToad
that looks very much like hardware
-
jmnbtslsQE
thanks
-
jmnbtslsQE
i will replace it temporarily with usb-ethernet, hoping that it's not also affected
-
meena
can someone explain to me what the benefit is of *not* backgrounding dhclient?
-
rwp
Debug. If run in the foreground it is useful for debugging to see the messages in the terminal.
-
rwp
I would also recommend the "dhcpdump" utility run in another terminal window too if debugging that area of things. As a, by-the-by...
-
meena
I just don't understand why debugging is the default
-
meena
whew, i don't know how or why, but my LUKS on this laptop is Version 2; and uses argon2
-
mason
meena: You want argon2id specifically, not argon2i fwiw
-
mason
Easy enough to fix as it turns out.
-
mason
cryptsetup luksConvertKey /dev/foo --pbkdf argon2id but take it with my usual warning about breaking the dishes.
-
meena
mason: what's wrong with argon2i?
-
meena
I seem to have that :(
-
mason
-
VimDiesel
Title: encryption - When to use Argon2i vs Argon2d vs Argon2id? - Cryptography Stack Exchange
-
mason
Maybe that's not the best resource. I wonder if the MJG article notes differences.
-
mason
It does.
mjg59.dreamwidth.org/66429.html says: "But even so, systems using the LUKS2 header format used to default to argon2i, again not a memory expensive KDF. New versions default to argon2id, which is. You want to be using argon2id."
-
VimDiesel
Title: Captcha Check
-
mason
TL;DR, the algorithm needs to be memory-intensive as well as time-intensive to defeat attackers with a wall of GPUs.
-
sfox
rwp,
-
mason
I haven't had a chance yet but I'm really curious to see how GELI's default selections stand up.
-
sfox
rwp, hey i figured out the commonality. all the jails having problems with updates were jails that were previously ezjail jails and migrated to iocage.
-
meena
you can just read the backlog here
-
mason
meena: Ah, hadn't realized it had come up. Good.
-
mason
Thank you.
-
mason
debdrup: Is there a notion of memory consumption, atop a high iteration count?
-
mason
That was the big thing I learned about today.
-
debdrup
mason: sorry, I'm not sure I understand.
-
debdrup
meena: making dhclient synchronous/blocking is basically equivalent ot configuring net-wait.
-
RhodiumToad
in-place upgrades of KDF for filesystem encryption is trivial because the password isn't used to generate the storage key, but rather to encrypt that key.
-
RhodiumToad
so a new KDF is no harder than adding a second user key
-
mason
debdrup: So, what I take from all of it is that in addition to requiring a decent amount of time, nowadays it's also necessary to take a lot of memory to defeat attackers with parallel processing brute-forcing things.
-
debdrup
mason: PKCS#5 doesn't have the features that scrypt does visa-vis being resistent to ASIC attacks because of the larger memory requirements.
-
mason
hrm
-
mason
Oh, you'd mentioned that earlier and I missed it. Sorry.
-
debdrup
I thought I did :)
-
debdrup
If your threat model includes a legitimate worry about a nation state capable of, and willing to go to the trouble of implementing an ASIC to attack gelis KDF, then I suppose now would be an excellent time to sponsor Colin Percival in implementing scrypt into crypto(9) so that it can take the place of PKCS#5 ;)
-
debdrup
If argon2 needs to be argon2id in order to be memory-expensive, and also need to be in a copy-free license to be implemented in FreeBSD, it's probably quicker to pay Colin for it. :)
-
sfox
freebsd currently uses SHA256 right?
-
sfox
or sha512
-
debdrup
For what?
-
sfox
crypt()
-
debdrup
crypto(9) support all manner of things.
-
RhodiumToad
the default for password encryption is a sha512-based algorithm
-
RhodiumToad
the algorithm used by crypt() is chosen by specifying it as part of the provided salt
-
sfox
i tried copying over a encrypted $6$ password from linux and despite it using the same hmac identifier it was incompatible
-
debdrup
crypt(3) would be the place to get answers for your questions, I imagine.
-
sfox
6. SHA-512
-
RhodiumToad
sfox: looking at the code they seem to be trying to be compatible.
-
RhodiumToad
sfox: you could try running the freebsd test values on linux and see if it gets the same results
-
RhodiumToad
e.g. crypt("Hello world!","$6$saltstring") = "$6$saltstring$svn8UoSVapNtMuq1ukKS4tPQd8iKwSMHWjl/O817G3uBnIFNjnQJuesI68u4OTLiBFdcbYEdFCoEOfaS35inz1"
-
neirac
how do you detect if headphones are connected? I was looking at the sysctls values but none of them tells that
-
RhodiumToad
depends on the hardware
-
ghoti
neirac: do a `sysctl -a > before` and `> after`, then diff to see if you missed something you can use.
-
ghoti
If they're USB, you can hook something into that infrastructure, or even just scan `usbconfig list` if that works for you.
-
neirac
ghoti nothing relevant to sound diffing the outputs, I just could add a sysctl to show it for hda
-
CrtxReavr
Notice they're not The_Dragon.
-
neirac
how do build snd_hda as a module?
-
neirac
just removing device from kernel config is enough?
-
RhodiumToad
yeah
-
RhodiumToad
personally I remove almost all devices from the kernel, just leaving the ones needed to boot the machine plus a few "always use" ones
-
neirac
how do I know which kernel I'm running I mean the file
-
meena
RhodiumToad: do use MINIMAL as your starting point?
-
meena
neirac: kenv kernel_path and kernelname
-
neirac
meena thanks!
-
meena
mine: meena@beasdix ~> kenv -v kernel_path ; kenv -v kernelname
-
meena
kernel_path="/boot/kernel.GENERIC-MMCCAM"
-
meena
kernelname="/boot/kernel.GENERIC-MMCCAM/kernel"
-
RhodiumToad
also sysctl kern.bootfile
-
RhodiumToad
iirc, installkernel updates kern.bootfile to point to kernel.old when renaming it
-
meena
-
VimDiesel
Title: Support Ephemeral Networking for BSD by holmanb · Pull Request #2127 · canonical/cloud-init · GitHub
-
meena
["route", "-4", "add", [-net|-host] + route, gateway, "-interface", interface, and then I'm stuck
-
meena
is route really not smart enough to figure out if the route is a net or a host address?
-
RhodiumToad
it affects old-style parsing of incompletely-specified addresses
-
RhodiumToad
e.g. whether 128.32 is interpreted as 128.0.0.32 or 128.32.0.0
-
RhodiumToad
(moral, never do that)
-
meena
what kind of monster does that?
-
meena
What kind of MONSTER puts that in the SPEC?
-
meena
anyway, what is the src thing?
-
RhodiumToad
vixie
-
RhodiumToad
the src thing looks like a linuxism
-
meena
src ADDRESS
-
meena
the source address to prefer when sending to the
-
meena
destinations covered by the route prefix.
-
RhodiumToad
I don't think fbsd does source selection that way
-
RhodiumToad
that 128.32 thing is only the tip of that particular iceberg of horrors, btw
-
RhodiumToad
always use 4 octets/pfxlen for specifying ipv4 destinations
-
meena
suricrasia.online/iceberg i wonder if it's actually on here
-
VimDiesel
Title: The Cursed Computer Iceberg Meme
-
ober
ld-elf.so.1: /usr/local/bin/git: Undefined symbol "__libc_start1@FBSD_1.7"
-
ober
chasing HEAD and this bit me. is there a way to backout? or must I rebuild everything in ports?
-
V_PauAmma_V
Did you use bectl as part of your update procedure?
-
ober
only updates if any were from `pkg install xxxx`
-
ober
s/chasing head/running head
-
V_PauAmma_V
What FreeBSD version?
-
ober
14.0-current
-
ober
only affects items installed from pkg. the OS mismatch warning was legit. nvm I'll figure it out
-
V_PauAmma_V
Then it looks like you're installing packages built for 23
-
Ronis_BR
hi! I am trying to install FreeBSD in a VPS. During the boot, it stays almost 1min3sec in the line "ugen0.2: <QEMU QEMU USB Tablet> at usbus0". It happens on the installation (live CD) and on the installed system. Is there anything I can do to improve this boot time?
-
RhodiumToad
Ronis_BR: what's the _next_ line?
-
V_PauAmma_V
ober, it looks like you're installing packages built for 12.x or 13.x under 14-current. That won't work.
-
ober
ok. I had been without error, but with the warning, so to be expected :P
-
RhodiumToad
or installing packages built for an older 14-current on a newer one
-
V_PauAmma_V
Or that.
-
RhodiumToad
the whole point of -current is that the ABI is not stable
-
Ronis_BR
RhodiumToad: I will run dmesg to check! It is too fast
-
V_PauAmma_V
Ronis_BR, you could also look at /var/run/dmesg.boot.
-
ober
ok
-
Ronis_BR
V_PauAmma_V: Thanks! It is booting
-
ober
Rockpro64s required 14 afaik
-
Ronis_BR
RhodiumToad, V_PauAmma_V: The next line is: "hdacc0: <Generic (0x1af40022) HDA CODEC> at cad 0 on hdac0
-
RhodiumToad
hm
-
RhodiumToad
and after that?
-
RhodiumToad
and what hypervisor is this?
-
Ronis_BR
RhodiumToad: It is a VPS in Vultr, let me check the hypervisor
-
Ronis_BR
It seems to be KVM
-
Ronis_BR
RhodiumToad: After that line the log is: "hdaa0: <Generic (0x1af40022) Audio Function Group> at nid1 on hdacc0
-
RhodiumToad
so either it's spending a lot of time in trying to figure out an emulated sound device, or there's a lot of other boot probes going on in between that find nothing.
-
RhodiumToad
have you tried it with bootverbose on?
-
Ronis_BR
no! I will do that