-
polyex
i make /etc/devfs.conf why does sudo pw groupadd -n network -m logg error that m is illegal option? man page shows it
-
polyex
it's just how to add a user to a group
-
polyex
oh -m is just for groupmod
-
polyex
why isn't my devfs.conf for /dev/bpf* working pls?
termbin.com/swpp the groups should be network but they're wheel?
-
skered
I don't think you can glob match in devfs.conf?
-
polyex
frfr?
-
skered
If you want to use glob match you need devfs.rules
-
polyex
can i use that in a jail?
-
polyex
jail host devfs.rules has add path 'bpf*' unhide, so what would the jail devfs.rules have to apply those same rules?
-
skered
mode ... user ... group ... ?
-
polyex
ok then set in rc.conf with devfs_system_ruleset="localrules" man page says ty i'll try it!
-
polyex
ok i think i'm doing it right but why are the perms of /dev/bpf* still root:wheel?
termbin.com/pxua
-
polyex
should be root:network
-
polyex
anyone know?
-
skered
oh this is in a jail?
-
skered
Just do it on the host
-
polyex
i need the jail to be completly independent from jail host
-
polyex
i don't wanna mix configs
-
skered
How are you starting the jail?
-
» skered only has exp. with devfs rules with ezjail config files.
-
polyex
from the jail host
-
skered
You have a devfs_ruleset in your jail.conf for the jail?
-
skered
jail_name { devfs_ruleset=<number> ... } ?
-
skered
I guess 10 in this case?
-
polyex
-
polyex
does that show the info you want?
-
skered
No idea. I've only done devfs where the config is on the host and in ezjail.
-
polyex
there has to be a way
-
polyex
so then in a jail, what's the right way to allow a regular user access to /dev/bpf so it can run tcpdump?
-
polyex
-
VimDiesel
Title: pkg-message « wireshark « net - ports - FreeBSD ports tree
-
rennj
network general packet sniffer.. the sniffer
-
rennj
-
VimDiesel
Title: Sniffer (protocol analyzer) - Wikipedia
-
polyex
why what?
-
rennj
why you putting the tcpdump/sniffer/wireshark foo in a jail?
-
kevans
polyex: yes, devfs.conf is processed in /etc/rc.d/devfs; the device field is generally open to whatever shell globbing you can come up with
-
polyex
kevans i can't get it to work either by modifying the jail's devfs.conf OR devfs.rules.
termbin.com/hl75,
termbin.com/0x75
-
polyex
what's the right way to allow an unprivileged user in a jail access to bpf so it can run tcpdump?
-
polyex
it's a vnet jail fwiw
-
rennj
so they can sniff their chroot jail..swell
-
kevans
devfs_system_ruleset isn't used in a jail
-
polyex
so what's the solution?
-
polyex
my end goal is to put pf block/allow loggings into syslog. this is the only way i've found
-
polyex
i can get it working if it's running as jail's root but i'd rather it not use the root
-
polyex
tcpdump -> logger
-
kevans
it wouldn't be unreasonable to throw it in the host's devfs.rules
-
kevans
hmm
-
kevans
maybe the group doesn't exist
-
polyex
i'd prefer to keep jail's self-contained as much as possible
-
polyex
network?
-
polyex
pw group show network shows it
-
polyex
also shows my logg user in it
-
kevans
oh, no idea- I closed those tabs eons ago now :-)
-
kevans
I'd probably just shove it in /etc/rc.local, then
-
polyex
shove what?
-
kevans
I can't think of a clean solution here
-
rennj
vnet network traffic within the jail is isolated from the host system and other jails..so your jail needs this ?
-
kevans
ownership change
-
polyex
am i the only person that wants a jail to be able to run tcpdump?
-
kevans
nah, it's a reasonable task
-
polyex
what's the normal clean way?
-
kevans
normally you'd do it in devfs.rules, but that rc script is tagged nojail entirely
-
polyex
so i'd definitely NOT do it in devfs.conf?
-
kevans
yeah
-
nmz
I wonder how much of an ideot would it be to set up a directory which symlinks everything in $PATH to it and runs on a cron job
-
nmz
idea*
-
kevans
polyex: and devfs.rules are provided by the jail's parent and immutable to the jail, so that's out
-
polyex
kevans so you're saying the cleanest solution is put chgrp and other things into rc.local. ill try that now
-
kevans
that generally leaves you with... something that runs at startup, e.g., rc.local
-
kevans
yeah
-
kevans
well, I wouldn't claim 'cleanest', no
-
kevans
It's the cleanest that I can see at the moment, and generally easy to do
-
polyex
ok so i added the
cgit.freebsd.org/ports/tree/net/wireshark/pkg-message chgrp chmod chmod to rc.local. i start the jail back up and /dev/bpf* perms are...
-
VimDiesel
Title: pkg-message « wireshark « net - ports - FreeBSD ports tree
-
polyex
for /dev/bpf it's crw-rw---- root:network, /dev/bpf0 -> bpf is lrwxr-xr-x root:wheel
-
polyex
is that good?
-
rennj
umask 0660 foo...you put in earlier...
-
polyex
what?
-
rennj
exactly
-
rennj
perm bpf* 0660
-
rennj
a umask
-
polyex
do that in rc.local or?
-
rennj
-
VimDiesel
Title: umask - Wikipedia
-
rennj
-
VimDiesel
Title: pkg-message « wireshark « net - ports - FreeBSD ports tree
-
polyex
ok seems to be working
-
polyex
yes it's working!! tyvm kevans you are my hero
-
polyex
i want to hold your hand and look into your eyes and thank you
-
kevans
if you go to bsdcan you can send a beer in my direction =-)
-
polyex
what kinda beer you like best?
-
polyex
ipa or dark ale or?
-
kevans
the drinkable kind, in general
-
kevans
i like experimenting
-
polyex
we could do all kinds of experimenting together
-
polyex
so bpf in a jail can sniff the jail host and other jails traffic? i thought vnet gave each jail a separate network stack
-
rennj
cut copy pastw computing, doesnt really work well in the end
-
rennj
cut copy paste computing, doesnt really work well in the end
-
rennj
bridge epair perhaps
-
rennj
plent of bind/sendmail cut/copy/paste computing...using a computer and not understanding anything
-
rennj
dangerous computing, risk digest
-
rennj
-
VimDiesel
Title: Jails - FreeBSD Wiki
-
rennj
-
VimDiesel
Title: MasonLoringBliss/JailsEpair - FreeBSD Wiki
-
aalu
Hi folks. I run FreeBSD 13.2 as a guest of Linux KVM and found the virtio pci devices not use MSI but legacy pin based irq, is this expected? Thanks.
-
nerozero
Hello guys, off top, anyone else experience issues with ddg search ?
-
nerozero
here is the error: "We're currently experiencing an issue with DuckDuckGo Search. Thanks for your patience while we get our ducks in a row.
-
nerozero
In the meantime, you can use other search engines right here by using "bangs":"
-
BinGOs
ddg backend to bing and that is suffering some issues apparently:
theregister.com/2024/05/23/bing_and_copilot_fall_from
-
VimDiesel
Title: Bing and Copilot fall from the clouds • The Register
-
dstolfa
yeah, noticed it today. moved to startpage for now
-
nerozero
:(
-
BinGOs
From that article "Bing's downtime meant that DuckDuckGo, which uses Bing as a search results source, was also down"
-
nerozero
never used startpage
-
nerozero
what about privacy things on startpage?
-
dstolfa
dunno, didn't look too far into it. it seemed mostly acceptable when it comes to the stuff it was showing me, so i'll just stick with it until bing is operational again
-
nerozero
thank you guys for quick replies
-
Demosthenex
so, if i want to launch a single process from the CLI, but i want to make sure it can't use networking, is that possible? i don't want to setup a jail.
-
Dooshki
Demosthenex: In my case, I have a dedicated user for that, with a pf rule to block all network activity from that user
-
Demosthenex
ooo. tsocks!
-
Dooshki
it literally takes just a single line in pf.conf:
-
Dooshki
block all user disconnected_guy
-
Dooshki
(of course, using your username of choice)
-
Demosthenex
yeah, but $$ tsocks myapp is much easier
-
Demosthenex
and i want x11
-
nimaje
hm, casper seems like what you want, but I have no idea where you can find it
bsdcan.org/2016/schedule/events/661.en.html
-
VimDiesel
Title: BSDCan2016: Capsicum and Casper
-
Demosthenex
nimaje: a ldpreload like tsocks was enough for me ;]
-
Lovis_IX
lithio
-
sydbarrett74
hi all
-
Steeve
If I observe a bug / incorrect behavior in a program, would it be rude to email the maintainer and offer to help?
-
Steeve
I see that there is a FreeBSD bugzilla, but other than just report the bug, I'd want to offer to research / proopse a fix
-
Steeve
And lastly, if someone is listed as the "Maintained by:" field on ports.freebsd.org, would the "artifacts" they maintain also correlate to the binary package of the same name?
-
ek
Steeve: You can do that in bugzilla. If you label the PR properly, the maintainer will be notified. Then, you can propose fixes, provide patches, make suggestions, etc... all in bugzilla as well. It's meant to be used as a collaboration tool.
-
ek
For the last bit, yes. The packages are also maintained (not built/provided by) the port maintainer.
-
Steeve
Great, thank you
-
ek
You're welcome.
-
Teraii
Hello here
-
Teraii
FreeBSD is fully working on rpi3 ?
-
Teraii
i can't see linux and systemd anymore :)
-
bbrtj
Wifi is not working on rpi3
-
Teraii
arg
-
Teraii
well i'm waiting more :)
-
Teraii
learning linux :p
-
kenrap
I think the rpi wifi support is heavily dependent on the firmware, right? It won't happen until the firmware supports FreeBSD.
-
rtprio
i thought there was pi info on the wiki
-
polyex
trying to make a rc.d service but even tho it runs it doesn't return when i type service logg start. just sits there Starting logg... forever
termbin.com/k4y9 but i'm using daemon to run it so what i'm doing wrong?
-
scoobybejesus
cmd piped into itself? reading on mobile is tough, but that looks weird/recursive
-
polyex
i'm trying to just make sure it's always running
-
polyex
it's how i'm piping pf log events into syslog
-
polyex
if i'm doing it wrong how should i do it?
-
scoobybejesus
ah that's a new line
-
scoobybejesus
my fault
-
polyex
know why it doesn't return?
-
scoobybejesus
perhaps running with -x will point to the issue. verbose of course
-
polyex
where scoobybejesus?
-
rwp
In the rc script put in "set -x" and then run it and see where it is hanging.
-
rwp
The -x will emit tracing print to stderr an echo print for every command executed.
-
polyex
hm well i ran that and a bunch of stuff outputted but duno
-
polyex
i feel like there's gotta be an easier way to make it return