-
ketas
always run ntp!
-
kerneldove
if i run a command `jexec -l myjail acommand < /tmp/foo.txt` is it pulling foo.txt from the /tmp of the jail host, or the /tmp from within the jail?
-
divlamir
Don't you mean sth like `jexec -l myjail sh -c "cmd args < /tmp/foo"`
-
nimaje
kerneldove: that < redirect is a feature of your shell, so it is reading from the host, as your shell doesn't even have an idea what the executable does
-
kerneldove
nimaje, i knew it!
-
kerneldove
so pull from within the jail, i guess i need to format the invocation like how divlamir said?
-
nimaje
yes, then a shell started inside the jail handles the redirect
-
kerneldove
ty guys
-
kerneldove
there any probs with making huge swap space like 128g? other than burning up disk
-
nimaje
I don't think there should be problems, but why would you need that?
-
kerneldove
maybe im feeling cute and might just overcommit ram
-
f451
hi, is pf capable of layer 2 filtering yet, or are there plans to have it? ie filtering by MAC address. The openbsd pf is, but freebsd pf AIUI was forked from openbsd pf around openbsd 4.8
-
nimaje
the ETHERNET FILTERING section in pf.conf(5) reads like it can
-
Ltning
w00, packages for current exist again :D Poor cluster...
-
divlamir
f451, looks the opposite when comparing FreeBSD and OpenBSD man pages. FreeBSD supports it while Openbsd dropped it.
-
divlamir
Although for something as easily spoofed, I don't see great use
-
f451
divlamir: it's use case is for a bhyve server filtering for bridge, but bypassing filtering for tap (also a bridge member)
-
f451
i remember kp@ saying something about it a while ago. openbsd man page indeed says layer-3 and layer-4. i thought i saw an example on the lists of layer-2 hence the question
-
f451
(openbsd)
-
f451
looks like i need to think a bit more deeply before moving this middleware box ;)
-
f451
nimaje & divlamir yes you're right, it appears to be the opposite. tyvm :D
-
divlamir
for the exact syntax, look at the bnf grammar at the bottom of the page -- ether-rules
-
f451
tyvm
-
phryk
where do i find eol dates for currently supported releases?
-
nxjoseph
-
phryk
nxjoseph: thanks.
-
nxjoseph
phryk: you're welcome :)
-
phryk
so i'll have to update to 14.3 before 15.0 comes out if i want to avoid running an EOLd version (again)… and within this month.
-
phryk
is there a tool that will tell me this info, either in the base-system or as port?
-
nxjoseph
phryk: IIRC, FreeBSD itself (maybe pkg?) warns you if you are reached to eol
-
phryk
because i keep running into EOLs only when poudriere refuses to build packages. to keep proper track of this, i'd really like to just integrate that shit into my monitoring.
-
phryk
nxjoseph: yeah, but i want to know *before* i actually run EOLd versions on my entire infra…
-
nxjoseph
phryk: i suggest keeping an eye on the dates then
-
nxjoseph
i also didn't understand why you need to do it before 15 released
-
phryk
according to security/#sup, 14.2 EOLs on september 30th. 15.0 release is scheduled for december.
-
phryk
so i either upgrade to 14.3 or run an EOLd version for at least 2 months.
-
nxjoseph
what are you on right now
-
phryk
14.2
-
phryk
i mean why else would i care about when 14.2 is EOLd?^^
-
nxjoseph
you can keep using it until 30th of that month, then you can upgrade to 14.3, then wait for it's eol too, then update to something newer version, maybe 14.4 or 15.0
-
phryk
yeah, sure. my main issue is that i want that info in a machine-readable form so i can integrate it into my monitoring so i don't have to manually keep track of this.
-
nxjoseph
i couldn't find ports' made for this purpose
-
phryk
not really surprised. IMO freebsd-version would probably be the most fitting place to integrate this as a feature…
-
nxjoseph
-
nxjoseph
-
nxjoseph
there is json api
-
nxjoseph
maybe one can create a program
-
phryk
mhh, IMO this shouldn't require network access – i.e. the system should be able to report this itself. i'll sit on this a bit and maybe open a report on bugs.freebsd.org if i can get some coherent thought about it together.
-
phryk
but thanks for the link, that definitely goes into my bookmarks^^
-
nxjoseph
glad i could help a bit
-
phryk
oh you very definitely did. i think this would be a very legitimate feature request. and i'd likely be down to write a prometheus exporter for it if it's implemented.
-
phryk
which reminds me that i want to look into libpkg because i want an exporter that reports outdated and insecure installed packages.
-
nimaje
phryk: in general, point releases are EOL three month after the next point release for that major release is out as noted at the bottem of the already linked page
freebsd.org/security/#model
-
phryk
these two things are probably the biggest two holes to be filled in my monitoring.
-
phryk
nimaje: but in practice the actual dates sometimes differ and are then communicated only on freebsd.org, right?
-
nimaje
I think they only get rounded to the end of month
-
phryk
nimaje: so if i understand correctly, i can check if a release/<major>.<minor+1> tag exists and if it does, it's creation date + 3 months (rounded to end of month) is reliably the EOL date of the currently run point release?
-
divlamir
phryk: here's a oneliner
-
divlamir
tag=release/14.3.0; date -j -v+4m -v1d -v-1d -f %s "$(git show --no-patch --format='%ct' "$(git rev-list -n 1 "$tag")")" +%Y-%m-%d
-
divlamir
Well, a two-liner techically XD
-
phryk
divlamir: thanks, but i'd rather do it through a proper api :P
-
tuaris
I ran into an odd issue with Fuse and Mate desktop. I reported the bug here:
mate-desktop/caja #1850. However, I just realized something in the`df` output on the CLI. It says "df: File system /media/Backups does not have a block size, assuming 512."
-
tuaris
That makes me think the problem might be with FreeBSD or the fuse driver
-
tuaris
or maybe even fuse itself?
-
swee
Do i need any extra packages to mount a virtio 9p filesystem on freebsd 14.3? I'm trying to run `mount -t 9p -o trans=virtio -o version=9p2000.L /hostshare /mnt/share` but it says `mount: /hostshare: Invalid fstype: Invalid argument`
-
byakuren
i beleive you need: sysrc kld_list+=virtio_p9fs
-
byakuren
then a quick change of: mount -t p9fs should do the trick c:
-
byakuren
add virtio_p9fs_load="YES" to /boot/loader.conf if you need
-
swee
what if virtio_9pfs.ko doesn't exist in /boot/kernel
-
byakuren
try a kldload virtio_p9fs just as it is, as it should be there
-
byakuren
note that it's _p9_fs not _9p_fs c:
-
byakuren
if you still don't have it - then it's src is at /usr/src/sys/modules/virtio/p9fs - so you should be able to make; make install it
-
swee
byakuren: 1. "kldload: can't load virtio_p9fs: No such file or directory" 2. /usr/src is empty
-
byakuren
and you're 14.3 right? as per the previous message?
-
swee
yeah
-
byakuren
have you done a freebsd-update fetch; freebsd-update install recently? i only ask, as this should have been checked in since mid 2024:
cgit.freebsd.org/src/commit/?id=e97…33a89a78f55280b0485b3249ee9b907a718
-
swee
i'll try that now
-
byakuren
(2. /usr/src not existing - that's fine, you just don't have the freebsd src repo checked out is all, no biggie c:)
-
swee
I don't think i selected the source tree when installing, is there a way to do so post-install?
-
byakuren
yeah easily
-
byakuren
the basic premise is just git cloning
git.FreeBSD.org/src.git
-
byakuren
into /usr/src
-
byakuren
you prolly want to do that as a rood user, since it's system wide
-
byakuren
there's 3 main freebsd repos, src, ports, and doc
-
byakuren
so personally - i have them each in a zfs filesystem, mounted to /usr/(src;ports;doc)
-
byakuren
zfs list | grep usr/
-
byakuren
zroot/usr/doc 522M 218G 522M /usr/doc
-
byakuren
zroot/usr/ports 2.48G 218G 2.48G /usr/ports
-
byakuren
zroot/usr/src 2.76G 218G 2.76G /usr/src
-
byakuren
git clone -b releng/14.3
git.freebsd.org/src.git /usr/src
-
byakuren
-
swee
I just used freebsd-update, virtio_p9fs.so still doesn't exist
-
swee
ko*
-
byakuren
have you rebooted since doing that?
-
swee
will see what happens when i do so
-
byakuren
c:
-
byakuren
see ya in a sec then c:
-
swee
nope, still doesn't exist
-
byakuren
huh
-
byakuren
gimme a sec to poke about
-
swee
it's using 14.3-RELEASE-p2 now
-
byakuren
nice - up to date c:
-
swee
fyi I also installed the OS using FreeBSD-14.3-RELEASE-amd64-disc1.iso
-
byakuren
so looks like, when i built it manually it installed it into /boot/modules - so sounds like a good way to go
-
byakuren
pwd
-
byakuren
/boot/modules
-
byakuren
ls -l *p9*
-
byakuren
-r--r--r-- 1 root wheel 89560 Sep 6 22:42 p9fs.ko
-
byakuren
-r--r--r-- 1 root wheel 22424 Sep 6 22:42 virtio_p9fs.ko
-
byakuren
so should be a case of, checking out src - heading to /usr/src/sys/modules/p9fs
-
byakuren
and running make; make install
-
swee
still cloning, cloning a 2GB repo o_O
-
swee
compiled and installed, rebooting again
-
byakuren
c:
-
byakuren
another ideas as well (which is prolly gonna be just helpful) is installing the plan9port : pkg install plan9port
-
byakuren
that gives you a bunch of plan9 related tools
-
byakuren
and i THINK (just gonna check) there's stuff in there for mounting p9 file systems
-
swee
KLD virtio_p9fs.ko: depends on kernel - not available or version mismatch
-
swee
kldload: can't load virtio_p9fs: module already loaded or in kernel
-
byakuren
!
-
byakuren
so does the mounty-mount work now?
-
swee
no
-
byakuren
D:
-
swee
I'll check plan9port as well
-
byakuren
9 mount tcp!server_ip!564 /mnt/plan9fs
-
byakuren
once you've got plan9ports installed - this is the way to mount a 9pfs
-
byakuren
(all plan9 commands, are prefixed with 9)
-
swee
what about when its virtio
-
byakuren
are you virtualising plan9 locally?
-
swee
I'm not sure how libvirt or qemu does virtio plan9
-
byakuren
ahhh
-
byakuren
yes so from memory, qemu/kvm don't really do the virtio like that
-
byakuren
it's more something supported in bhyve
-
byakuren
but i don't wanna upend your whole setup or anything
-
swee
the command i mentioned the first time worked fine in my other Alpine Linux guests but not on freebsd, hmmm
-
swee
s/other //
-
byakuren
hmm
-
byakuren
you should have: 9 9pfuse
-
byakuren
which will mount it as a fusefs
-
byakuren
9 9pfuse /hostshare /mnt/share
-
swee
9pfuse: dial /hostshare: unknown protocol family %d
-
byakuren
how have you got hostshare setup?
-
swee
-
byakuren
ohh
-
byakuren
right - so you're like, exporting the underlying cwfs or hjfs into /hostshare
-
byakuren
9 mount vm_host_address /mnt/plan9
-
byakuren
try that
-
byakuren
because plan9 should export the filesystem on the network, which is how it's meant to be accessed (port :564 should be automatically selected when you do this)
-
swee
"don't know how to mount (no fuse)"
-
byakuren
pkg install fusefs-libs3
-
byakuren
kldload fuse
-
byakuren
you need mr fuse
-
swee
oh, i thought fuse was the right package, no wonder it tried to install gtk3 libraries when doing so
-
byakuren
(user space filesystem driver)
-
byakuren
ehehe
-
byakuren
yeah - 'fuse' is a zx spectrum emulator
-
byakuren
for some reason...
-
byakuren
:p
-
swee
9pfuse: dail 192.168.122.187: Connection refused
-
swee
and with 192.168.122.1 as well
-
byakuren
ok so it has it's own ip address on the network
-
byakuren
and that's a file server provinding instance of plan9
-
byakuren
and the servers up and running, and you can connect to it with drawterm?
-
swee
i'm not sure if qemu and virtio-p9 actually does listen on a tcp address, I'll probably see if sshfs to another (linux) vm might work
-
swee
because all my vms in my libvirt setup use the 192.168.122.0 subnet that might be possible
-
byakuren
oh...
-
byakuren
that might o it
-
byakuren
s/o/do
-
swee
yep, it can ssh to other vms
-
byakuren
huh
-
ketas
swee came here too
-
ketas
:)
-
ketas
i currently try to adjust to pkgbase
-
swee
yep, making an sshfs proxy with a small vm works great
-
byakuren
ok - so done some research, and i was a bit wrong, sorry - that virtio-9p work (you found in src) - while it is present, it's slated for release only in freebsd 15 - so current, from a qemu host, you can't use virtio-9p it seems
-
swee
alright, I'll keep watch when FreeBSD 15 becomes the latest production version
-
byakuren
i do recall a script i setup in drawterm, that allowed me to access the plan9filesystem from my host once connected
-
byakuren
let me see if i can find it
-
byakuren
and that was a freebsd machine a few years ago, connecting to plan9 on metal
-
byakuren
(was a great setup! used it at work for yearss)
-
swee
I'm using a libvirt + qemu/kvm setup on my homeserver to separate services in vms, like a more advanced proxmox :3
-
byakuren
-
byakuren
swee: ooh, that's a lovely setup - on my big server (out of action at the moment) i had a bunch of different jails setup for everything i needed
-
byakuren
shame i can't really do the same on smol lappytop
-
» byakuren says while running znc and a bunch of other stuff locally... which must be great for the servers ;-;
-
byakuren
ketas: how are you finding pkgbase? i'm.... aprehensive(?) for it when 15 comes out proper - but i think it's great
-
ketas
APPREHENSIVE Definition & Meaning 1. : viewing the future with anxiety or alarm : feeling or showing fear or apprehension about the future.
-
ketas
hmm
-
ketas
i build 16-current nearly minimal package set in my 13.5
-
ketas
:)
-
ketas
built
-
ketas
idea is good
-
ketas
config files would be fun
-
ketas
but config was even funnier before
-
ketas
with etcupdate
-
ketas
recall mergemaster?
-
ek
ketas: Of course!
-
ketas
i came from 4.6 after all
-
ketas
:p
-
byakuren
(apprehensive is sorta right, i know what it means... just not sure if its exactly the right word :p - but ty ^^)
-
byakuren
omg mergemaster aha
-
ketas
so with enough without_*'s i got cursed empty packages
-
ketas
which install just a dir into /var/run maybe
-
ketas
also it packaged up src too
-
ketas
in zstd
-
ketas
so it took 1h packaging and 45m building
-
ketas
src, src-sys even
-
byakuren
that's amazin
-
ketas
funnily pkgbase was around before
-
ketas
i mean tracking base is easier now
-
ketas
at least
-
ketas
no need for delete-old
-
ketas
which hopefully gets everything
-
ketas
or delete-old-libs which could make you cry
-
byakuren
it did a few times...
-
ketas
d
-
ketas
damn src/src-sys got it slow here for sure
-
ketas
also tmux fucking segfaultes again in command line
-
ketas
wanted to saveb and then it went down
-
ketas
i thought that bug was fixed already
-
sig`
I've got a j5 Create Gigabit Ethernet USB 3.0 dongle but I am getting 100baseTX max... (ue0). it is using the: axge0 <ASIX Elec. Corp. AX88179> on usbus0 | ue0: <USB Ethernet> on axge0.
-
sig`
but I can't get anything faster than 100. I tested it on the same cat6 cable on a linux box and i get full gigabit
-
ketas
doesn't negotiate to 1g?
-
sig`
even when I try: ifconfig ue0 media 1000baseT mediaopt ful-duplex the link drops and falls back to 100base
-
ketas
any errors?
-
ketas
in logs
-
ketas
not that i know anything
-
sig`
no, I'm wondering if it is the driver?
-
ketas
i have rtl one here
-
ketas
i only tested a little
-
skered
sig`: From man axge AX88178 the only 1Gb.
-
sig`
skered: so my AX88179 doesn't do 1GB
-
sig`
hmm
-
ketas
no it's all 1g
-
ketas
skered: where's the 100m?
-
sig`
1000baseT says only AX88178 but mine is AX88179
-
ketas
also axe vs axge
-
ketas
if it doesn't do 1g in fbsd, it's yet another bug...
-
sig`
mine isn't the AX88178, its the ASIX AX88179 (j5create jue130). the man page note about 1000basteT AX88178 only looks outdated. This chipset does not support gigabit. but it comes up fine on linux. but under this freebsd machine with axge(4) it only ever negotiates to 100basetx
-
ketas
also which version we read this man
-
ketas
i'm reading at 13.5 now
-
markmcb
just checking, it's not possible to install the 15.0 alpha version via freebsd-update, right?
-
sig`
-
sig`
the 13.5 axge shows 1000baseT only for AX88178
-
ketas
markmcb: iirc... no
-
ketas
but hmm
-
sig`
I'll just order a known working dongle
-
markmcb
ketas, thanks. it's under /snapshots and not /releases on the download server, so that was my assumption ... i'll wait patiently for a beta :)
-
ketas
it doesn't show anywhere that axge should not do 1g?
-
ketas
markmcb: but wait
-
ketas
how does one upgrade 14 then
-
ketas
it must support freebsd-update
-
ketas
unsure if *alpha* tho
-
sig`
ketas: I agree it should negotiate 1Gb and it even explicitly supports mine
-
ketas
so, loga?
-
ketas
logs?
-
sig`
it never shows 1000
-
ketas
would be curious if it moans there
-
sig`
it references 1000baseT Set 1000Mbps (Gigabit Ethernet) operation (Ax88178 only)
-
ketas
can't be like, you tell it to go 1g and it just does 100m
-
ketas
it might not tell any errors tho
-
ketas
it would be extremely fun it that hw has some fancy issue
-
skered
Appears to be long running issue with agex as well.
bugs.freebsd.org/bugzilla/show_bug.cgi?id=225179
-
sig`
That’s exactly what I saw on FreeBSD: when I ran ifconfig ue0 media 1000baseT mediaopt full-duplex the link went DOWN, and when I returned to autoselect it came back at 100baseTX. ifconfig never once showed 1000baseT on FreeBSD.
-
ketas
did it report any errors?
-
sig`
Same dongle/cable and usb 3.0 port on linux negotiated 500Mb/s immediately
-
ketas
they sometimes do
-
ketas
usb devices
-
sig`
yeah, I'll just order a cheap one that is known to work with 1000
-
markmcb
ketas, i think once it's at beta then you'll be able to "freebsd-update upgrade -r 15.0-BETA1"
-
sig`
it gave no errors, went up and down with no issues
-
ketas
log was empty?
-
sig`
forcing ifconfig ue0 media 1000baseT mediaopt full-duplex dropps
-
ketas
all.log, if you have it, or other logs, or dmesg
-
sig`
but returning to autoselct comes back at 100base
-
sig`
no errors messages printed
-
ketas
hmm
-
ketas
yeah no idea
-
sig`
no worries, I can get a cheap one for like $20
-
sig`
not worth pulling my hair out any more than what I have
-
sig`
:)
-
ketas
i got cheap rtl
-
sig`
you mind telling me which one and model?
-
ketas
1g usb3 but i only have 2 ports and didn't wire it up on actual eth side
-
ketas
RTL8153
-
sig`
thanks
-
ketas
it had no name :)
-
ketas
so no idea
-
sig`
I'll search for it
-
ketas
i searched in ali and looked for rtls
-
ketas
some do say chips
-
ketas
one axe fails here
-
ketas
supposed axe
-
ketas
i think it needs usb modeswitch
-
ketas
after a few seconds, device goes off and another one comes on
-
ketas
i didn't know usb eth also does this
-
ketas
:/
-
sig`
heh
-
ketas
i also have 3 usb bt's which doesn't work
-
ketas
iirc someone had hack for *an* usb bt
-
ketas
not for those iirc
-
ketas
they come up as usb bt
-
ketas
but either have wrong fw or mysteriously fail
-
ketas
hack was to reinit it until it works or wait
-
ketas
and usb wifi is complete shitshow :p
-
ketas
world of hw sucks