00:00:55 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? 00:11:51 that is quite the loaded question. 00:12:09 you seem great at asking them. 00:13:06 ? 00:15:44 https://en.wikipedia.org/wiki/Loaded_question 00:15:45 Title: Loaded question - Wikipedia 00:30:26 dunno what's loaded about it tho 00:30:49 bhyve doesn't need a bunch of 3rd party tools. just thought jails could get to the same place 00:34:15 jails doesn't need then either, which is why you don't see them in base 00:34:59 ok so why does stuff like warden exist? 00:35:25 for automation. 00:35:56 its like asking why k8s exists when docker exists 00:36:17 or openstack when kvm exists, etc, etc. 00:37:56 and mind you, stuff like vm-bhyve(8) exist for bhyve. 01:13:13 good evening fellow bsd hackers 01:13:13 :) 01:15:41 hiya 01:17:15 polyex: i'd like to see a lua jail manager in base tbh 01:17:26 why 01:25:43 because we have lua in base, and it would be nice to have some features that jail(8) doesn't 01:31:32 ah 01:34:26 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 01:34:34 the obvious rule being: rdr pass inet6 proto tcp from any to $host2 port 80 -> $host1 01:35:18 anything stand out as obviously wrong? 02:11:37 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? 02:23:05 kevans: lua's for gams not jails! /s 02:25:45 bah 02:26:26 i wouldn't mind having more lua in my life. 02:37:36 do you see it replacing jail(8) or as a separate beast? we already know jail(8) exposes more utility than the base syscalls 02:41:55 need lua-jib and lua-jng too 02:42:00 separate, imo there's still plenty use-case for jail(8), no need to complicate those peoples' lives 02:54:06 in my head i skipped over the "manager" part but that makes more sense 03:47:54 <_xor> kevans: lua jail manager would be awesome 03:48:46 <_xor> kevans: procedural jail management via lua vs declarative shell-like configuration file? yes pls. 03:51:19 <_xor> jwmaag: jib and jng should be unified into a single module, imo. 03:53:18 <_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). 03:56:09 <_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. 05:43:34 when do you want a bhyve vm that a jail won't cut it? and the other way? 05:53:48 Use the VM to run another OS (including FreeBSD, but then there is "jail" already). 05:55:36 ... 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. 06:24:11 you can run a bhyve vm inside a jail? 06:29:26 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? 06:30:13 wow you can even run bhyve vms in separate jails?! 06:40:05 Hello. I connected ath0 but it is not displayed in my ifconfig output 06:40:14 What are extra steps? 06:44:19 if the device is "properly" supported & want to use WPA2-PSK, then see http://freebsdwiki.net/index.php/Network,_Wireless 06:44:19 Title: Network, Wireless - FreeBSDwiki 06:45:24 Does FreeBSD wpa_supplicant support WPA3? 06:46:16 i found 06:46:18 and it works 06:46:30 that's good 06:54:57 how?? https://w1.fi/wpa_supplicant/ it's not mentioned here 06:54:58 Title: Linux WPA Supplicant (IEEE 802.1X, WPA, WPA2, RSN, IEEE 802.11i) 07:18:25 ( On first sight that "w1.fi" looks suspicious but seems that is indeed so|ok: https://duckduckgo.com/?t=ftsa&q=what+%22w1.fi ) 07:18:26 Title: what "w1.fi at DuckDuckGo 07:27:42 * parv 🤦🏽‍♂️just realized meena's message was for me about WPA3 07:29:56 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" 07:30:34 ... in any case now I know where to look first for the WPA3 support ... 07:32:32 Per https://wiki.archlinux.org/title/Wpa_supplicant WPA3 support is there 07:32:33 Title: wpa_supplicant - ArchWiki 07:34:56 someone needs to update that website 07:36:49 * 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) 07:50:46 ... 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) 07:58:21 parv: i have cheap cudy x6 that seems to work fine with openwrt 07:59:26 yuripv, Thanks, will check out. How long have you been using? Would it last ~a decade? 08:00:08 only 6 months, so no idea how long it will last :) 08:00:34 yuripv, Alright. Thank you 08:01:35 and yes, all newer ax routers seems to be based on broadcom socs, and broadcom isn't known for open source love 08:11:25 huh, here that cudy x6 is cheaper than archer c7 08:30:45 if you want a WAP to last a decade then don't bother with consumer grade parts 08:32:17 plenty of enterprise WAPs will be capable of a decade of service, even if the support contract ends midway through the decade of service 08:33:21 generally better features for external antenna connections as well, and options for signal amplifiers 08:35:00 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 08:35:54 flashed with openwrt, needs an update, but still reliable 10:23:23 freebsd developer summit is live, by the way 10:23:37 stream is open for everyone, the event itself is invite-only 10:23:56 https://wiki.freebsd.org/DevSummit/202309#LiveStream 10:23:57 Title: DevSummit/202309 - FreeBSD Wiki 12:30:12 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? 12:30:30 checkout the old version of ports 12:30:41 the last one that contained the particular version 12:30:55 otis: and build manually? 12:31:51 and build using that ports tree 12:32:16 can I do this in a jail? 12:32:20 i'd use poudriere bulk -p tree_with_old_version -O tree_with_fresh_head www/gitlab-ce 12:32:32 ok, thanks! 12:32:37 or build manually, ofc. 12:42:04 poudriere uses jails, so you can do that manually too, if you want to put in more effort than you need :) 12:42:15 ah, ok, thanks! 13:27:44 https://www.freshports.org/security/portacl-rc/ Freaky did a neat thing 13:27:45 Title: FreshPorts -- security/portacl-rc: RC script for mac_portacl(4) 13:42:01 yeah! 13:43:39 just pondering whether it's reasonable to try to integrate it more deeply, e.g. so service rc scripts can add rules for themselves 13:43:49 I think the state needed makes it a bit of a dodgy prospect 13:44:11 dns/dnscrypt-proxy2 has its own little version just for itself 13:45:32 imho the best would be to extend rc so that it becomes a convenient feature available for every rc 13:45:47 like randomrc_portacl*= 13:46:19 seems over dramatized atm 13:47:21 no offense 13:49:26 bapt: how would you actually implement that, though? 13:49:48 oh wow... that jogged the 'ol memory on mac_ipacl didn't realize that landed finally 13:52:38 Freaky: something that will hook somewhere like https://cgit.freebsd.org/src/tree/libexec/rc/rc.subr#n1077 13:52:39 Title: rc.subr « rc « libexec - src - FreeBSD source tree 13:52:51 if bla_portacl* is defined 13:53:21 first perform a sanity check (is the module loaded, maybe if not maybe load it on the fly ) 13:53:37 make sure the right config is there to have portacl working 13:53:44 then execute the expected systctl 13:53:48 if not already there 13:54:19 I have never played much with portacl but at quick glance that sounds like a reasonable approach 13:55:13 that said, given how simple it seems to use portacl, is it worth it ? vs the admin configures what they need 13:56:18 could also have an rc subcommand to add rules for you 13:56:30 yup 13:57:08 CmdLnKid: wjat 13:57:29 well, that wasn't what I meant to type, but, I guess that works too 13:58:28 it probably means something in some language in the world ;) 13:59:58 snought asiff wjat yu sae maddres 14:00:02 :) 14:18:23 bapt: I guess jails also make it less useful to couple it that tightly 14:18:33 which reminds me, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259149 14:18:36 Title: 259149 – mac_portacl not in affect when running VNET jail 14:22:23 nice, created a vnet jail with bastille and lost connectivity for a few seconds 14:27:58 and indeed it doesn't work 14:36:26 oh cool cool cool cool cool cool 14:37:21 Freaky: i reckon this is still an issue in 14/15? 14:38:58 I see nothing to suggest otherwise 14:45:19 hrm… rwatson hasn't been active for two years, so we can't just assign the bug to them? 14:46:57 hmm 14:47:37 2023 Sep 14 14:45:43 80.80 caddy[43439]: :0 -> :0 14:47:58 what does that mean 14:48:09 apache shows :::80 -> :::0, which at least has a recognisable port 14:48:57 that's from dwatch -X tcp kern_bindat 14:58:59 hm 14:59:25 a cursory read of the code suggests that jail parameter allow.reserved_ports overrides portacl 15:01:57 that's on by default though? 15:02:28 hm. yes. 15:07:21 but that doesn't allow non-superusers to bind reserved ports 15:08:50 what did you do to make it work on the host? 15:14:11 the net.inet.ip.portrange.* sysctls are per-jail, did you check those in the jail? 15:14:21 (per-VNET-jail obviously) 15:15:32 I do kind of wonder if mac_portacl should actually be doing per-vnet rules (independent of this problem) 15:15:41 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 15:15:54 yes, it probably should 15:16:16 but the layering might need to be changed first 15:17:42 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 15:19:22 ah 15:19:34 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 15:19:44 RhodiumToad: net.inet.ip.portrange.reservedhigh: 1023 15:19:48 yeah, that'll do it 15:20:03 how do you set that to 0? 15:21:11 sysctl inside the jail? 15:21:22 I don't think it can be done via jail parameters 15:21:36 not permitted 15:22:55 hm 15:24:23 set securelevel=0 and it let me 15:24:33 yup, that works 15:24:54 oh, your securelevel was >0 ? 15:25:12 yeah, bastille default is 2 15:25:16 yeah, can't set reservedhigh when securelevel is >0 15:27:10 RhodiumToad: i'll try to take a look soon... kind of engaged in my own disheartening review at the moment as well 15:28:04 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 15:28:57 or i get conflicting opinions from different stakeholders and they won't hash it out amongst themselves when they disagree with each other 15:39:10 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 15:39:42 jails have some subtree of the host's file system 15:40:01 and stuff in the jail can write into that subtree? 15:40:02 i.e. you specify the jail root dir and it can use anything under that 15:40:31 can you set a quota on the jail root dir so the jail is limited to x GB? 15:42:12 in the same way you'd do so for the host, zfs quotas etc 15:42:28 easy to do with zfs, but not otherwise 15:42:47 in particular normal per-user filesystem quotas don't understand jails 15:42:53 how can jails not have disk quotas built in? 15:43:17 because disk quotas aren't simple? 15:43:18 could each jail be put in a dir in a different user account? then put quota on user? 15:44:05 are you not using zfs? 15:44:33 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? 15:48:45 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 15:49:21 how do traditional quotas work? just periodic checks? 15:49:33 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 15:49:50 no, they are done by the filesystem 15:51:08 is it terrible to run zfs on a bhyve vm? so zfs on zfs 15:51:15 instead of ufs 15:53:28 I wouldn't expect any issues 15:54:11 oooo nice! 16:23:29 i mean, you'd probably want a slightly larger memory footprint, but it works fine 16:25:37 can be wise to set primarycache=metadata on the host to avoid unnecessary double-caching 16:34:12 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 16:35:47 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. 17:04:14 how can I raise the volume more? 17:04:21 sfsf 17:07:00 more than what? 17:07:25 is there a way to raise volume more that apparent max? 17:07:38 I rememebr there was pulse audio way on linux somehow 17:14:33 pavucontrol? 17:15:46 sysctl hw.snd.vpc_0db 17:16:07 and also mixer vol 100 pcm 100 17:17:24 smaller values for vpc_0db are louder, but you'll get clipping if you go too far 17:18:34 # sysctl hw.snd.vpc_0db=100 17:18:36 hw.snd.vpc_0db: 45 -> 100 17:18:44 ohhh 17:20:26 sysctl hw.snd.vpc_0db=10 works awesome 17:20:26 wow 17:20:28 thanks!! 17:23:29 10 seems extreme. have you checked that you don't have some misconfiguration that's affecting the volume? 17:23:49 or turn on the speakers? 17:25:09 I've seen cases where the output levels were unreasonably low unless one of the gpio pins on the sound chip was tweaked 19:03:59 <_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) 19:04:25 <_xor> Most shells send SIGINT or SIGTERM or something, no? 19:04:49 <_xor> Oh wait, I guess I could just test this on my spare system. 19:05:37 the shell shouldn't be sending anything 19:06:02 <_xor> What actually emits the signal? 19:06:23 it's ... complicated 19:06:31 <_xor> I see :P lol 19:06:43 * _xor was thinking he should wrap his head around the details of this stuff 19:06:52 but part of the point of daemon is to get the process out of the current session and into a new one 19:07:18 what options to daemon are you using? 19:07:58 <_xor> Well, this is more just me learning, but for example lets say -c, -f, and -o. 19:08:15 <_xor> Oh, I also tend to use both -p and -P by default so I always have pidfiles I can look at really quick. 19:09:40 ok. so as far as i can tell, daemon always puts a child in a new session and exits in the parent 19:09:41 <_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. 19:09:50 <_xor> ah 19:09:59 so the shell doesn't know the pid of the actual remaining process, so it can't kill it 19:11:22 <_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)? 19:12:13 depending on the options, daemon might just execute the child in place of itself, 19:12:14 <_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) 19:12:38 or it executes the child in a subprocess so it can monitor it 19:12:45 <_xor> ...oh wait, the daemon would kill the child on getting a signal, wouldn't it? That's the default behavior, no? 19:13:20 the shell doesn't know the pid of the actual daemon process 19:13:22 <_xor> oh 19:13:29 since the daemon command immediately exits 19:13:41 <_xor> Ooooh yeah, that's right. Didn't think about that. 19:14:08 i.e. it forks a child, puts it in a new session, and exits the parent, so the shell thinks it's done 19:14:35 <_xor> Ok now it's making more sense. 19:14:36 the fact that it's in a new session takes it out of the normal job control done by the shell and terminal driver 19:16:42 <_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?) 19:19:15 what shells do depends on the shell, and there's also stuff the terminal driver does 19:20:19 bash and (iirc) zsh will, when an _interactive_ shell exits, send SIGHUP (+SIGCONT if needed) to every active non-disowned background job 19:21:00 oh, with bash that's conditional on the huponexit option 19:21:32 <_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 19:21:32 <_xor> via ps and start them manually if required. 19:22:33 <_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? 19:23:18 <_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. 19:25:14 well, now there's the distinction between a terminal session and a login session to deal with 19:28:05 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 19:29:00 * RhodiumToad has to go do stuff 19:40:14 <_xor> Lol, well that was fun. System crashed. 19:40:28 <_xor> Had to reboot and restart services I was talking about just now hhe. 19:41:43 <_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). 19:41:56 * _xor is now waiting for `pkg check -a -r -d` to finish 20:37:45 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? 20:45:28 lol 20:52:01 what was my last msg into chat? 20:52:25 You were talking about how much you love FreeBSD 20:52:35 paste pls? 20:52:52 I'm switching everything to FreeBSD! 20:53:35 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? 21:03:56 polyex: it'll probably be faster/better not slower/crappier 21:04:33 does anyone actually do it? 21:08:10 I went all in and installed FreeBSD on the cat5 cables 21:17:40 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? 21:20:13 KingShark: You went the hard way there, didn't ya? There's a guided zfs on root mode 21:21:25 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 😕 21:21:45 KingShark: It can do simpler setups too 21:22:23 vkarlsen, i saw i could chose only one disk for the striping mode but would that be useful? didn't see much simpler 21:22:59 i have one ssd and one hdd. /usr was supposed to go on the hdd, everything else can be on the ssd 21:23:53 You'll need two zpools then, one on each drive 21:24:37 guess i will rerun the installer quickly, took only a few minutes on my previous run 21:26:40 in the guided mode, it seems to offer one pool only? 21:27:04 It probably does, yeah. You'll have to create the other one later 21:27:50 my manual setup still shows in the manual mode and looks fine to me. i wonder what went wrong 21:28:34 i got the freebsd-boot, freebsd-swap, and /, /var and /tmp as freebsd-zfs on the ssd 21:30:26 whatever. doing guided mode 21:36:04 worked fine *shrug* 21:41:07 is mixing pkg and ports a no-go or not much of a problem? i see warnings about doing that in the handbook 21:42:16 its always been a thing that they should be intermixable, but generally its better to pick one and stick with it 21:44:23 alright. compiling x11 from ports it is 21:44:46 ah one thing though this is from my personal playbook 21:45:03 I install freebsd minimal then use pkg to install 21:45:29 then use portmaster to rebuild the entire systems from ports when its bed time; and then use ports from then onwards 21:45:39 but really what you do is your choice :) 21:45:43 interesting approach 21:46:54 you can generally upgrade from pkg to ports but not the otherway around (without some weird stuff having a chance of occuring) 21:51:58 are the forum entries on how to rebuild all pkg from ports dated 2015 still the correct procedure? 21:52:12 like https://forums.freebsd.org/threads/rebuilding-all-ports-with-portmaster.51210/ 21:52:13 Title: Rebuilding all ports with portmaster | The FreeBSD Forums 21:52:33 apparently better than portmaster -af 21:53:30 portmaster -aBd is generally what I use 21:53:48 but just man portmaster for the flags you want 21:57:10 :o 21:58:16 I might also mention I use raid0 everywhere and store all my systems on a central ZFS system for instant backups :P 22:00:23 I'm stuck on some hp all in one hardware, can't easily add more disks 22:00:47 i got a raid1 nas for data backups though 22:01:35 Bd as far as I recall is do not take any backups :) which is what I assumed MelanieMalik's :o was about 22:02:02 it was about "oh, i landed here in my channel window switching" 22:02:19 :-) 22:04:51 thanks for the help everyone 😃 bye 23:51:32 you can give readwrite diskspace to a jail either directly mounted or through a network fs protocol. is that right? tradeoffs?