-
AReal486
Hello.
-
ghoti
rwp: I hear ya, but the old-school traditionalist in *me* would have used nslookup and awk, none of this newfangled `dig` stuff. ;) Why would you pick `host` over `dig` at this point, btw?
-
rwp
I just like the simpler format of the bind9 host format as being easier to work with generally.
-
rwp
Unfortunately there is a util-linux host (or something elsewhere) that has a somewhat different host command. Gack.
-
rwp
I have never really liked nslookup's format which I find rather more difficult to work with and so am personally definitely not attached to nsslookup.
-
rwp
But in FreeBSD I thought instead of dig it was "drill baby drill" and I haven't ever yet used drill myself yet. :-)
-
rwp
As long as we are talking about this topic I'll mention "getent" which looks things up like gethostbyname(3) does using nsswitch.conf and all.
-
rwp
Try "getent hosts example.com" for example.
-
rwp
That's not apropos for your task of looking up pure DNS TXT records. But for gethostbyname(3) for host addresses it does lookup through /etc/nsswitch.conf so that is useful for that reason.
-
rennj
check local /etc/, then check nis+ tables on network, then check dns, nsswitch.conf had purpose back in day anyway... files nis+ dns was sweet...
-
rennj
resolv.conf nsswitch.conf combo
-
rennj
i had sweet 500 sun boxes spread over 9 floors 3 buildings, you could log in anywhere get unique desktop..and this was before winnt3.51
-
rennj
nis+ nfs made it all possibe
-
rennj
before freebsd or netbsd or openbsd..old ass tech....solaris 2.x tech..1991 and such
-
rennj
moving /etc onto the network yp/nis nis+
-
rennj
the network is the computer mantra
-
ghoti
rwp: I always like to make things portable if I can, and I believe nslookup is more universally consistent than host. I like FreeBSD's host better too, but I started with nslookup, so it's not uncomfortable.
-
ghoti
And yes, getent is great, just not for this task. :)
-
rwp
ghoti, Since I install bind-tools that's the same host command as with bind9-host that I install on Debian/Ubuntu/etc systems. So for me it is actually extremely portable.
-
rwp
And I just went looking and it looks like the other one I mentioned that was different has now departed the scene on Debian. So I guess I don't need to worry about it anymore.
-
rwp
When I worked on legacy Unix systems such as HP-UX they never had dig natively installed. It was only installed if I had installed it myself.
-
rwp
And so I fell into the routine of having host on those systems but no dig.
-
rwp
With nslookup example.com | awk '/^Address:/{print$NF}' one has to strip out the first address line which is the nameserver address line. Annoying!
-
rwp
I know I can | awk '/^Address/ && NR != 2 {print$NF}' to avoid it but I still find it an annoying format.
-
rwp
But I can see the argument that nslookup is pretty much always available.
-
cpet
nslookup isnt a thinkg its either drill or host
-
cpet
or you have bind-tools installed
-
rwp
Only getent and drill are in core. The others are all in ports.
-
cpet
do a which host
-
cpet
and rephrase
-
rwp
Let me phrase it like this
bsd.to/4ZTS/raw
-
VimDiesel
Title: 4ZTS
-
rtprio
drill?
-
rtprio
didnt know of that one
-
meena
rtprio: we've had it since switching to unbound in base
-
ixmpp
i just wish freebsd had iproute2
-
ixmpp
its the one thing i think linux got right
-
mage
what's wrong with ifconfig?
-
ixmpp
its a very weird interface by comparison. soon as i knew about `ip` i switched and havent regretted it, but now on bsd it feels like going back to the dark ages
-
ixmpp
i havent tried firewalling on freebsd yet so cant speak for how that compares to nftables, but
lartc.vger.kernel.narkive.com/IdY05qwn/iproute2-in-freebsd
-
VimDiesel
Title: Iproute2 in FreebSD
-
yuripv
"21 years ago"
-
ixmpp
ah, no wonder it references iptables :D
-
meena
"Ipfw has less bugs and more documentation as IPROUTE2." I think by now, iproute2 is well documented, and I'm sure it didn't take 21 years
-
meena
ixmpp: a BSD ifconfig can do everything that ip addr, and ip link can do. it also can be used to configure WiFi. and it can be used to read almost the entire state of a network device. something that on Linux people read Kernel virtual files in /sys/class/net/<dev>/*
-
ixmpp
it can, but ifconfig (while still being around on linux) is just not used on linux, because `ip` is just unarguably a better interface
-
ixmpp
not saying it's got more features, i just wish freebsd would adopt the interface
-
meena
yes, but: Linux ifconfig and BSD's ifconfig are just named the same. they're not even close in category of tool
-
meena
BSD's ifconfig is much closer in interface to Linux ip link and ip addr. the only difference is that ip route is a separate beast
-
ixmpp
huh, it has been a while but it seems to behave similar, at least
-
ixmpp
but yeah i noted having to go back to `arp` and friends, too
-
meena
first off: the output is completely different, and always has been
-
-
ixmpp
undoubtedly, but when i run ifconfig in both, looks pretty similar to me, and pretty different to the `ip a` output
-
meena
ifconfig, by default, is ip a + ip link
-
ixmpp
-
ixmpp
-
ixmpp
-
ixmpp
the manpages do reveal more of the differences though
-
ixmpp
i wonder if i'll ever like this over iproute2...
-
meena
🤷🏻♀️
-
meena
it's a solid interface that's been kept backwards compatible for decades.
-
yuripv
that emoji is "decomposed" for me :)
-
meena
It'd be pretty difficult port iproute2, because it's bound to be highly Linux specific. And while we have a lot of APIs (or KPIs) implemented from Linux, i don't if it's the right ones to just port iproute2
-
mage
and regarding nftables.. what's the status? last time I checked it it was still in development
-
meena
otoh, it would make more sense to do a clean room reimplementation for FreeBSD's native APIs, since the code is probably GPL, so we couldn't bundle it in base
-
meena
-
VimDiesel
Title: 🤷🏻♀️ Woman Shrugging: Light Skin Tone Emoji
-
mage
and regarding firewalls pf on FreeBSD is vastly superior to iptables
-
meena
mage: should be fairly usable
-
meena
-
VimDiesel
Title: 268717 – [pf] rdr rules don't work for traffic originating at localhost
-
cpet
Yay for peepee games
-
ixmpp
mage: nftables is "done" :) been using it some tim now, it's such a breath of fresh air over iptables, and there are compatibility layers, for stubborn programs
-
ixmpp
mage: what about ipfw?
-
mage
I haven't used ipfw so can't comment
-
cpet
and pf on openbsd is vasely better than the one in FreeBSD
-
cpet
who cares just use the one thats suites you
-
mage
true
-
ixmpp
hard to judge without having used both for a while
-
ixmpp
but i assume pf is closer to nft
-
yuripv
meena: yeah, I see a "man-shrugging", light rectangle, and "woman" sign; wonder if it's irssi not built with utf8proc
-
meena
except when you need it to use more than one CPU:
openbsd.org/faq/pf/perf.html
-
VimDiesel
Title: OpenBSD PF: Performance
-
meena
yuripv: I thought it's person-shrugging
-
cpet
openbsd isnt meant for speed
-
cpet
should of been your first read rather that one
-
ixmpp
meena: ipfw fan i take it
-
meena
yuripv: which terminal are you using it in?
-
yuripv
windows terminal
-
» yuripv runs
-
ixmpp
😱
-
meena
ixmpp: on the contrary :D
-
cpet
jesus christ these OS wars are stupid
-
meena
ixmpp: it seems whichever thing you start with in FreeBSD, you just stick with, forever. I started with pf
-
ixmpp
huh
-
ixmpp
ok
-
cpet
i like how you can have a relatively decetn fw using 6 options in rc.conf
-
meena
yuripv: weird, but might be because of mismatch between UTF-8 and Windows UTF-16
-
meena
I wonder if you can tell Windows terminal to expect UTF-8, or irssi to translate to UTF-16
-
meena
and then, it might just be that you need fonts which can display the full range
-
yuripv
meena: nah, i'm using ssh to freebsd box from windows terminal, so essentially it should be "xterm-256color", and likely has to do with FreeBSD's ctype data
-
meena
-
VimDiesel
Title: 268717 – [pf] rdr rules don't work for traffic originating at localhost
-
meena
so this is something that iptables and nftables can do, and is frequently used in container setups
-
meena
(just from the name, i would expect: no)
-
meena
(speaking of names: NFTables has to be retroactively the worst name ever)
-
ixmpp
hindsight 20/20
-
yuripv
why?
-
ixmpp
NFTs
-
» ixmpp ipfw set up 👍
-
Demosthenex
ok, so every few days when my laptop is idle (screensaver + monitors on standby), xorg will delete all the input devices. i can't recover w/o restarting xdm/X11.
termbin.com/fh1k any ideas?
-
llua
meena: even with a single core, openbsd's pf out performs freebsd's.
-
myappie
so why r ppl still using fbsd?
-
tsoome_
because they can and want?
-
cpet
R cause are is too hard
-
cpet
Always thought evinput adds and removes on the fly
-
myappie
imhaveto get go gone now
-
myappie
dont forget!
-
myappie
www.freebsddiary.org
-
debdrup
...
-
cpet
Old as hell haven’t heard that site in a long time it’s just like defcon1
-
jbo
zfs question: is there any benefit in scrubbing SSDs?
-
jbo
<insert_religious_arguments>
-
unimplemented
4 4 2 1 1 1 0
-
» meena imagines jbo actually scrubbing SSDs
-
cpet
No ssd don’t need that
-
jbo
alright, thanks
-
pdrvsk
I was thinking... is there any chance of 802.11ax working on freebsd?
-
V_PauAmma_V
Someone is working on adding WiFi features, but I don't know the specifics or the timeline.
-
cpet
Adrian as far as I know is our only Wi-Fi guy so
-
V_PauAmma_V
-
VimDiesel
Title: FreeBSD Status Report Fourth Quarter 2022 | The FreeBSD Project
-
pdrvsk
yeah... i need 11ax
-
pdrvsk
i think im gonna wait some time haha
-
cpet
In the bsd world good luck with wanting what you want without taking the initiative to help out
-
cpet
So factors will make wifi degrade regard
-
cpet
Less
-
V_PauAmma_V
Since the FreeBSD Foundation is sponsoring work in a related area, maybe get in touch with them and ask whether/how you can help make 11ax happen?
-
pdrvsk
V_PauAmma_V: yeah, ill do that
-
debdrup
jbo: scrubbing is the only way to check every single block (mirror, stripes with distributed parity, or ditto).
-
jbo
debdrup, sounds like scrubbing an ssd pool makes sense then
-
debdrup
jbo: all pools should be scrubbed.
-
jbo
debdrup, I know this is an open question but to get a bit of a reference/feeling: how often would one want to scrup a pool?
-
jbo
like once per day? once per week? once per month? ...?
-
debdrup
jbo: the default in FreeBSD is a threshold of 30 days; meaning once 30 days has passed since the last scrub, another will be triggered automatically. This is handled by periodic(8).
-
debdrup
llua: I'm gonna ask you to prove that.
-
jbo
debdrup, thank you
-
pertho
Question for anyone here: Have you ever deployed Web servers (with PHP) on FreeBSD and if so, do you find they perform any better or worse than Linux? The security benefits from jails are good to consider, but in terms of performance, has anyone done something like this?
-
debdrup
I'm sure you can find benchmarks that're immediately invalidated by having no mean, median and average values, along with data confidence intervals and student t's.
-
myappie
pertho: why php tho
-
myappie
why python tho
-
myappie
why all that shit yo
-
pertho
myappie: because some people run PHP web apps (not my personal choice, but required by $DAY_JOB)
-
plasma
FreeBSD is said to have better latency, which can result in better performance, depending on usage of the webserver, how many php script are run and such
-
myappie
for sho
-
debdrup
pertho: what issue are you trying to solve?
-
myappie
but you could still put in some effort to convincing your boss to rewrite from scratch
-
myappie
if u want, i can help u do it in ruby on rails right now
-
myappie
it's fucking *perfect*
-
myappie
*kiss kiss*
-
debdrup
myappie: XY problem.
-
pertho
debdrup: PHP under heavy load/contention.. if you have multiple forked php-fpm children contending for resource.. does FreeBSD do better in that aspect?
-
myappie
shit im late for an appointment
-
myappie
brb
-
debdrup
pertho: I don't imagine the difference is big enough to matter.
-
pertho
Linux is horrible under heavy load.. almost unresponsive
-
debdrup
FWIW, I've never had a FreeBSD system buckle under load, despite having load averages of +500 on occation when I've done something incredibly ill-advised.
-
pertho
just wondering if anyone else has had experience setting up "FAMP" stacks (instead of "LAMP") and if they've done lots of sysctl tweaking, etc
-
debdrup
pertho: I'd suggest setting it up, and if you run into issues, rootcause and address them one by one, instead of trying to out-guess it.
-
debdrup
If the website contains a lot of dynamic elements, you can always put varnish in front of it.
-
pertho
yeah varnish does save a lot of messing around
-
debdrup
It depends on the site.
-
debdrup
If you've got an entirely static site, varnish won't do anything for you.
-
debdrup
Well, no more than a regular http cache will.
-
pertho
yeah I know that
-
pertho
the best sites are those done without any PHP or Database.. static site generation for the win :D
-
debdrup
Somme of the biggest sites in the world are built on php with varnish in front of them, though.
-
pertho
but, apparently people are stuck in a 10 years ago paradigm
-
cpet
I don’t scrub my zfs pools I do scrub the pool that’s backed by old school drives though
-
cpet
Pretty much causing premature ware when the sad is more than capable of doing that with its firmware
-
debdrup
Read endurance isn't really a thing on modern SSDs, though.
-
debdrup
Write endurance is, but scrubs don't involve writing.
-
debdrup
And if you want good write endurance, you're already paying for drives with DWPD ratings - which most consummer disks don't have.
-
debdrup
plasma: that oft-repeated claim doesn't really mean anything - because it never mentions what latency is being measured. It can be disk latency, network latency, application latency - and all of those are affected more by delta and in particular long tail latency than people often think, especially if you're dealing with something that ends up being transported over TCP.
-
ketas
scrub is write op?
-
debdrup
It's conceivable that disk latency might be lower because FreeBSD doesn't have block devices - but that's a dubious distinction, because block device are fundementally the wrong way to go about disk I/O.
-
debdrup
ketas: what about what I said gave you that idea?
-
ketas
cpet had it
-
debdrup
Well, it isn't.
-
ketas
i've always assumed zfs scrub is read
-
cpet
Thought I had this fool on ignore
-
cpet
There we go
-
cpet
Scrub checks the drives for issues
-
cpet
Which in theory is not good for ssd
-
ketas
reading from ssd causes slight loss of cell charge iirc
-
ketas
but that's all
-
cpet
Well it’s my opinion and it’s what I do so bleh
-
myappie
yo what is varnish yo?
-
cpet
ketas: can I had some of that 181GB ?
-
ketas
i would still scrub the ssd
-
myappie
i know setupz like openbsd's relayd
-
myappie
and like this new thing, falcon
-
myappie
instant http/2
-
cpet
Wrong channel then
-
myappie
is varnish something like that?
-
cpet
But varnish is a cache system
-
myappie
cpet: oh no we all one fam, fam
-
ketas
and write is kind of...
-
myappie
aaaah i see
-
myappie
that makes sense
-
cpet
Varnish isn’t a proxy it’s more of a cache
-
cpet
But you can set it to use back ups and fed to x if y is down
-
ketas
i don't have myself
-
cpet
So yeah I guess it’s a proxy as well
-
ketas
so i can't give it to you
-
cpet
Ok
-
cpet
SCSI?
-
debdrup
Varnish is a dynamic HTTP accelerator, meaning it helps speed up elements of a webpage that change often.
-
debdrup
It won't do anything for static elements that a normal HTTP cache doesn't do.
-
cpet
pertho: you can tweak zfs to run on a gig of ram
-
meena
-
VimDiesel
Title: ⚙ D38193 rescue: Add fetch(1)
-
cpet
Despite my system having 32 gigs of ram I still teak it
-
debdrup
meena: ooo.
-
cpet
And I blame ketas for that
-
myappie
kewl
-
myappie
well
-
myappie
socketry.github.io/falcon is a little bit ahead of its time
-
VimDiesel
Title: Falcon
-
myappie
giving up trying to make it work on my setup
-
myappie
prolly have to wait 1-2 years for things to mature
-
myappie
its concurrency model is supposedly radically different from anything else such as www.puma.io or unicorn or whatnot
-
debdrup
Doesn't really have anything to do with FreeBSD.
-
myappie
fuck yeah
-
myappie
its for freebsd servers mayne!
-
myappie
any kinda server really
-
myappie
but
-
myappie
runs best on freebsd and we all know it :)
-
myappie
falcon is a lil bitspecial tho from what i gather, its the kinda tech we'll be seeing in a couple of years from now
-
myappie
that will be commonplace
-
myappie
like bye bye gz compression
-
myappie
hello broccoli!
-
myappie
i mean brotli
-
debdrup
-
VimDiesel
Title: FreeBSD Status Report Fourth Quarter 2022 | The FreeBSD Project
-
V_PauAmma_V
It definitely is. Earwitness here. :-)
-
debdrup
:)
-
myappie
VimDiesel: yo whens the next vin dieselmovie
-
myappie
riddick in particular, man that first riddick movie was like the first alienmovie-- timeless!
-
ketas
cpet tweaks because me
-
drg99
Hi, is there an official freebsd image for docker? I want to run an freebsd container on top of Linux
-
cpet
No
-
cpet
-
VimDiesel
Title: Docker - FreeBSD Wiki
-
cpet
Ugly but enjoy
-
drg99
cpet: seems like trouble
-
idwer
docker? install freebsd, set up a jail instead
-
idwer
done
-
mason
drg99: Running it in a virtual machine is pretty viable.
-
reppard
any guess as to why my system inits a shutdown when i remove ac power? i've disabled any and all suspend crap that i can find
-
drg99
idwer: I already have a Linux machine
-
mason
reppard: That's a puzzling notion. You pull the power cord and it stays up long enough for a graceful shutdown, or the start of one?
-
reppard
it looks like its a graceful shut down as far as i can tell
-
idwer
reppard: sounds like an ACPI trigger
-
idwer
this is on a laptop-style machine, I presume
-
reppard
idwer: it is
-
reppard
i was fishing through sysctl -A | grep acpi but nothing stood out
-
idwer
-
VimDiesel
Title: Using and Debugging FreeBSD ACPI
-
idwer
ASL afaik has fallthrough cases in its switch construction, so when an OS is advertised as non-windows (or non-linux) firmware can't instruct the OS to switch to battery mode
-
idwer
(something like that)
-
reppard
ty i'll give that a read
-
reppard
it almost seems like removing AC triggers an S5 suspend state event
-
V_PauAmma_V
... what does "ASL" mean in that context?
-
idwer
ACPI Source Language
-
V_PauAmma_V
Thanks.
-
» V_PauAmma_V was spinning in a tight loop trying to make it make sense with "American Sign Language".
-
reppard
it just made me think of irc circa 1994 (a/s/l)
-
idwer
-
VimDiesel
Title: Chapter 13. Configuration and Tuning | FreeBSD Documentation Portal
-
V_PauAmma_V
"Old enough to know better/Not lately/At my computer" :-)
-
debdrup
drg99: FreeBSD has its own kernel and userland, it's not meant to be peacemeal on top of another kernel.
-
debdrup
Oh, and its own libraries.
-
jbo
cccccbedrknjveneiiklbgdvkelfcnjitbdtickjttcb
-
jbo
excellent
-
V_PauAmma_V
Hi, kitty!
-
debdrup
Hello, cat.
-
meena
that cat looks suspiciously like a Yubi key
-
mason
Yubi cat?
-
cpet
What a maroon pastes his key on irc
-
cpet
Baha
-
mason
Must be coconuts to do that.
-
meena
cpet: it's a one time key that's valid for 90 seconds, and gets triggered if you touch it, whether you mean it or not
-
jbo
meena, I have no idea what you're talking about ;-)
-
jbo
meena, trying to setup a yubikey under FreeBSD for the first time. the CLI seems to work but the GUI seems to have some problems. does anybody use the yubikey-manager-qt package successfully?
-
jbo
cpet, I'd be that moron. I do feel like the stupid touch interface shares some blame tho :p
-
meena
I think i did, but it's been a while, and I've bricked that laptop since
-
jbo
lol
-
meena
well, not really bricked, just completely busted with an upgrade
-
meena
although I would blame PkgBase
-
jbo
just boot from your previous BE ;-)
-
jbo
bectl <3
-
meena
yes, see, that's exactly how i busted it, by not creating one, before running the upgrade
-
jbo
well, then I don't know what to say anymore (at least nothing that wouldn't sound like a snarky sarcastic comment)
-
jbo
afaik -RELEASE automatically creates a BE on freebsd-update tho.
-
meena
nope, you need to uncomment the last line
-
meena
also, PkgBase doesn't incorporate bectl yet, which, honestly, it should, but i don't know how to make it do that
-
jbo
hmm, I could swear that I have some hosts running 13.1-RELEASE which do create the BE automatically (these have been freshly installed from the 13.1-RELEASE image tho, not upgraded from previous major versions)
-
jbo
not sure what PkgBase is, need to read up on it.
-
meena
-
VimDiesel
Title: Unofficial FreeBSD pkgbase repository
-
jbo
uhm... so it's just another binary repo?
-
V_PauAmma_V
One that unifies base updates and packages.
-
V_PauAmma_V
(And maybe base initial installs in the future, if I read it right.)
-
meena
bsdinstall needs to be extended to support it
-
martinrame
hi, I need to connect to a RealVNC server (running on Windows), from a FreeBSD 13.1 workstation
-
martinrame
I
-
martinrame
I'm using tigervnc viewer and get "CConnection: No matching security types"
-
martinrame
Does anyone know a VNC viewer capable of connecting to RealVNC?, from freebsd?
-
cpet
Tiger should
-
martinrame
cpet: I've been reading about this and it looks like RealVNC uses "VINO" encryption, that's not supported by tigervnc.
-
cpet
Realvnc should be in ports
-
cpet
I just run my vnc with no security
-
martinrame
are you sure?, I couldn't find it
-
martinrame
cpet: yes, I also run VNC without security, but this time I don't control the server.
-
cpet
Oh that’s the legit one not the open source one
-
cpet
Run it through wine should be simple enough to run fine
-
martinrame
cpet: I did try, but doesn't work
-
cpet
Tried what ?
-
martinrame
cpet: realvnc client through wine
-
martinrame
cpet: it opens, but when I double click on the connection it does nothing.
-
cpet
Get a azure free client install real and have fun
-
cpet
Cancel when done
-
cpet
This is when I laugh when I see ms haters
-
martinrame
cpet: yes a could do that.
-
cpet
They offer free accounts to try but only the cheapest tier but you don’t need a main frame to run realvnc client
-
cpet
Or you can tell the dewd to run tiger
-
cpet
Hello sir can you run this program for me
-
rtprio
i thought realvnc was in ports
-
rtprio
but you can back off the security of the vnc server
-
rtprio
you can download the linux realvnc and try that
-
rtprio
i guess they don't have the java viewer anymore
-
rtyler
I'm doing some searching right now and coming up with ipfw only options, is there a pf-based approach which would allow for bandwidth limiting on a particular port or interview?
-
rtyler
er, interface*
-
V_PauAmma_V
man pf.conf and read the part about queueing.
-
V_PauAmma_V
(If you haven't already.)
-
debdrup
rtyler: dummynet works with both ipfw and pf in -CURRENT
-
rtyler
debdrup: how's bout 13.1-RELEASE
-
rtyler
V_PauAmma_V: I sees it, thanks
-
debdrup
rtyler: see previous message for answer.
-
debdrup
Package queueing is more for ensuring a specific type of traffic is always guarented to have the bandwidth it needs (the best example is as VoIP, which uses small packets and doesn't generate a lot of bandwidth, but needs it to always be available).