-
warsoul
whats the correct command to update freebsd 14.0
-
warsoul
?
-
markmcb
warsoul: freebsd-update is probably what you want
-
warsoul
thanks markmcb
-
johnm
warsoul: if you are on the last recent version, you'll want to 'freebsd-update fetch' followed by a 'freebsd-update install' and a reboot -- check out this link for more information and to confirm what steps you need to take:
docs.freebsd.org/en/books/handbook/cutting-edge
-
VimDiesel
Title: Chapter 26. Updating and Upgrading FreeBSD | FreeBSD Documentation Portal
-
beastwick
is there a simple way to "change" the uid/gid of shared folders over nfs to match the user on the client side? I have a simple use case that doesn't require the overhead of kerberos, but I also don't want to change that users id on the client to match the host
-
polyex
fluent-bit pkg has a bug? i enable it in rc.conf with fluent_bit_enable="YES", fluent_bit_group="fluentbit", fluent_bit_user="fluentbit". reboot server, sudo top shows fluent-bit running, but service fluent-bit status (rc.d/fluent-bit) says "fluent_bit is not running". fwiw /var/run/fluent_bit.pid exists -rwxr-xr-x fluentbit:fluentbit, not sure why
-
polyex
it's +x.
-
polyex
the bug was reported already
bugs.freebsd.org/bugzilla/show_bug.cgi?id=269480 but i tried the diff and it didn't seem to fix the problem for me. any help is appreciated!
-
VimDiesel
Title: 269480 – sysutils/fluent-bit: rc.d script should not use --daemon option when combined with daemon command
-
polyex
anyone know?
-
polyex
i'm too new to rc and daemon to figure it out
-
polyex
?
-
markmcb
polyex: not sure about that package, but i've seen this bahavior when daemon options -p and -P aren't used correctly, maybe experiment with those
-
lw
releng/14.1 just got branched for 14.1-BETA1
-
polyex
omfg yess
-
polyex
markmcb by "this behavior" talking about the weird +x part or service status not working?
-
polyex
tried everything i can think of, like -P and -p
-
polyex
still won't fucking work
-
polyex
anyone can help pls?
-
tiramisan
polyex: missed your question, please state again ^_^
-
polyex
fluent-bit pkg has a bug? i enable it in rc.conf with fluent_bit_enable="YES", fluent_bit_group="fluentbit", fluent_bit_user="fluentbit". reboot server, sudo top shows fluent-bit running, but service fluent-bit status (rc.d/fluent-bit) says "fluent_bit is not running". fwiw /var/run/fluent_bit.pid exists -rwxr-xr-x fluentbit:fluentbit, not sure why
-
polyex
it's +x.
-
polyex
the bug was reported already
bugs.freebsd.org/bugzilla/show_bug.cgi?id=269480 but i tried the diff and it didn't seem to fix the problem for me. any help is appreciated!
-
VimDiesel
Title: 269480 – sysutils/fluent-bit: rc.d script should not use --daemon option when combined with daemon command
-
polyex
tyvm
-
tiramisan
polyex: how does your rc.d script look now? it seems you could just remoev the --daemon from the end of the command_args
-
polyex
ya tried. didn't fix anything
-
polyex
also tried -P instead of -p
-
tiramisan
polyex: what does it say when you enable verbose: service -v fluent_bit restart
-
polyex
well restart won't work because it can't find the existing instance so i have to manually kill -9 it then start it. want me to do that?
-
tiramisan
polyex: well that's up to you but you might find something useful
-
polyex
just says fluent-bit is located in /usr/local/etc/rc.d \n Starting fluent_bit
-
polyex
ok just got it kinda working
-
polyex
get this...
-
polyex
the problem seems to stem from having daemon on in the fluent-bit.conf
-
polyex
seems it needs daemon off?
-
lw
interesting bug of the day: pf(4) 'match all scrub (reassemble tcp)' breaks TCP connections to Amazon
-
polyex
ya the default rc.d doesn't even need to be changed
-
polyex
lol
-
tiramisan
polyex: lol good job solving it *highfive*
-
polyex
ty for helping
-
polyex
nowi just need to figure out how to configure fluent bit to actually work lol
-
polyex
anyone use fluent bit before?
-
tiramisan
polyex: a long time ago, i think it was quite straightforward
-
polyex
i want to output to an opentelemetry endpoint over network
-
tiramisan
polyex: just basic fowarding of java logs methinks
-
tiramisan
polyex: ok no clue there unfortunately
-
polyex
just saw in the fluent bit log, error permission denied, cannot open /var/log/mylogfile.log
-
polyex
from the input:tail plugin
-
polyex
the log file is 600 i guess that's why
-
polyex
ya there it's outputting over net now
-
polyex
it logs error tho, that http status 404 route not found
-
polyex
hmm
-
polarian
Two things, firstly whats with the FreeBSD mailing list sprawling... there is so many of them
-
polarian
which one is the main one?
-
polarian
secondly lw what mailing list did you say I should post my query about hardware RF switch?
-
deadrom
Hi all.
-
deadrom
Is FreeBSD (or any BSD or derivate for tht matter) susceptible to what Linux got with xz-utils? i.e. is there a more centralized checking of the code base that will prevent untrusted external sources comitting unchecked code?
-
llua
the person built up trust in the project before commiting the act, so... it normal social engineering that anyone is susceptible to
-
sub_pop
deadrom: I asked about this back in March. Here's the discussion thread on fediverse
floss.social/@subpop/112181350769874172
-
VimDiesel
Title: subpop: "Genuinely curious, and not able to research much …" - FLOSS.social
-
deadrom
The link doesn't go anywhere
-
deadrom
wait, does in chromium, not in vivaldi. nvm
-
sub_pop
o_O
-
zwr
deadrom: It can happen to any OS, yes. It didn't affect FreeBSD, however
-
deadrom
llua: the bit that worries me here and is what I've been getting gtom the Linux crowd as well is that it seems to be seen as ... normal that this type of thing happens. Yes, true, social engineering happened before, but at that scale, with such effort, and right into a central application as crucial as ssh? If blackhat X wants to gain access to a specific system, spies out its particular attributes etc, that's one thing, but infiltrating
-
deadrom
the lock maker in general to by abble to open any house using their locks has a new quality to me.
-
deadrom
zwr: well, it cannot happen lie this exaclty to any OS if the OS isn't open, one of the prerequisites here being that the attacker could build its scheme on the availability of the src code and play the helpful hand. Not possible to approach like that on say Solaris, or that, um, OS from that Redmond company.
-
zwr
Solaris has package management. Updating a program people use to introduce malware can be done without package management, in fact it's easier because there won't be anybody to veto your changes
-
unixman_home
deadrom, testing and code review by someone other than the committer are the only ways to stop this sort of code infiltration. This is how FOSS teams are supposed to work. Someone noticed an odd thing with the code, the code was reviewed, the bad code was discovered and fixed. The process worked.
-
deadrom
unixman_home: that's not entirely true: someone noticed their openssh server took unusually long to respond and drew too much CPU. That caused them to investigate further. It was a rather close call. The code got into the testing repos exactly because nobody else looked into the code. Apart form the attackers. One overworked guy was maintaining xz-utils. that's what I'm all about, no FOSS distributor tells you they have such mechanisms as
-
deadrom
a simple extra pair of eyes checkes.
-
deadrom
zwr: if you install any package from anywhere you only have to blame yourself.
-
deadrom
unixman_home: ultimately you suggest the thing that need to happen: all code needs to be checked by at least on additional trustworthy party.
-
polarian
Is there a usergroup I can add myself to so that I can execute zzz?
-
polarian
I would like to be able to invoke zzz from a keybind
-
scoobybejesus
i mean, you could have a doas rule that allows your user to execute just your specific command w/out password
-
concussious
polarian: i have been chgrp
-
concussious
ing zzz to operator for years with no problems
-
monaco
a ka naj shqiptar te gjall
-
entikan
the "source" command is missing even though I installed python. Am I missing a packages I'm unaware of?
-
mason
entikan: "source" is a shell command
-
mason
entikan: Try "." instead of "source".
-
entikan
ah there we go
-
entikan
thanks, mason
-
mason
entikan: If you were using Bash, you'd have "source".
-
mason
But it's the same thing, so I just use "." everywhere.
-
entikan
makes sense. Shows what I know thinking it was a python thing :)
-
scoobybejesus
FWIW entikan, when i'm creating a venv, i'm creating another user, installing bash, and using bash for that user, and then source bin/activate works
-
titou
hey
-
entikan
scoobybejesus: I was tempted to install bash but after looking into it want to try it the bsd way first :P You wouldn't happen to know how to symlink directories in the site-packages?
-
titou
since I updated some ports (in particular amavisd-new), it crashs when it tries to check an ED25519 DKIM signature with signal 6...
-
titou
here is the output I got from amavisd:
pastebin.com/d4GfJ6Qz
-
VimDiesel
Title: /usr/local/sbin/amavisd[19629]: (19629-04) get_body_digest: reading mail body fr - Pastebin.com
-
scoobybejesus
you can just ln -s whatever you want, but ideally you don't need to. you generally just want to the python inside the venv to be called so that its got a proper path... i think
-
titou
unfortunately I don't find any similar bug on the internet.. I don't understand since my ports are up to date
-
titou
and I don't know how to debug that..
-
polarian
scoobybejesus: idk... it feels wrong writing doas in a script
-
polarian
and although I currently use nopass, it will not work if there is nopass because the command is forked into the background by the wm
-
polarian
concussious: chgrp'ing what exactly?
-
polarian
zzz is a command...
-
titou
if you don't have any idea (and I think so since you don't develop these tools..) maybe you could tell me what you use in order to add protection to an smtp server to add antivirus and spam protection in 2024 (without using amavisd)
-
titou
for a small smtp server
-
jgh
ClamAV... but nothing stops spam entirely. Firewalling whole countries and AS' helps, if you can
-
polarian
Its a little redundant as some spam will still get through, and when you start putting more barriers in the way you risk spamming legitimate emails
-
polarian
if you are a small smtp server you should be fine with just enforcing DMARC, and validating spf and DKIM
-
titou
thanks
-
titou
and what do you think about rspamd ? I just discovered it
-
polarian
rspamd is commonly used... but afaik it doesn't support IPv6 (and the developer refuses to admit IPv6 even exists)
-
titou
really? where does he come from?!
-
titou
in fact if rspamd is used locally as a milter we don't care about IPv6 no?
-
» polarian shrugs... I have never dabbled in rspamd
-
polarian
I think it only matters if you try using blacklists
-
titou
ok
-
polarian
wait the IPv6 stuff can't find a source on... I must have got it confused with something else
-
voy4g3r2
it is just seasier to setup ssh on a jail than trying to remember jexec -u root <jailname>
-
polarian
is it? surely that is more attack surface area... why setup a jail if you expose another ssh instance you got to protect?
-
polarian
Also... I found that setting the brightness with xrandr (or xorg in any other way) seems to just make the pixels darker... instead of actually dimming the backlight... dimming the backlight works well if you use backlight(8) but there isn't any conf for it... what would be the best way to issue "backlight 50" on startup?
-
polarian
I have seen some posts on making it a rc service... but there must be a better way?
-
voy4g3r2
polarian: that is possible but i am looking at this as ease and this is a homelab
-
voy4g3r2
plus you do not allow password prompt logins, you have to have a valid cert. so minimizes that
-
polarian
voy4g3r2: well if its within a homelab, and isn't exposed to WAN... then maybe it isn't a big deal...
-
polarian
you could just alias jexec -u root no?
-
polarian
make an alias for it
-
voy4g3r2
yes, that is an option also
-
voy4g3r2
i do not want to be in jail as root but as a user i created for services i have running so it would be jexec -u root <jail>; su <user>; do work
-
voy4g3r2
now i just ssh <user>@<jail>
-
voy4g3r2
:)
-
polarian
whatever floats your boat...
-
voy4g3r2
yeah, it was just like.. why they heck am i doing all these extra steps
-
polarian
security sometimes requires extra steps :P
-
jmnbtslsQE
-
concussious
ssh is unbroken
-
concussious
imho unbroken is the highest level in security
-
llua
famous last words
-
concussious
polarian: chgrp operator /usr/sbin/zzz
-
concussious
then, a user in the operator group is allowed to operate the zzz command
-
polarian
oh...
-
concussious
which, to me, is consistent with the meaning of the operator group
-
polarian
I think this is similar to giving the user doas permissions
-
concussious
no, doas is adding an extra layer on top
-
concussious
doing it the way i suggested is using raw unix
-
concussious
so, from a security standpoint, doas and sudo are unbroken, but they're an extra attack surface, extra complexity, resource usage, etc
-
polarian
concussious: yes... but doas elevates you to root
-
polarian
while operator only gives you access to operator group'd permissions
-
polarian
so operator i would assume is better
-
concussious
precisely! my way doesn't elevate you. it simply lets the operator... operate sleep mode
-
polarian
but anyways I found I don't need to do this... I found the function key to do it instead :)
-
polarian
no keybind needed
-
concussious
oooh tell me more
-
polarian
concussious: I already use doas... sooooo
-
polarian
either one works
-
polarian
concussious: E6430 F1 key
-
polarian
lol
-
concussious
huh, thanks for sharing, but mine doesn't do that
-
concussious
there's definitely different ways of doing everything
-
polarian
any ideas on my other issue...
-
polarian
executing the backlight command on boot?
-
concussious
backlight is new since freebsd 13, actually this is my first time seeing it
-
concussious
thank you
-
polarian
lol
-
concussious
ive never figured out, after all this time, how to bind backlight and volume adjustment to keys
-
polarian
well its the only thing which worked
-
polarian
I have tried on and off for weeks
-
polarian
but I have been having a really bad headache for weeks...
-
polarian
and its from the brightness being at max... literally burning my eyes
-
polarian
50% seems to be a more comfortable brightness... plus saves quite a bit of power too \o/
-
polarian
concussious: I have function keys for volume on my E6430, they work out of the box
-
polarian
the mute button doesn't...
-
concussious
you could put the brightness command in your .login
-
polarian
and the brightness up and down keys do not work either
-
polarian
concussious: amazing idea, thanks!
-
concussious
putting it in .login is certainly not the best way to do it though
-
concussious
but i don't know a better way
-
polarian
hey... its a quick and easy solution
-
voy4g3r2
polarian: quick and easy solutions all around
-
polarian
lol
-
voy4g3r2
for console keybinding, i have used this:
man.freebsd.org/cgi/man.cgi?kbdcontrol
-
VimDiesel
Title: kbdcontrol
-
voy4g3r2
-
VimDiesel
Title: xbindkeys: how to bind keys to commands (X window) - Vicente Hernando
-
concussious
i just use csh's bindkey
-
concussious
interestingly, "which bindkey" shows nothing
-
concussious
but "which which" says "which: shell built-in command."
-
concussious
after unaliasing which, i alias which to /usr/bin/which because it supports -a
-
polyex
anyone have fluentbit log collector running and outputting with opentelemetry?