-
rdr
I installed FreeBSD, I found the Free part, but where is the BSD?
-
SponiX
rdr: I think the BSD is hidden in the kernel mainly, and the base userland. The Ports are a mixed bag
-
LXGHTNXNG
xd
-
o0x1eef
ant-x Create your own AI that consumes all official docs and man pages. Not that hard.
-
Grell
Hello all
-
Grell
how is everyone at 04:47:08 EST
-
o0x1eef
ant-x I wrote this pasted on your comment, you could also add handbook search as well, and you'd have a pretty good FreeBSD knowledge source that's grounded in official docs
0x1eef.github.io/posts/how-to-build-a-man-page-agent
-
polarian
I was looking at network filesystems and got a little despressed when I realised just how insecure it gets
-
polarian
so NFSv4 is "secure" but is rarely used, NFSv3 being the main one in use, but most of the time its on local networks so its fine, ditto smb/cifs
-
polarian
but recently a group of people I know have been having issues sharing files
-
polarian
mainly recordings, and the best way to share them is to upload it to a single network share...
-
polarian
but that opens a massive tin of worms
-
polarian
NFS+wireguard, smb+wireguard, webdav (with it without wireguard, as it has tls encryption)
-
polarian
sshfs also exists, but isn't fun to use if you aren't on Linux or BD
-
polarian
BSD*
-
polarian
NFS support for other OS I am not too sure about, but I know smb and webdav works natively on Windows/MacOS
-
polarian
smb being the best supported, but security concerns, so wireguard is the only real choice here, and then webdav just works (same protocol used for nextcloud network shares for those who are unaware) but it requires importing a module into nginx, which gets annoying as its not always in the repos of many distros
-
polarian
I dont know about freebsd support for any of this shit either...
-
polarian
tl;dr, what do you folks use? If you had to network share over clearnet what would you do?
-
polarian
(has to be normie friendly too)
-
ivy
polarian: NFSv4 is no more secure than NFSv3, both support Kerberos. in NFSv4 you get TLS as well, but that's still pretty uncommon
-
ivy
also no one should be using NFSv3 anymore... the only common implementation i'm aware of that doesn't do NFSv4 is the Windows client, but there's a third-party client (ms-nfs) that does v4
-
polarian
ivy: afaik NFSv3 does not have TLS, NFSv4 supporting TLS makes it somewhat viable to clearnet it
-
polarian
the issue with NFSv4 is nobody fucking uses it
-
polarian
NFSv3 "just works"
-
polarian
ivy: Windows is one major reason for NFSv3's continued use, as you said, no native support, and the average company is hesistant to adopt something not natively supported
-
ivy
i don't think that's accurate... based on questions i see on fs@, more people there are using NFSv4
-
ivy
the Windows server does support v4, it's only the client that doesn't
-
polarian
ivy: yes tech nerds who know a thing or two about security
-
polarian
afaik the industry still uses NFSv3 because "it just works"
-
polarian
also a lot of industry use of NFS is on local networks, not over WAN, thus the lack of encryption is less of an issue
-
ivy
NFSv3 doesn't lack encryption...
-
polarian
I thought it does?
-
ivy
security with NFS is nearly always done with Kerberos - TLS is still not widely used, although i think adoption is increasing
-
ivy
and NFSv3 works fine with Kerberos
-
polarian
ivy: wasn't Kerberos support added in v4 though?
-
polarian
hmmm
-
ivy
no
-
polarian
didn't know that
-
ivy
you can also secure NFS with IPsec, but i've never seen anyone actually do that in practice (but i'm sure someone is)
-
polarian
I did list above wireguard, which I would prefer over IPsec
-
polarian
IPsec is just more complicated, thats all
-
polarian
ivy: also isn't smb better supported than nfs on Windows/MacOS?
-
polarian
I honestly haven't used NFS on a non-unix system
-
ivy
Windows yes, Mac is terrible at both
-
polarian
lol
-
polarian
Apple explicitly states it supports smb though :p
-
polarian
*sigh* whenever Apple enters into a conversation it is never for a good reason :(
-
ivy
also, IPsec can be easier for a large number of systems because you can automatic key negotiation with IKE ... Wireguard doesn't really have a good equivalent to that
-
polarian
sure, but small group of people
-
polarian
wireguard much easier for that :)
-
polarian
ivy: webdav just works though
-
polarian
I know that
-
polarian
but I really hate web
-
polarian
I have seen webdav work on all 3 major os
-
polarian
the annoying thing is you need an nginx module, and httpd (openbsd) doesn't support webdav, so you typically need to run two webservers on OpenBSD for it :/
-
polarian
or use relayd
-
polarian
and correct me if I am wrong but I dont see the nginx dav module within the port tree :/
-
polarian
maybe its within the nginx port as an option
-
polarian
ahhh it is, okay that makes it easier
-
hodapp
yeah, I just feel like WebDAV is like that one friend where someone will go "I mean... I guess we could invite WebDAV..." and everyone kinda squirms and goes "yeah, I guess we could..." and tries to look for an excuse not to
-
polarian
and HTTP_DAV is within the default options too, so this is actually piss easy to do on FreeBSD
-
polarian
hodapp: but it just works :p
-
ivy
how do you mount webdav? fuse?
-
polarian
yes
-
polarian
theres a fuse module for it
-
polarian
fusefs-webdavfs
-
hodapp
polarian: yet SOMEHOW, no one ever wants to invite WebDAV
-
polarian
yup its a "ugh" moment :p
-
polarian
surprisingly a lot of people I have spoken about webdav with didnt realise you can use nginx to setup webdav, and you DONT need to use nextcloud
-
polarian
and webdav is used a lot with nextcloud as nextcloud struggles to handle big files through its web UI
-
polarian
so you inevitably mount it as a network share
-
hodapp
I am glad to have just shitcanned NextCloud some months back
-
polarian
but yeah network sharing seems like a hell of a tin of worms
-
hodapp
it was full of things that just never ever quite worked right
-
polarian
ivy's suggestion is what I essentially knew, overlay the protocol with encryption
-
gbon121
there's also mod_dav in apache
-
polarian
I was curious if anyone else had some fancy alternative
-
polarian
gbon121: who uses apache anymore?
-
hodapp
even little things like wanting to put it behind my reverse proxy with TLS, and most things handle this fine, and NextCloud just goes "NOW YOU JUST HOLD THE FUCK ON" and random things fail left and right
-
ivy
i use apache everywhere, works fine, does everything
-
polarian
ivy: seriously?
-
polarian
I thought nginx killed apache
-
polarian
I haven't seen someone use apache for years :p
-
hodapp
so I switched to Immich for photo stuff, and Radicale for CalDAV/CardDAV
-
hodapp
polarian: I thought caddy killed nginx
-
» hodapp hides
-
polarian
oh there is one issue with nginx webdav though...
-
polarian
hodapp: lol
-
polarian
I dont see caddy much, I know it has a loyal userbase
-
hodapp
I set it up internally and the built-in "automagically renews your goddamn certs" support is very very handy
-
polarian
re: issue with nginx webdav, is basic auth
-
polarian
ugh
-
polarian
basic auth is a pain in the arse
-
polarian
I use nginx webdav for a maven repository, as its more simple and lightweight than all the bloated solutions
-
polarian
however the most annoying thing is hashing the user and password, and ensuring not to catch the whitespace in the string
-
polarian
so many userspace commands will insert a \n and you dont want that hashed
-
polarian
the number of times I have forgotten the \n and smashed my head on the desk not understanding why I am getting authentication errors :p
-
polarian
sorry forgotten to remove the \n :p
-
polarian
hodapp: I hate tls cert renewals, always breaks, and I get why people like caddy for that, but when you run email, and irc etc... you end up deploying a different solution anyways...
-
polarian
caddy renewals are useful if you are only doing web
-
polarian
acme.sh used to be good, but in the last 1-2 years its throws errors like crazy, and none of the dns api's I use work
-
hodapp
polarian: it's been reliable for me, even for DNS-01 so I can have a wildcard cert for an internal-only subdomain I made
-
polarian
certbot just works, but I dont like how it shits into /etc
-
polarian
I am a fan of OpenBSD's acme-client
-
polarian
sweet and simple
-
hodapp
at one point I was doing an internal CA but was just so sick of Apple's dumb rules on custom CAs/certs
-
polarian
but in all honesty I haven't found a good acme solution yet, I am on the verge of writing my own
-
ivy
i wrote my own ACME client using uacme, using GSS-TSIG (Kerberos nsupdate) for dns-01
-
ivy
works pretty well
-
polarian
I use jails and vms a lot, and need to share certs between them, so I have been tempted for years to attempt my own basic acme client, which has a master (the host) and then can distribute certs to jails and vms with some sort of ACL to grant permission to each cert or something
-
polarian
idk, it would make life so much easier, right now I have it scripted
-
ivy
i use ACLs on the DNS server for that
-
polarian
but this requires root to inject the cert into the filesystem of the jail
-
polarian
and I dont like doing that
-
polarian
and for VMs, it has to be done over sftp, and that means all vms MUST run ssh
-
polarian
and thats just annoying
-
polarian
ivy: wdym?
-
polarian
like explain with more depth
-
polarian
im interested
-
ivy
polarian: dns-01 uses TXT records, so i use ACLs to control which hosts can create which txt records
-
polarian
ah right
-
polarian
ivy: your uacme is different than the public uacme?
-
polarian
the well known one
-
polarian
or is it that?
-
ivy
e.g. update-policy { grant EXAMPLE.ORG. krb5-selfsub . TXT; }; means any host can create records for its own hostname
-
ivy
polarian: it uses the normal uacme which is in ports
-
polarian
ivy: oh wow, thats your project?
-
ivy
no, i wrote my own client that *uses* uacme
-
polarian
OHHHHHHHH
-
ivy
mine is security/lfacme
-
polarian
im stupid
-
polarian
:p
-
polarian
I notice sthen has contributed to uacme O.O