-
rtprio
ExclamationPoint: double nat works most of the time, but is there not a better way to layout your network?
-
RhodiumToad
why would you need double-nat rather than plain forwarding?
-
rtprio
right; either flatten the network, or add an interface on 172.16 on `C'
-
_xor
What's are the biggest benefits that ipfw has over pf again?
-
» _xor is looking over his notes and trying to prioritize tasks and needs to weigh how much potential time ipfw might save or add additional value over pf
-
RhodiumToad
'C' doesn't even need an interface; if forwarding is enabled on B, then C just needs a route to 172.16 pointing at B
-
magnahelix
_xor: that's a tough question.
-
magnahelix
While this does not answer your question, I like pf for its simpler rule writing.
-
magnahelix
At the end of the day ipfw and pf can get you the same result.
-
_xor
I've heard both sides of that, where some people prefer pf-style and others prefer ipfw-style. I use jails a lot, along with netgraph, and from what I understand ipfw has better jail support (with regards to commands in base).
-
_xor
Yeah it's not a super high priority, but I can't really decide that without knowing how much time I'd have to put into ipfw to weigh it's trade-off against pf.
-
_xor
pf is generally fine, though I'm not a huge fan of how it handles dynamic rules via anchors. It feels a bit hacky.
-
magnahelix
Can't say I ever had a need to use anchor rules in pf.
-
magnahelix
That's just me: I like simplicity.
-
_xor
I do, when needing to deploy services on a host that requires privileged ports. I usually bind the service to a non-privileged port and rdr from the privileged port to the higher-value port.
-
magnahelix
I'm guessing that's the case when redirecting ports to services running inside jails.
-
hsw
hello, has anyone here run into clock drift on a Digital Ocean Drooplet? (ntp looses sync after a few hours)
-
V_PauAmma_V
A droplet using FreeBSD, you mean?
-
hsw
yes, originally DO had FreeBSD 12.1 images and I have continually upgraded them to 13.2-p2 all are fine, but one drifts
-
hsw
I see ntpctl showing: clock unsynced, clock offset is -921.282ms
-
rtprio
i've used the heck out of tables in pf; i don't recall similar functionality in ipfw
-
rtprio
but i've found the fewer the letters in the firewall, the better. iptables = bad, ipfw = ok, ipf = better, pf = best
-
rtprio
it's a lot of pressure on anyone who writes a firewall named 'p' or 'f'
-
V_PauAmma_V
OK. One possibility (which may not be applicable to DO) is that the host pauses that droplet, which puts its ntpd out of whack.
-
V_PauAmma_V
Is ntpd (or whatever you're using, but you mentioned ntpctl) that droplet and the ones that don't drift configured the same?
-
V_PauAmma_V
s/that/for that/
-
RhodiumToad
rtprio: ipfw has _extensive_ table functionality
-
hsw
they all run openntpd and just have the default config
-
V_PauAmma_V
The default config for... openntpd?
-
hsw
yes the default that pkg install openntpd sets up
-
V_PauAmma_V
OK. Now the other question is whether they all have the same DO config.
-
hsw
the one that is failing is different in that I changed its CPU to DO-Premium-AMD from DO-Regular to see if that would help, but still drifts
-
hsw
the one I compare it against in the same datacentre is still on DO-Regular
-
hsw
disk/ram are same
-
V_PauAmma_V
And both/all are running the same openntpd version?
-
hsw
yes, I checked sha256 of ntpd executable and /boot/kernel/* to make sure no differences
-
RhodiumToad
are there any logs about it?
-
myappie
what if freebsd and openbsd became one OS, each variant its own branch which in time will merge as one
-
angry_vincent
this a meta-question that has no answer
-
myappie
we could buy back the BSD trademark. get rid of those meaningless mascots. to new users, it would just be a backend option, in the frontend we'd make something like the world's greatest widow manageror or something (i actually have some ideas for that)
-
myappie
angry_vincent: that it is...
-
angry_vincent
good luck with your ideas
-
myappie
thanks (the window manager)
-
myappie
freebsd + openbsd would be a warzone for years
-
rtprio
did it always?
-
rtprio
huh.
-
myappie
i think the windowmanager would make a lot of sense forsomething that wereto apppear in 10 years time.
-
RhodiumToad
rtprio: the table functionality? I don't know about "always", but certainly for a long time
-
myappie
you'd navigate around a 3d-looking hierarchy made up paraeters as in parametric architecture, depending on your current emotions, your todo list for the day, your physccal surroudings. it wouldnt really be 3d, but rather aa bunch of 2d particles giving the illusion of 3d. todays WMs are inspired by office space, destops,papers,pens. thisnewWM would be inspired by theinfinite spacethat surrounds us. your
-
myappie
personal files, the oes that are smilar, would rotate around each other.
-
rtprio
warzone is a bit... dramatic
-
myappie
it wouldnt look like this:
i.imgur.com/T0VYOAs.png although it would feel equally alien to us at first
-
rtprio
i do wish that freebsd's pf didn't diverge so much, but not a lot to be done about that now
-
myappie
(stupid pic is just an AI gen, notmeant to represent the future WM)
-
myappie
rtprio: sorry to hear that :/
-
myappie
i hope you can run pf-badhost?
-
rtprio
in my present situation, firewalls are not my problem
-
linear_cannon
not sure where to report this, but `fossil` seems to be broken on ppc64le, i'm presuming due to sqlite (which fossil uses) also being broken on ppc64le
-
linear_cannon
ironically i ran into this while trying to do testing to get upstream sqlite to fix this exact issue
-
linear_cannon
the issue is the same as with some other packages, such as firefox, where sqlite's endian detection incorrectly assumes the endianness based on a compiler define
-
_xor
Fossil was built for SQLite development, and it's built on top of SQLite too hhe.
-
_xor
I'm not quite sure I understand what you mean though by detecting architecture endianess; meaning, detecting it compile-time vs. run-time?
-
_xor
Wait, would that even work?
-
RhodiumToad
certainly should
-
RhodiumToad
compiler needs to know what endianness of binary it is writing, after all
-
kevans
apparently sqlite assumes powerpc* is all big-endian, which is weird. my understanding was that ppc64le was way more popular than be in linux land
-
linear_cannon
these days, yes, it absolutely is
-
linear_cannon
before POWER8 it wasn't, since most (all?) ppc64 chips did not support the little endian modes and instructions
-
linear_cannon
ppc32 ones did, weirdly enough, and yet nobody really ever did ppc32le. though it's possible to build a rootfs for that and i've heard two independent reports of someone getting it to boot
-
kevans
yeah, I suppose the defaults for something like this don't really adjust to the times very often
-
» RhodiumToad is a bit peeved at the fact that little-endian seems to have mostly won the endianness wars
-
kevans
yeah
-
kevans
at least one of our primary ppc folks is die-hard BE all the way, really admire his dedication
-
RhodiumToad
I've mostly been forced by circumstances (and lack of ppc hardware) to work on little-endian systems
-
RhodiumToad
my other pet peeve is signed chars
-
kevans
that one's bitten me recently, even
-
RhodiumToad
having to cast to unsigned char to do something as trivial as isspace() is a pain
-
myappie
hey say i run some freebsd website, am i allowed to play with alternative logos as long as i mention it in the footer? .png
-
myappie
heres a blockchain logo, is there ay way to use a similar approach for a new freebsd logo? what could it be made of?
-
myappie
the blockhain was made in blender, freebsd's coud use
github.com/danini-the-panini/mittsu instead
-
VimDiesel
Title: GitHub - danini-the-panini/mittsu: 3D Graphics Library for Ruby.
-
myappie
i guess i could turn the rectanges into spears
-
myappie
* gles
-
darwin
what do you do when you make a typographical error (typo) and kill the wrong process... any way to find out what it was, or might you just have to reboot?
-
_xor
RhodiumToad: I meant determining it at run-time.
-
_xor
Though I guess that would be up to the OS & run-time loader.
-
_xor
iOS and Android can bundle up multiple architectures into a single executable. I think that includes architectures with different endianess.
-
_xor
er, I mean the on-disk file of what they expect to load and launch can contain executables for different architectures.
-
» _xor just Googled for more info
-
_xor
-
VimDiesel
Title: linux - Multiple ISA in same ELF file - Stack Overflow
-
_xor
Not sure how true that is today, but the answer was edited in May of this year, and it seems logical.
-
_xor
"having to cast to unsigned char to do something as trivial as isspace() is a pain", lol that would be super annoying
-
_xor
"apparently sqlite assumes powerpc* is all big-endian, which is weird. my understanding was that ppc64le was way more popular than be in linux land"
-
_xor
kevans: It makes me wonder what actually led up to their decision to make that assumption. I mean knowing that project, I'd guess it was a good/necessary assumption to make, but I'm curious as to the logic behind it.
-
_xor
I know that their test suite is required for a bunch of private/government-related work, so I'm guessing both compliance and being able to meet strict requirements.
-
_xor
Last I saw, their test suite was 8x the size of the main codebase. From what I remember, ~60%-70% of that is fuzzer-generated.
-
_xor
I guess they had to say PPC=BE to make it work and also be able to stand behind expected behavior.
-
crb
I noticed that my recent FreeBSD kernel says 15.0 but we haven't branched 14.0 yet have we?
-
dstolfa
-
VimDiesel
Title: src - FreeBSD source tree
-
crb
perfect, thank you
-
mrelcee
Well that was a pain. Scored a bunch of 10T SAS drives super cheap... tried building a new zfs pool with them.. discovered they're all formatted for 520 byte sectors.
-
mrelcee
At least i was aware how to fix that just never have had to - at the rate theyre going i think its going to be tuesday when i can build the pool. At 11% after a couple hours
-
rukus
520 byte sectors ?
-
rukus
logical or physical ?
-
rukus
-
VimDiesel
Title: Other - Deciding what to do with 520byte sector size SSD | The FreeBSD Forums
-
ketas
520b wtf
-
ketas
apparently it has reasons..-
-
ketas
real fun
-
mrelcee
Formatted 520b physical.
-
mrelcee
Fixing it for normal systems requires letting it do a low level format. Gives write errors if you go to use it otherwise. sg_format utility handles it. sg3_utilities pkg/port.
-
mrelcee
Believe the origin of such drive formatting is in certsin fiber channel arrays.
-
mrelcee
Certain
-
mrelcee
Seems worth the pain in the ass for $2.50 a gigabyte. I wish i'd been able to buy a lot more than i did. 😀
-
tercaL
Hello everyone. I love playing with Jails, they're pretty useful and fast.. Have been reading too many documentations and tutorials about it, got a question, I've seen too many rc.conf suggestions like: cron_flags="$cron_flags -J 15" for Jails. What does -J 15 actually do? Anyone care to explain? Thanks!
-
nero
use ´man command_name´ if you need a reference for cli options
-
nero
cron(8) says -J is for setting time jitter
-
tercaL
nero: Thanks. I've been reading that, but didn't really understand what it actually means.. time jitter.. and why it'd be better for Jails that way.
-
nero
see also the -j option, which explains the rationale
-
Soni
how does freebsd allocate argv?
-
Oleg
argv? I know that in C, it's allocated when you execute the main function: int main(int argc, char** argv).
-
Soni
how is it stored in memory?
-
Oleg
maybe memory allocates it on the stack?
-
dstolfa
-
VimDiesel
Title: freebsd-src/sys/kern/kern_exec.c at main · freebsd/freebsd-src · GitHub
-
dstolfa
this isn't just argv, it's other things too
-
dstolfa
see also sys_exec, exec_copyin_args
-
dstolfa
sys_execve rather
-
Soni
how is it laid out?
-
dstolfa
-
VimDiesel
Title: freebsd-src/sys/kern/kern_exec.c at main · freebsd/freebsd-src · GitHub
-
Oleg
dstolfa: where is the main function in that code? I don't know much about coding, but I know that in C, argv is present in int main(int argc, char** argv){}
-
dstolfa
Oleg: this is kernel code responsible for performing the execve(2) syscall. there is no main function in this context other than the fact that it's the function that will be jumped to eventually after all the initialization is done
-
dstolfa
but not in kernel context
-
Soni
it looks like it's all shoved into a buffer, in order?
-
dstolfa
Soni: BTW, if dpcpu stuff is confusing you, see dpcpu(9)
-
dstolfa
it's basically just a way to have per-CPU data
-
Soni
so basically shoving protobufs into argv is generally portable across POSIX implementations?
-
jgh
cannot carry NUL chars that way, if you thought a protobuf could
-
dstolfa
not quite sure as i don't really know what the code does, but you should be able to at least get the upper bound from limits.h in a portable-ish way
-
jgh
"The arguments represented by arg0,... are pointers to null-terminated character strings"
-
Soni
doesn't matter, if they're shoved into a buffer in order
-
Soni
because foo\0bar\0 is still foo\0bar\0 even if you're only "supposed" to see it as foo and bar
-
newchair
Just started playing around with freebsd yesterday for the first time and I have a bit of a random question. Is there any technical reason why in freebsd you must mount procfs while in linux /proc always has the process pseudo-fs?
-
meena
newchair: We don't believe in procfs
-
meena
even though our procfs is way less powerful than Linux', we still disable it by default
-
meena
it's just too much information exposed, and we're afraid of more leaking out
-
newchair
Ok i see. I'm also noticing on my linux machine /tmp is tmpfs in /etc/fstab but not on freebsd
-
meena
yeah, you can do the same, but by default is just a regular Filesystem
-
meena
basically, Linux does a lot of things through Filesystems, and… We don't
-
» meena has been in great pain at times trying to find alternatives for /proc or /sys stuff when porting Linux systems Software for FreeBSD
-
newchair
lol
-
» meena shakes fist at her arch nemesis infiniband
-
meena
the biggest problem, if we ignore infiniband for a second, isn't even finding sensible alternatives. it's trying to find out what the heck those magic files in Linux even mean
-
newchair
Yes freebsd seems a lot more sensible and easier to grasp than linux in general so far. Like how linux just has a million different kill signals for some reason
-
meena
every Unix does
-
newchair
oh nvm maybe kill -l is just different on bsd lol
-
meena
-
VimDiesel
Title: signal(3)
-
newchair
meena: cool thx
-
newchair
back to the handbook!
-
meena
-
VimDiesel
Title: illumos: manual page: signal.h.3head
-
meena
check signal(7) on Linux
-
newchair
thats exactly what i did after skimming the freebsd one
-
meena
no idea which ones POSIX defines
-
dstolfa
meena: parsing procfs is also very fun, so you end up with gems like this if (!file.is_directory() || !std::filesystem::exists(full_path))
-
meena
-
VimDiesel
Title: <signal.h>
-
meena
dstolfa: i refuse to parse procfs
-
meena
here's a cool but report, by me, about /proc, which came to a happy ending:
canonical/cloud-init #4332
-
VimDiesel
Title: util.py: get_proc_env() doesn't work on FreeBSD · Issue #4332 · canonical/cloud-init · GitHub
-
VimDiesel
4332 – System crash after SCSI DAT tape access.
bugs.freebsd.org/bugzilla/show_bug.cgi?id=4332
-
meena
but report. butt report…
-
parv
I was using "psutil" (Python module) to get proc(ess)stat(istics) on Rocky Linux 8; more than not, it was slower than just coping with custom "ps" output.
-
parv
Have not tried on FreeBSD
-
meena
a lot of the low level Unix stuff goes thru lots of code. like, lots and lots of code
-
meena
everything is highly abstracted before dispatched to the actual functions
-
meena
I just noticed the "emulation" stanza in procstat. hmmm…
-
BillyJoeBob
So I have the Ubuntu OS installed for my Linux jail. I have it all updated and can chroot into it just fine. I can even run the Linux version of Wesnoth (installed from the Ubuntu system) perfectly. I'm trying to run an AppImage from my Downloads folder and it's throwing this: ELF interpreter /lib64/ld-linux-x86-64.so.2 not found, error 2
-
BillyJoeBob
I tried running it in the Linux jail and that was complaining about a fusefs problem.
-
BillyJoeBob
I'm on 13.2 and I'm running Ubuntu 22.04 LTS.
-
BillyJoeBob
It seems anything I run outside the jail I get that error when it's a Linux ELF. I was reading that it should be smart enough to know the chroot, etc...or I thought I read that somewhere.
-
BillyJoeBob
Because if I run /compat/ubuntu/usr/games/wesnoth-1.16, I get the same ELF error.