-
kerneldove_
would anyone want a tool that lets you direct all of your servers to start ddosing any unauthorized IP that attempts to ssh into any of the servers?
-
mjp
no that is likely illegal and is a dumb idea for many reasons
-
kerneldove_
isn't it good for an active defense system?
-
kerneldove_
why is it illegal if they're doing something wrong first? jc
-
mjp
the assumption that the source system doing the "unauthorized ssh" personally belongs to the attacker and is not just an innocent victim is a poor one
-
kerneldove_
oh ya
-
kerneldove_
ok nvm
-
mjp
if you want to reduce attack surface dont expose ssh at all, setup wireguard or similar which wont even respond to unauthorized clients
-
rwp
There is always
tarsnap.com/spiped.html for hiding ssh.
-
kerneldove_
good ideas ty guys
-
kerneldove_
i know wireguard is awesome. spiped also looks interesting never heard of it
-
rtprio
it is okay
-
black2
kerneldove_: bro that is kind of like vengence-based defence mechanism
-
black2
don't recommend that. I know random ssh attempts happen all the time. you can set a banner to be displayed on their terminal if they fail.
-
black2
I used to say stuff like "stop trying to log into my server"
-
black2
the most effective yet also the simplest way to avoid such things is to use a non-conventional port ideally above 1000, since port scanning is a time consuming task they can't afford to perform.
-
black2
per personal experiences, that eliminates 99% of login attempts
-
black2
vengeance* sorry
-
kerneldove_
ya i do that
-
Afterglow
advice needed: I run FreeBSD on a 3TB hdd, but want to migrate to a 8TB (hdd) mirror. Is it feasable to add those disk to the system, create a mirror with the first, after resilvering add the second, and again after resilvering remove the original disk from that (now) three-way mirror?
-
rtprio
Afterglow: so it's zfs?
-
rtprio
Afterglow: the last time i did this, i just installed fresh and zfs imported the old drive, do import things out of /usr/local/etc and /etc
-
remiliascarlet
Just wondering, is there a reason why there are so many Firefox clones on the BSD's, but only 1 Chrome clone (ungoogled-chromium)?
-
remiliascarlet
I mean native builds, so excluding Linuxulator.
-
rtprio
how many do you need[root@freebsd-test ~]# podman run -i -t --rm --os=linux docker.io/library/debian:latest uname -a
-
Afterglow
rtprio, zfs indeed, but also rootonzfs
-
rwp
Afterglow, Yes. What you propose is feasible. Many people upgrade storage that way.
-
Afterglow
thanks rwp
-
nwe
After I´ve put my laptop into sleep-mode, and resume it I need to restart netif to get network access again, (wireless) is it someone else that has this kind of problem with Wifi AX210/AX1675 cards?
-
rwp
nwe, I don't know about suspend-resume nor wifi but if you need to run netif again then you probably also need to run routing again too.
-
angry_vincent
nwe: i have the same issue
-
angry_vincent
not with AX210, though
-
angry_vincent
AX210 is what i want to upgrade to. but i will use wifibox. iwlwifi is unreliable for me.
-
angry_vincent
wifibox does restart connection automatically but there is a some second delay before it is up
-
rwp
Note that in 14.3-RELEASE FreeBSD made a HUGE improvement in the wifi drivers. HUGE! So might want to try them again now.
-
rwp
Though if you have wifibox working then I hear it works so well that it scratches the itch pretty well.
-
angry_vincent
well. it wasn't to good in stable/15 so i am not sure it is ok anyway
-
angry_vincent
but i have not received ax210 yet to make a judge on that
-
nwe
angry_vincent: do you have a workaround to share? ;) I changed to AX210 (from Intel 7265 (because bad performance with that) bought ax210 for (260 swedish kr) 26 usd :)
-
angry_vincent
i don't have a workaround. wifibox does restart on it's own. when using wifi drivers i need to restart netif
-
nwe
angry_vincent: ah
-
angry_vincent
my old card is 8265
-
angry_vincent
it works only in 2Ghz mode and only in g mode aswell.
-
angry_vincent
even with iwlwifi
-
angry_vincent
but it does work in 5GHz mode and very reliable with wifibox. so that's it
-
angry_vincent
i am not grumpy at this. i know limitations and that is is a complex subject. just a facts. wifi is little bit of a problem on FreeBSD.
-
black2
like I said if you not sure about how to get wifi to work, just buy a mini SOHO router running openWRT
-
black2
it's half the size of a Rubik's cube, and runs on USB power supply.
-
black2
saves the hassle of getting wifi to work on native hardware
-
» nerozero wow
-
nerozero
just found that in RC.CONF you can place FIB at for each service, eg: syscrc named_fib=1 && service named restart
-
nerozero
sockstat -fl4 => bind will sit in fib 1 ...
-
nerozero
also it is possible to specify `nice` parameter for each daemon ! WOOW
-
mzar
sure, you can
-
nerozero
no the question, can I run multiple instances of same daemon in different fibs ?
-
nerozero
*now
-
ivy
nerozero: not via rc.d, unless the rc.d script is one that has built-in support for multiple instances (e.g., unbound)
-
nerozero
so I literally should make a separate daemon run script like in /u/l/etc/rc.d/bind-fib2 ?
-
nerozero
bsd should rather should go towards rc.conf format like: `fib_1_named_enable="YES"` much more logical and that could lead to a possibility to run multiple daemons in proper fibs
-
ivy
nerozero: patches welcome
-
mzar
yep, good point ivy, nerozero, maybe it's good opportunity to contribute ?
-
nerozero
ok, will think about it and make a draft, then put it in the freebsd forum, then will share link here ...
-
nerozero
ivy, mzar thank you for quick replies
-
polarian
welp
-
polarian
today is the day, I am moving from quarterly on laptop to latest
-
polarian
I have considered this for over a year, as some cves can take a month to patch
-
polarian
s/patch/backport/
-
ivy
polarian: you could always become a ports committer and mfh those fixes
-
polarian
ivy: I do not have the skill, would if I could :P
-
polarian
maybe sometime in the future :P
-
polarian
I usually do a shoddy backport myself, but this time to address all the cves (and they are all about 5 in severity) I would need to recompile most of the system, so yeah
-
polarian
iirc I saw python as one of the major blockers :P
-
ivy
98% of it is just typing "git cherry-pick -x"
-
ivy
well, maybe 50% of it is that, and 48% is actually getting the change landed
-
polarian
ivy: what about dependencies, and the hell they cause
-
polarian
its not abnormal for python to differ in the latest, and quarterly, and sometimes patches require the latest version, which means security patches can't be backported unless python is updated, which then means updating all the python packages...
-
ivy
polarian: the latest quarterly branch is at most 3 months out of date, in general dependencies won't be a problem. in rare cases, maybe...
-
polarian
welp anyways, future issue :P
-
ivy
updating Python should not require updating all python ports
-
polarian
although last I checked some of these packages are still vulnerable in latest
-
polarian
and then the build for pkg can sometimes take a day or two
-
polarian
thats quite a few security patches missing from latest too :/
-
polarian
lets check bugzilla
-
polarian
bugs.freebsd.org/bugzilla/show_bug.cgi?id=273161 I wonder if this is what causes xorg to segfault when securelevel is used
-
polarian
hmmm
-
polarian
alright quite a few of the vulns is just pkg being slow :)
-
ivy
polarian: do you mean pkg being slow, or the ports package builders being slow?
-
polarian
ivy: both :P
-
polarian
pkg isn't the fastest, but it works :P
-
polarian
but anyways it was the latter I was talking about ;)
-
ivy
hm, "pkg audit" just downloads the latest VuXML and reports it, even if it's slow to do that for some reason, that shouldn't affect the results
-
ivy
i mean, it always uses the latest vuxml and local system pkg database
-
polarian
ivy: mate, I I was joking how pkg can take a while to update packages :)
-
polarian
its not a big deal
-
polarian
the latter is the thing I was actually talking about though
-
polarian
port builders get clogged up
-
polarian
I did say about 6 months ago that it would be cool if the port builders could use vulxml to prioritise compiling what is security patches, and do feature updates after...
-
polarian
but I know nothing about the port building infrastructure so not like I can simply send a patch
-
ivy
that isn't feasible with how ports currently works
-
ivy
you aren't the first person to suggest it though
-
polarian
or the problem could be brute forced
-
polarian
throw more compute at the problem :P
-
polarian
but I doubt the foundation wants to fund something like that :P
-
ivy
the foundation literally just added a new builder which is ~4x faster than the old one
-
ivy
the problem is you can't build just some ports, you need a way to work out the dependents and dependencies and rebuild those too
-
polarian
ivy: in other words its difficult to parallelise
-
ivy
polarian: on a single machine, no, it's trivial. across multiple machines, yes -- clearly we can't just keep adding faster hardware, the proper fix is to support distributed builds
-
polarian
patches wanted! :P
-
ivy
yes? are you saying that because you would like to work on this?
-
polarian
goto "I haven't the skill" :P
-
polarian
I am not even familiar with the porting process very much yet... theres two things on my todo list to port and then submit on phab
-
polarian
I was meant to port them at the devsummit in Zagreb but I got caught up in other business
-
polarian
ended up sending a doc patch instead...
-
nerozero
say I executed `ifconfig rl0 down`, how can I find it is down?
-
nerozero
the `ifconfig rl0` shows nothing about it is down or up, just active
-
nerozero
nevermind it in the flags ... `flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000`, the flag "UP"
-
dautor
I'm having some trouble with linking to libunwind. It says it's missing symbols like unw_getcontext, unw_init_local, etc.
-
dautor
'nm -D /usr/local/lib/libunwind* | grep unw_' yields nothing
-
dautor
Is there something I'm doing wrong?
-
luna__
hi
-
junkers87stuka
o/ <3
-
luna__
\o
-
Xe
Is there a bootc / immutable image based way to run FreeBSD?
-
nerozero
Xe, as an option - use zfs + rollback
-
Xe
nerozero: is that able to detect if boot fails and automatically rollback without human intervention?
-
nerozero
i guess so, the beadm - also creates boot environment snapshots ..
-
nerozero
so you can rollback at any point
-
Xe
nerozero: does a human have to touch the keyboard to force it to roll back?
-
nerozero
never dive deep into it, but for sure - you can do some flagging like boot-successful and if flag is not set - rollback ...
-
Xe
better phrasing: if i install FreeBSD with ZFS on a computer today, will that configuration combination be set out of the box for me without me having to configure it myself?
-
nerozero
Xe - you can run an entire installer script including specific partitions to be readonly or with snapshots ...
-
Xe
so I have to configure things manually, gotcha
-
nerozero
but this will require deep dive and understanding, yes
-
nerozero
Xe, yes, as a side effect, *nix platforms require the use of the brain, and as a result, they prevent the transformation into a plant, as, for example, users of M$
-
Xe
:V
-
Xe
I'm just trying to figure out what the difficulty of doing something like that for a NAS is so I can weigh multiple options (Fedora/Rocky Linux 10 + bootc, TrueNAS SCALE, etc) tbh
-
nerozero
a day or so smoking man and reading forums and some (posix) SH scripting experience
-
nerozero
the benefit of BSD is that THERE IS NO DAMN SYSTEMD there, and everything (mostly) is a text file
-
Xe
ah, okay, i see, thank you for your time
-
nerozero
windows user ..
-
arinov
nope
-
remiliascarlet
Just wondering, is there a reason why there are so many Firefox clones on the BSD's, but only 1 Chrome clone (ungoogled-chromium)?
-
remiliascarlet
I mean native builds, so excluding Linuxulator.
-
rtprio
no ones bothered to port them
-
kevans
hard to blame them, porting one chromium is shit enough looking
-
kevans
-
kevans
even if every single one of those patches was trivial, that's a lot of sledge to drag around
-
kevans
(at the risk of being a dick, I'm not going to analyze ~1500 patches to determine average complexity, but let's just agree that it sucks)
-
polarian
hey weird question, what is poweroff?
-
polarian
which poweroff shows nothing
-
polarian
I know its equal to running shutdown -p now
-
bdrewery
/sbin/poweroff
-
polarian
hm weird
-
polarian
oh its because I wasn't escalation privileges
-
polarian
my user cant see it
-
vkarlsen
Did you run which poweroff without having /sbin in your path?
-
polarian
sbin should be in path
-
polarian
yeah /sbin is the first path entry as it should be
-
» polarian shrugs
-
polarian
works when I doas, but not when I dont
-
polarian
sbin directory has r for anyone so idk
-
vkarlsen
'which' searches the dirs in your $PATH
-
polarian
yes... I have sbin in path
-
polarian
I can also view the dir without root
-
polarian
but which returns nothing
-
vkarlsen
That's strange. It does for me (as a user too).
-
polarian
even weirder, which returns /sbin/reboot for reboot
-
polarian
its only shutdown and poweroff
-
polarian
they do exist too, they arent deleted or anything
-
polarian
which zfs, returns /sbin/zfs
-
» polarian shrugs
-
vkarlsen
Oh wait, poweroff is not executable for you unless you're root or a member of operator
-
polarian
yeah
-
polarian
I just realised :P
-
polarian
was literally typing that :P:
-
polarian
it needs the execute bit :P
-
polarian
vkarlsen: however... my user is in wheel and the group is wheel
-
polarian
and wheel does have the execute bit
-
vkarlsen
For reboot, yes, but not for poweroff
-
polarian
-r-sr-xr-- 2 root operator 16168 25 Jun 11:54 shutdown
-
polarian
hm well
-
jonesmeier
hi, does ntftp support TLS ?
-
jonesmeier
it doesn't seem to try and use it
-
jonesmeier
I'm on a Linux machine, but I wanted to use ntftp because I found out it can be made to execute commands from a file
-
rtprio
that's not really a freebsd question; what does your documentation say?
-
jonesmeier
sorry, I meant tnftp
-
jonesmeier
my manpage has no mention of TLS... but it does mention an env variable "FTPSSLNOVERIFY"
-
jonesmeier
I went to ask here because it tnftp seems to originally be a BSD FTP client, and FreeBSD to me is the most popular BSD
-
jonesmeier
anyway, thanks, maybe it's the wrong place
-
mzar
Fall 2025 FreeBSD Vendor Summit - Day 2
-
mzar
-
rtprio
jonesmeier: check the source or ask the author of the program
-
mzar
jonesmeier: original ftp server and client in FreeBSD doesn't support TLS
-
mzar
they both don't
-
jonesmeier
thank you mzar! Okay
-
jonesmeier
and those would have been options rtprio
-
jonesmeier
glad I got an answer, thank you very much, now I can look for sometehing else
-
mzar
jonesmeier: maybe you can stay longer, have you ever used FreeBSD ?
-
jonesmeier
no, I haven't ever used a BSD
-
rtprio
-
mzar
please don't hesitate to give it a try
-
jonesmeier
I was always a bit curious, but then... I'm happy I know what I do about Linux, and then alot of that I would have to "duplicate"
-
rtprio
tbh i'm amazed that people still use ftp these days
-
jonesmeier
yeah, I have to in this case, it's backup space provided by a VPS host
-
jonesmeier
thanks for the link rtprio, I did not see that
-
mzar
rtprio: what would they do on daily basis struggling with this mess in networks gear ?
-
jonesmeier
well thanks alot, I'll keep this open and maybe see what's going on here with BSD :)
-
jonesmeier
also, if I can add anything, there is a nicely scriptable FTP client called lftp but it could not cope with quota exceeded and ignored it's max-retries setting, can very much not recommend
-
rtprio
what is there to script? put file. get file. goodbye
-
rtprio
you know, scp does that all also, and can be scripted
-
jonesmeier
I want it to remove a list of single files
-
rtprio
and the vps doesn't offer ssh
-
rtprio
which bizarro world are we living in
-
jonesmeier
no the backup space is only FTP
-
rtprio
1998 called and they want their webhosting back
-
jonesmeier
yeah, that's what it is.. it's a nice amount of space, but it is getting annoying right now
-
rtprio
you might look into rclone, it might abstract the ftp space into something less... stupid
-
jonesmeier
hehe I don't know, they like to do it with FTP..
-
jonesmeier
oh OK, I have heard of rclone before! Thank you, I should look at rclone next
-
rtprio
how much space do you consider 'a decent amount of space' ?
-
rtprio
like a few tb?
-
jonesmeier
well it's 30 GB of space, for an already good value VPS
-
jonesmeier
so no, it's not much, but for cheap VPS plans I haven't seen many even give you any backup space
-
jonesmeier
so I'm happy with it ;)
-
rtprio
if you say so
-
jonesmeier
hehe yes
-
ariadna
wow FTP-only
-
jonesmeier
\o/
-
jonesmeier
rclone definitely works as an FTP client, that's cool, and it uses TLS. Thanks rt, it's a good option
-
ketas
i wonder if i should write my new driver as gpioaddrled or perhaps some generic tight timing bitbanger
-
ketas
because i actually want latter eh
-
rtprio
and here i was trying to figure out
Alexays/Waybar #2676
-
ketas
btw, who said that touchscreens won't work
-
ketas
wmt(5) exists
-
kerneldove_
my main zfs pool just works. i boot up, reboot, and it's fine. but i'm adding a 2nd internal drive so i gpart it, zpool create on it, but how do i make it automatically export on shutdown/reboot, and import on bootup, just like the existing internal drive?
-
kerneldove_
i don't wanna have to manually import/export every reboot
-
rtprio
why would you do that
-
kerneldove_
why not? it's an internal drive, why wouldn't i want it to be automatically imported/exported?
-
wavefunction
kerneldove_: I'm really confused why you have to "do" anything across boots. It's not automatically imported/exported -- it's just part of the zfs service start
-
rtprio
what are you trying to accomplish by exporting it? is it a second pool on a single drive or what
-
kerneldove_
2 drives. 1 has main OS pool on it. 2nd drive has new pool and it's mounted into my home dir for extra space
-
rtprio
and are you sometimes pulling the drive and slapping it into another system?
-
wavefunction
kerneldove_: if your zroot already has a "$HOME" defined, that might be an issue?
-
rtprio
wavefunction: not what he's asking
-
kerneldove_
no, internal drive, permanent
-
rtprio
kerneldove_: perhaps you're using the wrong terminology; are you saying your zhome pool is missing when you reboot ?
-
wavefunction
kerneldove_: it sounds like you have "zfs root, exluding $HOME" on one drive, and you want to add a second drive as "$HOME" ? Is that correct?
-
kerneldove_
it's weird how impossible it is to get this across
-
wavefunction
If so, you have to `zfs destroy` the old zroot/home dataset and create your new pool as `zfs create -o mountpoint=/home newpool/datasetname`
-
kerneldove_
i have a system working fine with 1 drive and zfs. i installed a 2nd drive that i now want automatically mounted on reboots into my home dir
-
wavefunction
Right, so, when you run `zfs list` do you get an entry like `zroot/home`?
-
kerneldove_
ya
-
rtprio
kerneldove_: it will by default, come back when you boot
-
wavefunction
ok, what's the name of the second drive pool, and have you created a dataset on it yet?
-
kerneldove_
i just called it storage
-
wavefunction
have you done a `zfs create` on the storage pool yet?
-
kerneldove_
after the gpart stuff, i ran zpool create storage /dev/ada1p1, mkdir /home/kerneldove/storage
-
wavefunction
okay,
-
kerneldove_
maybe i did zpool create wrong because i didn't home it in my /home/kerneldove/storage dir?
-
kerneldove_
zfs list shows its name storage, but mountpoint is /storage
-
wavefunction
It sounds like you missed the part where you create a dataset. (`zfs create ...` vs `zpool create`)
-
kerneldove_
i want it to be at /home/kerneldove/storage
-
wavefunction
kerneldove_: Oh that's perfect, okay,
-
kerneldove_
well i did gpart add -l storage -t freebsd-zfs is that ok?
-
rtprio
zfs create -o mountpoint=/home/kerneldove/storage storage/kerneldove
-
rtprio
you don't need to gpart nonbootable disks
-
wavefunction
You did the partitioning and the zpool just fine --
-
wavefunction
you have to create a zfs dataset -on the pool-
-
rtprio
you could have just zpool create storage /dev/ada1
-
wavefunction
What rtprio sent you (zfs create...) is what you need
-
wavefunction
that should auto-mount across reboots
-
kerneldove_
ok so zfs list stuff pertaining to this 2nd drive/pool is:
-
kerneldove_
storage .. .. .. /storage \n storage/kerneldove ... .. .. /home/kerneldove/storage
-
wavefunction
Looks right to me.
-
wavefunction
:thumbs up:
-
zip
for some reason running `kldload ipmi` causes my system to freeze
-
kerneldove_
ok cool i'll try rebooting now and see if it's auto, ty!
-
wavefunction
kerneldove_: Good luck!
-
zip
it'll do this from single user mode, and it does not display anything else
-
rtprio
zip: what?
-
zip
am I doing something stupid here or something? It's a mini desktop, I think it has the hardware
-
rtprio
oh. i wasn't aware there was an ipmi kernel module; i always have used ipmitool
-
kerneldove_
it worked!
-
kerneldove_
ty guys
-
rtprio
zip: i'm not aware of any desktops having ipmi
-
zip
weirdly, it seems to think it does
-
zip
I assume this is what the BIOS calls "system management"
-
zip
-
zip
oh well, this was in the category of "oh that's neat" rather than something I desperately need
-
Macer
rtprio: desktops as in boards?
-
Macer
i have an asrock x570d4u that uses a ryzen that has ipmi... that may be considered a workstation / server board though. supports ecc too (advertised).
-
zip
I think the BIOS option might be AMD DASH, which was off. And which I should proably leave off.
-
kerneldove_
i don't suppose anyone wants to buy a bunch of dell ddr4 server mem?
-
Reinhilde
kerneldove_, put it in your own server and enjoy?
-
ketas
it's not fitting i assume
-
kerneldove_
ya
-
kerneldove_
got larger modules and been sitting on the smaller stuff. now that ram prices are exploding it's a good time to sell
-
kerneldove_
if any regulars in this chan want it, i'll give a good deal and send first then you can just btc me
-
kerneldove_
if you're not a regular and a regular vouches for you i'll consider that too