-
polyex
is more dev going into the base jail tools so there's less need for 3rd party wrappers that seem to get obsolete and be limited quality?
-
llua
that is quite the loaded question.
-
llua
you seem great at asking them.
-
polyex
?
-
llua
-
VimDiesel
Title: Loaded question - Wikipedia
-
polyex
dunno what's loaded about it tho
-
polyex
bhyve doesn't need a bunch of 3rd party tools. just thought jails could get to the same place
-
llua
jails doesn't need then either, which is why you don't see them in base
-
polyex
ok so why does stuff like warden exist?
-
llua
for automation.
-
llua
its like asking why k8s exists when docker exists
-
llua
or openstack when kvm exists, etc, etc.
-
llua
and mind you, stuff like vm-bhyve(8) exist for bhyve.
-
bsdbandit01_
good evening fellow bsd hackers
-
bsdbandit01_
:)
-
polyex
hiya
-
kevans
polyex: i'd like to see a lua jail manager in base tbh
-
polyex
why
-
kevans
because we have lua in base, and it would be nice to have some features that jail(8) doesn't
-
polyex
ah
-
remexre
I've got a box that acts as the router for an IPv6 subnet, and I'd like to redirect all port 80 traffic for one host to another; the obvious rdr rule doesn't seem to work here, but it fails because of a timeout instead of getting rejected by pf, which is kinda unexpected
-
remexre
the obvious rule being: rdr pass inet6 proto tcp from any to $host2 port 80 -> $host1
-
remexre
anything stand out as obviously wrong?
-
polyex
so how can it be allowed for jails to share the same ip, as long as they don't have any other ips? and i think that means even the jails sharing the same ip with the host?
-
jwmaag
kevans: lua's for gams not jails! /s
-
kevans
bah
-
kevans
i wouldn't mind having more lua in my life.
-
jwmaag
do you see it replacing jail(8) or as a separate beast? we already know jail(8) exposes more utility than the base syscalls
-
jwmaag
need lua-jib and lua-jng too
-
kevans
separate, imo there's still plenty use-case for jail(8), no need to complicate those peoples' lives
-
jwmaag
in my head i skipped over the "manager" part but that makes more sense
-
_xor
kevans: lua jail manager would be awesome
-
_xor
kevans: procedural jail management via lua vs declarative shell-like configuration file? yes pls.
-
_xor
jwmaag: jib and jng should be unified into a single module, imo.
-
_xor
Probably the ideal scenario would be to improve netgraph documentation by creating a couple of new documents for it (existing node man pages are pretty good, though they rely on netgraph arch as a prereq, and that can be a bit overwhelming for some to dive into because it uses a lot of domain-specific terminology).
-
_xor
Then create a couple of lua modules, one for epair and another for netgraph, that wraps up most commonly used functionality (basically create/bridge/enable/disable/destroy). Finally probably a third lua module that presents a unified interface for higher-level use with jails.
-
polyex
when do you want a bhyve vm that a jail won't cut it? and the other way?
-
parv
Use the VM to run another OS (including FreeBSD, but then there is "jail" already).
-
parv
... could also be possible run the VM in a "jail" (depending on device passthrough support) -- have used only "jail' on FreeBSD to make some ports.
-
polyex
you can run a bhyve vm inside a jail?
-
meena
polyex: i think most people just run the entirety of bhyve in a jail, not each vm in a separate one, but i might be wrong?
-
polyex
wow you can even run bhyve vms in separate jails?!
-
V-T60
Hello. I connected ath0 but it is not displayed in my ifconfig output
-
V-T60
What are extra steps?
-
parv
if the device is "properly" supported & want to use WPA2-PSK, then see
freebsdwiki.net/index.php/Network,_Wireless
-
VimDiesel
Title: Network, Wireless - FreeBSDwiki
-
parv
Does FreeBSD wpa_supplicant support WPA3?
-
V-T60
i found
-
V-T60
and it works
-
V-T60
that's good
-
meena
how??
w1.fi/wpa_supplicant it's not mentioned here
-
VimDiesel
Title: Linux WPA Supplicant (IEEE 802.1X, WPA, WPA2, RSN, IEEE 802.11i)
-
parv
( On first sight that "w1.fi" looks suspicious but seems that is indeed so|ok:
duckduckgo.com/?t=ftsa&q=what+%22w1.fi )
-
VimDiesel
Title: what "w1.fi at DuckDuckGo
-
» parv 🤦🏽♂️just realized meena's message was for me about WPA3
-
parv
w1.fri page says "Last modified: Sat Jan 12 13:27:18 EET 2013"; header says "Last-Modified: Thu, 22 Oct 2015 20:36:01 GMT"
-
parv
... in any case now I know where to look first for the WPA3 support ...
-
parv
-
VimDiesel
Title: wpa_supplicant - ArchWiki
-
meena
someone needs to update that website
-
» parv now "only" needs a WiFi router that does better than 802.11 draft-n (not too long when I went looking currently available 802.11ax routers did not have openWRT support; supported ones were out of production)
-
parv
... I should also add was looking for something that could last a decade though have no idea how to filter on that🥴 as Buffallo one is going (wired LAN|ethernet portion have certainly gone bad)
-
yuripv
parv: i have cheap cudy x6 that seems to work fine with openwrt
-
parv
yuripv, Thanks, will check out. How long have you been using? Would it last ~a decade?
-
yuripv
only 6 months, so no idea how long it will last :)
-
parv
yuripv, Alright. Thank you
-
yuripv
and yes, all newer ax routers seems to be based on broadcom socs, and broadcom isn't known for open source love
-
pstef_
huh, here that cudy x6 is cheaper than archer c7
-
winternull
if you want a WAP to last a decade then don't bother with consumer grade parts
-
winternull
plenty of enterprise WAPs will be capable of a decade of service, even if the support contract ends midway through the decade of service
-
winternull
generally better features for external antenna connections as well, and options for signal amplifiers
-
winternull
however, I will admit that even a super old archer c7 over here has been alive and well since the start of 2018, and it generally plays well adjacent to a cisco mesh net
-
winternull
flashed with openwrt, needs an update, but still reliable
-
debdrup
freebsd developer summit is live, by the way
-
debdrup
stream is open for everyone, the event itself is invite-only
-
debdrup
-
VimDiesel
Title: DevSummit/202309 - FreeBSD Wiki
-
Ronis_BR
Hi guys! I really need an old version of gitlab-ce to perform a migration. What are my options to build / obtain the old version?
-
otis
checkout the old version of ports
-
otis
the last one that contained the particular version
-
Ronis_BR
otis: and build manually?
-
yuripv
and build using that ports tree
-
Ronis_BR
can I do this in a jail?
-
otis
i'd use poudriere bulk -p tree_with_old_version -O tree_with_fresh_head www/gitlab-ce
-
Ronis_BR
ok, thanks!
-
otis
or build manually, ofc.
-
debdrup
poudriere uses jails, so you can do that manually too, if you want to put in more effort than you need :)
-
Ronis_BR
ah, ok, thanks!
-
debdrup
-
VimDiesel
Title: FreshPorts -- security/portacl-rc: RC script for mac_portacl(4)
-
meena
yeah!
-
Freaky
just pondering whether it's reasonable to try to integrate it more deeply, e.g. so service rc scripts can add rules for themselves
-
Freaky
I think the state needed makes it a bit of a dodgy prospect
-
Freaky
dns/dnscrypt-proxy2 has its own little version just for itself
-
bapt
imho the best would be to extend rc so that it becomes a convenient feature available for every rc
-
bapt
like randomrc_portacl*=
-
CmdLnKid
seems over dramatized atm
-
CmdLnKid
no offense
-
Freaky
bapt: how would you actually implement that, though?
-
jwmaag
oh wow... that jogged the 'ol memory on mac_ipacl didn't realize that landed finally
-
bapt
-
VimDiesel
Title: rc.subr « rc « libexec - src - FreeBSD source tree
-
bapt
if bla_portacl* is defined
-
bapt
first perform a sanity check (is the module loaded, maybe if not maybe load it on the fly )
-
bapt
make sure the right config is there to have portacl working
-
bapt
then execute the expected systctl
-
bapt
if not already there
-
bapt
I have never played much with portacl but at quick glance that sounds like a reasonable approach
-
bapt
that said, given how simple it seems to use portacl, is it worth it ? vs the admin configures what they need
-
Freaky
could also have an rc subcommand to add rules for you
-
bapt
yup
-
Freaky
CmdLnKid: wjat
-
Freaky
well, that wasn't what I meant to type, but, I guess that works too
-
bapt
it probably means something in some language in the world ;)
-
siix_office
snought asiff wjat yu sae maddres
-
siix_office
:)
-
Freaky
bapt: I guess jails also make it less useful to couple it that tightly
-
Freaky
-
VimDiesel
Title: 259149 – mac_portacl not in affect when running VNET jail
-
Freaky
nice, created a vnet jail with bastille and lost connectivity for a few seconds
-
Freaky
and indeed it doesn't work
-
meena
oh cool cool cool cool cool cool
-
meena
Freaky: i reckon this is still an issue in 14/15?
-
Freaky
I see nothing to suggest otherwise
-
meena
hrm… rwatson hasn't been active for two years, so we can't just assign the bug to them?
-
Freaky
hmm
-
Freaky
2023 Sep 14 14:45:43 80.80 caddy[43439]: :0 -> :0
-
Freaky
what does that mean
-
Freaky
apache shows :::80 -> :::0, which at least has a recognisable port
-
Freaky
that's from dwatch -X tcp kern_bindat
-
RhodiumToad
hm
-
RhodiumToad
a cursory read of the code suggests that jail parameter allow.reserved_ports overrides portacl
-
Freaky
that's on by default though?
-
RhodiumToad
hm. yes.
-
RhodiumToad
but that doesn't allow non-superusers to bind reserved ports
-
RhodiumToad
what did you do to make it work on the host?
-
RhodiumToad
the net.inet.ip.portrange.* sysctls are per-jail, did you check those in the jail?
-
RhodiumToad
(per-VNET-jail obviously)
-
kevans
I do kind of wonder if mac_portacl should actually be doing per-vnet rules (independent of this problem)
-
RhodiumToad
the layering of portacl is a bit weird; portacl does its check at syscall level not inside the network stack, but the network stack does its own checks way further down
-
RhodiumToad
yes, it probably should
-
RhodiumToad
but the layering might need to be changed first
-
RhodiumToad
kevans: on the mount thing, I'm not sure whether / how best to answer kib, since I don't see his objection as particularly well founded
-
Freaky
ah
-
RhodiumToad
kevans: and the simple fix is something that can easily go into stable branches, whereas adding a whole new system of ids to mounts seems like it would not
-
Freaky
RhodiumToad: net.inet.ip.portrange.reservedhigh: 1023
-
Freaky
yeah, that'll do it
-
Freaky
how do you set that to 0?
-
RhodiumToad
sysctl inside the jail?
-
RhodiumToad
I don't think it can be done via jail parameters
-
Freaky
not permitted
-
RhodiumToad
hm
-
Freaky
set securelevel=0 and it let me
-
Freaky
yup, that works
-
RhodiumToad
oh, your securelevel was >0 ?
-
Freaky
yeah, bastille default is 2
-
RhodiumToad
yeah, can't set reservedhigh when securelevel is >0
-
kevans
RhodiumToad: i'll try to take a look soon... kind of engaged in my own disheartening review at the moment as well
-
kevans
i think the main problem i have with our review process is that i somewhat frequently stumble into areas where i get objections but not much useful discussion until after i've tried a bunch of things that got rejected
-
kevans
or i get conflicting opinions from different stakeholders and they won't hash it out amongst themselves when they disagree with each other
-
polyex
jails can be given some disk from the jail host to use for writing right? like if a jail ran postgresql it would need to be able to write to disk
-
RhodiumToad
jails have some subtree of the host's file system
-
polyex
and stuff in the jail can write into that subtree?
-
RhodiumToad
i.e. you specify the jail root dir and it can use anything under that
-
polyex
can you set a quota on the jail root dir so the jail is limited to x GB?
-
Freaky
in the same way you'd do so for the host, zfs quotas etc
-
RhodiumToad
easy to do with zfs, but not otherwise
-
RhodiumToad
in particular normal per-user filesystem quotas don't understand jails
-
polyex
how can jails not have disk quotas built in?
-
RhodiumToad
because disk quotas aren't simple?
-
polyex
could each jail be put in a dir in a different user account? then put quota on user?
-
RhodiumToad
are you not using zfs?
-
polyex
sure but what about in a vm where ppl say to just use ufs? then i can't set disk quotas on jails on the vm?
-
RhodiumToad
the reason there's not a simple quota option for jails is that it wouldn't be able to cope with files existing both inside and outside the jail
-
Freaky
how do traditional quotas work? just periodic checks?
-
RhodiumToad
the normal quota facilities can be used as long as you understand that a given user quota applies to a given uid across all jails on the same filesystem
-
RhodiumToad
no, they are done by the filesystem
-
polyex
is it terrible to run zfs on a bhyve vm? so zfs on zfs
-
polyex
instead of ufs
-
RhodiumToad
I wouldn't expect any issues
-
polyex
oooo nice!
-
rtprio
i mean, you'd probably want a slightly larger memory footprint, but it works fine
-
Freaky
can be wise to set primarycache=metadata on the host to avoid unnecessary double-caching
-
debdrup
Freaky: it's a wonderful little thing as it is, but if you got time for it, it'd be nice of it could be extended to do custom rules
-
debdrup
jwmaag: I'm so happy mac_ipacl finally landed, it's an idea that I'd been kicking around and added to the SoC list on the spur of the moment. I've since discovered that other people had had similar ideas before, so it's nice that it finally landed.
-
concrete_houses
how can I raise the volume more?
-
concrete_houses
sfsf
-
rtprio
more than what?
-
concrete_houses
is there a way to raise volume more that apparent max?
-
concrete_houses
I rememebr there was pulse audio way on linux somehow
-
concrete_houses
pavucontrol?
-
RhodiumToad
sysctl hw.snd.vpc_0db
-
RhodiumToad
and also mixer vol 100 pcm 100
-
RhodiumToad
smaller values for vpc_0db are louder, but you'll get clipping if you go too far
-
concrete_houses
# sysctl hw.snd.vpc_0db=100
-
concrete_houses
hw.snd.vpc_0db: 45 -> 100
-
concrete_houses
ohhh
-
concrete_houses
sysctl hw.snd.vpc_0db=10 works awesome
-
concrete_houses
wow
-
concrete_houses
thanks!!
-
RhodiumToad
10 seems extreme. have you checked that you don't have some misconfiguration that's affecting the volume?
-
rtprio
or turn on the speakers?
-
RhodiumToad
I've seen cases where the output levels were unreasonably low unless one of the gpio pins on the sound chip was tweaked
-
_xor
What's the default behavior of a user-launched /usr/sbin/daemon when a login session is exited? (e.g. user logs in -> user runs /usr/sbin/daemon ... my_app -> user logs out)
-
_xor
Most shells send SIGINT or SIGTERM or something, no?
-
_xor
Oh wait, I guess I could just test this on my spare system.
-
RhodiumToad
the shell shouldn't be sending anything
-
_xor
What actually emits the signal?
-
RhodiumToad
it's ... complicated
-
_xor
I see :P lol
-
» _xor was thinking he should wrap his head around the details of this stuff
-
RhodiumToad
but part of the point of daemon is to get the process out of the current session and into a new one
-
RhodiumToad
what options to daemon are you using?
-
_xor
Well, this is more just me learning, but for example lets say -c, -f, and -o.
-
_xor
Oh, I also tend to use both -p and -P by default so I always have pidfiles I can look at really quick.
-
RhodiumToad
ok. so as far as i can tell, daemon always puts a child in a new session and exits in the parent
-
_xor
Hmm, I should also get a better grip on process groups/trees since -p only tracks the main child spawned by daemon. I guess it would come in handy if I want to make sure that all child pids or whatnot are managed as a group.
-
_xor
ah
-
RhodiumToad
so the shell doesn't know the pid of the actual remaining process, so it can't kill it
-
_xor
How does daemon keep track of the child? Does it poll it or is there some mechanism where it can subscribe to pid changes and be notified (or something like that)?
-
RhodiumToad
depending on the options, daemon might just execute the child in place of itself,
-
_xor
I guess I'm wonder if the shell kills daemon when the user logs out, is there some coupling between the two that breaks that could cause the child to die? (thinking in terms of IPC I guess)
-
RhodiumToad
or it executes the child in a subprocess so it can monitor it
-
_xor
...oh wait, the daemon would kill the child on getting a signal, wouldn't it? That's the default behavior, no?
-
RhodiumToad
the shell doesn't know the pid of the actual daemon process
-
_xor
oh
-
RhodiumToad
since the daemon command immediately exits
-
_xor
Ooooh yeah, that's right. Didn't think about that.
-
RhodiumToad
i.e. it forks a child, puts it in a new session, and exits the parent, so the shell thinks it's done
-
_xor
Ok now it's making more sense.
-
RhodiumToad
the fact that it's in a new session takes it out of the normal job control done by the shell and terminal driver
-
_xor
Hmm, I was just now wondering if it's common for shells to broadcast a signal to all processes owned by the user session upon termination of said user session (or at least shell sessions launched as a login session?)
-
RhodiumToad
what shells do depends on the shell, and there's also stuff the terminal driver does
-
RhodiumToad
bash and (iirc) zsh will, when an _interactive_ shell exits, send SIGHUP (+SIGCONT if needed) to every active non-disowned background job
-
RhodiumToad
oh, with bash that's conditional on the huponexit option
-
_xor
What started this line of thought was because I have a number of background applications that start when I login to wayland (same goes for xorg though). Currently I'm using a command (hyprctl) provided by my desktop environment (hyprland) to launch them in the background. Some of those services sometimes fail to start, and so I currently check them
-
_xor
via ps and start them manually if required.
-
_xor
I'm contemplating just changing it to use /usr/sbin/daemon with -p and -P to make it easier to check those background processes, but was wondering about things like can I be sure those processes terminate when I logout?
-
_xor
There's also the option of using XDG autostart via ~/.config/autostart/${APP}.desktop or whatnot, but I remember having an issue with that a while back.
-
RhodiumToad
well, now there's the distinction between a terminal session and a login session to deal with
-
RhodiumToad
if you want stuff killed when logging out from wayland or x, then that's something neither the shell nor tty job control will handle
-
» RhodiumToad has to go do stuff
-
_xor
Lol, well that was fun. System crashed.
-
_xor
Had to reboot and restart services I was talking about just now hhe.
-
_xor
Since I was rebooting anyway, I decided to upgrade packages too, and also ran autoremove. Now some apps aren't working due to packages be removed that were apparently needed (but not marked as a dep I guess).
-
» _xor is now waiting for `pkg check -a -r -d` to finish
-
polyex
if i wanted to run my whole network on freebsd, even the networking gear not just servers were all just freebsd servers ultimately, how much slower and crappier would that network be?
-
jauntyd
lol
-
polyex
what was my last msg into chat?
-
jauntyd
You were talking about how much you love FreeBSD
-
polyex
paste pls?
-
jauntyd
<polyex> I'm switching everything to FreeBSD!
-
polyex
if i wanted to run my whole network off of generic freebsd servers, and not use any special networking gear like switches and load balancers, how much slower/crappier would my network be?
-
signalblue
polyex: it'll probably be faster/better not slower/crappier
-
polyex
does anyone actually do it?
-
vkarlsen
I went all in and installed FreeBSD on the cat5 cables
-
KingShark
Hi. Just installed freebsd on my desktop to try it, did manual partitioning following the handbooks example but using freebsd-zfs instead of freebsd-ufs as filesystem for each partition, now i get 'cant find /boot/kernel/kernel' at startup. Fixable or better to do a quick reinstall?
-
vkarlsen
KingShark: You went the hard way there, didn't ya? There's a guided zfs on root mode
-
KingShark
vkarlsen, I checked the guided section and somehow came to believe its tailored for a raid setup asking about striping and raid modes so i went the manual way, probably for no good reason 😕
-
vkarlsen
KingShark: It can do simpler setups too
-
KingShark
vkarlsen, i saw i could chose only one disk for the striping mode but would that be useful? didn't see much simpler
-
KingShark
i have one ssd and one hdd. /usr was supposed to go on the hdd, everything else can be on the ssd
-
vkarlsen
You'll need two zpools then, one on each drive
-
KingShark
guess i will rerun the installer quickly, took only a few minutes on my previous run
-
KingShark
in the guided mode, it seems to offer one pool only?
-
vkarlsen
It probably does, yeah. You'll have to create the other one later
-
KingShark
my manual setup still shows in the manual mode and looks fine to me. i wonder what went wrong
-
KingShark
i got the freebsd-boot, freebsd-swap, and /, /var and /tmp as freebsd-zfs on the ssd
-
KingShark
whatever. doing guided mode
-
KingShark
worked fine *shrug*
-
KingShark
is mixing pkg and ports a no-go or not much of a problem? i see warnings about doing that in the handbook
-
daemon
its always been a thing that they should be intermixable, but generally its better to pick one and stick with it
-
KingShark
alright. compiling x11 from ports it is
-
daemon
ah one thing though this is from my personal playbook
-
daemon
I install freebsd minimal then use pkg to install <whatever I need>
-
daemon
then use portmaster to rebuild the entire systems from ports when its bed time; and then use ports from then onwards
-
daemon
but really what you do is your choice :)
-
KingShark
interesting approach
-
daemon
you can generally upgrade from pkg to ports but not the otherway around (without some weird stuff having a chance of occuring)
-
KingShark
are the forum entries on how to rebuild all pkg from ports dated 2015 still the correct procedure?
-
KingShark
-
VimDiesel
Title: Rebuilding all ports with portmaster | The FreeBSD Forums
-
KingShark
apparently better than portmaster -af
-
daemon
portmaster -aBd is generally what I use
-
daemon
but just man portmaster for the flags you want
-
MelanieMalik
:o
-
daemon
I might also mention I use raid0 everywhere and store all my systems on a central ZFS system for instant backups :P
-
KingShark
I'm stuck on some hp all in one hardware, can't easily add more disks
-
KingShark
i got a raid1 nas for data backups though
-
daemon
Bd as far as I recall is do not take any backups :) which is what I assumed MelanieMalik's :o was about
-
MelanieMalik
it was about "oh, i landed here in my channel window switching"
-
daemon
:-)
-
KingShark
thanks for the help everyone 😃 bye
-
polyex
you can give readwrite diskspace to a jail either directly mounted or through a network fs protocol. is that right? tradeoffs?