-
luke_jobless_sb
sorry, i should find my charger. don't wait for the post. probably tomorrow
-
Gnea
when setting up a RAID 1 situation, is there some sort of performance hit when utilizing UFS over ZFS on a created gmirror?
-
rwp
Gnea, UFS with gmirror is probably fairly close to the same performance as a ZFS mirror. But ZFS had extra work for robustness and so will likely always be just a little bit slower than UFS. Though I have not benchmarked them.
-
rwp
ZFS never rewrites in place. ZFS always writes a new block and then switches from the old block to the new block.
-
ivy
Gnea: if you're asking about ZFS on a gmirror - don't do that, you'll lose ZFS's ability to repair damage. ZFS has built-in mirroring
-
Gnea
ivy: that's what I was gearing toward. thank you.
-
rwp
Oh, I didn't think that was what was being asked! Right. Don't do that.
-
Gnea
rwp: it's okay, I hadn't gone into much detail just yet
-
Gnea
I appreciate your answers
-
Gnea
so, next question: does UFS have anything like what ZFS has for damage repair?
-
Gnea
or does the geom take care of that?
-
rwp
UFS is mostly a traditional Berkeley Fast File System and if needs to be repaired requires fsck to run on it and try to recover what it can.
-
rwp
Using gmirror will present a redundant storage to UFS but if the file system becomes corrupted then you can only fsck upon it to try to clean up the corruption.
-
rwp
Better to use a zfs in a mirror so that if data blocks become corrupted that it is detected by the extra zfs checksums and repaired from the good side of the mirror.
-
Gnea
Okay. So does ZFS just fix itself on the fly then withing having to unmount+fsck?
-
rwp
Yes. ZFS for the most part will automatically detect and automatically fix itself.
-
Gnea
That's awesome.
-
ivy
in fact there is no fsck for zfs at all
-
Gnea
Sold. "take my money!!"
-
rwp
If one tries to read something that has an underlying data corruption then it is detected and the other redundant block read instead and used to rewrite the corrupted block.
-
ivy
but for this to work you have to give individual disks to zfs - no gmirror, no hardware raid
-
Gnea
then that could result in a disaster
-
rwp
Periodically run "zpool scrub" where periodically is by one default every 35 days, run more often if you have cheaper hardware, and it will read everything explicitly to force the repair.
-
rwp
Gnea, "then that could result in a disaster" what part equates to the "then"? What did I say wrong?
-
ivy
(you can still use gmirror for the EFI and swap slices on your root disk - general advice is not to put swap on zfs anyway)
-
rwp
Do not put swap on zfs as zfs itself needs memory and if memory is needed then swap is needed and it can deadlock. The installer always puts swap on a gmirror on a separate partition.
-
Gnea
rwp: I was responding to "< rwp> If one tries to read something that has an underlying data corruption then it is detected and the other redundant block read instead and used to rewrite the corrupted block."
-
rwp
Okay. Why did that sound scary?
-
Gnea
would that not result in a hardlocked system? potential data loss?
-
ivy
ZFS checksums all data, so it knows which copy of each block is the correct one, it will never overwrite good data with bad data
-
rwp
-
rwp
-
Gnea
oh dear
-
rwp
-
rwp
Meanwhile what ivy said, zfs checksums all so as to know if a block is corrupted for some reason (disk / ssd / cables / cosmic rays from space).
-
Gnea
Cool, I just need to back out the root filesystem from the gmirror that I'm working on, then utilizing that space directly using zpool
-
rwp
I had zfs pull me through a nasty power hardware problem on one of my systems, things really looked grim, but after I figured out it was a bad power connector jiggling dropping power to the drives while they were writing I fixed that, ran a zfs scrub, and had 100% good data after repair ZERO data loss in a raidz2 array.
-
Gnea
Nice.
-
rwp
If you haven't done it yet I would start small with a test system using the freebsd installer and let it set things up as a baseline, play with it to become familiar, then read
wiki.freebsd.org/MasonLoringBliss/ZFSandGELIbyHAND to get more background, then *install for real*. I would not optimize before then.
-
Gnea
okay
-
luke_jobless_sb
i found my charger and it is kept yellow and not working.
pasteboard.co/3ZoJDyeKDYjX.jpg
-
luke_jobless_sb
maybe i should wait
-
luke_jobless_sb
it was dirt cheap that's why i bought it a couple of years ago. the price is now unreasonably high in Ebay. I think had searched it too often and sellers bulked up price, thinking that someone will buy it with the price.
-
luke_jobless_sb
Ok it appears that i used to use geli on coreboot
pasteboard.co/ywSiEZdV2foo.jpg
-
luke_jobless_sb
you see i forgot the password
-
rwp
You forgot your GELI password? I am sorry for your loss.
-
luke_jobless_sb
rwp: i still have a chance that this keyboard is too old to get my input correctly
-
rwp
I don't recall ever having a Thinkpad keyboard fail in such a way.
-
rwp
But honestly if you have had this system in storage long enough to have forgotten the password for it then what data could be on it of importance?
-
luke_jobless_sb
rwp: i have my own machine-free system
-
rwp
I had an X60 for a while but the scrunged keyboard drove me crazy and I gifted it away to someone else who could use it.
-
luke_jobless_sb
rwp: it is an excellent laptop. but the current price you see now on EBay is scam
-
luke_jobless_sb
i think there has been some discussion of choice of file system protection and installation options last time iirc. i would like to add one: geli + coreboot
-
rwp
eBay prices fluctuate. I always tell people that on the used market to only buy what they know. It's a buyer beware market.
-
rwp
Coreboot is always good. And for me Coreboot systems are the only systems that have what appear to be bug free UEFI booting. All of the vendors UEFI firmware I trip over bugs.
-
rwp
On a laptop using GELI+ZFS to provide for a full disk encryption is definitely the way to go.
-
luke_jobless_sb
rwp: well, my thinkpad does not seem to use uefi but coreboot is not bad. fast and look cool
-
luke_jobless_sb
it wasn't so toy project because i used it quite long. my modern laptop was broken and i had to go out to collect more dishes to buy modern laptop. during the time I had relied on it
-
luke_jobless_sb
i had gone through extremely hard time(still hard time but better) with this machine. very meaningful to me.
-
stdout
how many of you use FreeBSD with a DE on a desktop or laptop as your daily driver for work in the IT or development field?
-
stdout
I'm curious to try it but i've seen where distro's like GhostBSD have users reinstall the OS for some upgrades which makes me think that I'll need to really watch changelogs if I update a FreeBSD system with a DE and used as a workstation.
-
yamada
freebsd.org/where <-- that page seems to have a bug at 14.2
-
mzar
14.2-RELEASE doesn't exist yet
-
yamada
but the beta is downloadable
-
yamada
and the bug is for 14.2-current
-
mzar
OK
-
mzar
there is no 14.2-CURRENT
-
yamada
sure the beta is build from it
-
mzar
only 15.0-CURRNET
-
mzar
nope, build is from releng/14.2 which is derrived from stabe.14
-
mzar
* stable/14
-
mzar
BTW 14.2-STABLE looks fine to me
-
mzar
FreeBSD 14.2-STABLE (VBSD) #52 stable/14-n269449-46d30932876f: Fri Nov 1 08:20:26 CET 2024
-
mzar
it's been available for a while
-
foxxx0
is there a non-janky way to set the password hash of a user? I have some users that I'd like to recreate on a new host but I don't necessarily know their plaintext password. I do have access to the /etc/master.passwd though and can see their hashes just fine
-
foxxx0
do I just re-create them and then edit the /etc/master.passwd to paste the hash?
-
ivy
foxxx0: you can just copy+paste your old master.passwd entries into the new, no need to create the user first. then copy their home directories over too
-
foxxx0
alrighty, then I'll do that. thanks :)
-
ivy
remember to use vipw to edit master.passwd (or manually rebuild the databases afterwards)
-
foxxx0
mhm, hypothetically speaking, if someone were to just edit using vim ... how would one rebuild the database? (asking for a friend)
-
ivy
foxxx0: pwd_mkdb -p /etc/master.passwd
-
foxxx0
thanks :D
-
mzar
foxxx0: use vipw(8)
-
l00py
is it possible to partition up an external drive into 4 chunks so bhyve could run 4 vms off of it, 1 vm per chunk?
-
l00py
say 500GB chunks, 4 vms, 2TB external drive
-
ivy
l00py: if you don't want to use files (which is the easiest way), you could simply create four partitions on the disk
-
foxxx0
why would you want static partitioning instead of just raw files?
-
l00py
oh i can make bhyve store a whole vm's "disk" in just a file on the drive?
-
ivy
that's the usual way you would use bhyve, yes
-
l00py
right now i give bhyve zfs vols to back vms with
-
l00py
what would i format the external drive?
-
ivy
zvols are, for whatever reason, slower than flat files, so i use files even on zfs
-
ivy
(although there's nothing technically wrong with using zvols)
-
ivy
filesystem is up to you, i'd probably use zfs just because i use zfs everywhere
-
l00py
can i put zfs on the single external drive, and have it totally separate from my internal zfs on root mirror?
-
ivy
yes, just create a new zfs pool, see zpool(8)
-
l00py
that's so cool. tyvm
-
l00py
and you can make the flat files only be as large as they need to be, like a sparse zvol does?
-
l00py
so a 500GB vm "disk" is only 20GB in reality if that's all that it's written
-
ivy
yes, if you create them using 'truncate -s 250g disk0.img' or whatever you will get a 250GB sparse file that only uses a few KB on disk
-
foxxx0
weeee 846 MiB/s over cifs/samba \o/
-
l00py
amazing, tyvm
-
l00py
ivy if you have this 1 external ssd, would you have zfs store multiple copies or any special stuff to recover from a single drive?
-
l00py
recover from an error in the single drive*
-
ivy
no, if i cared that much about the data i'd use a mirror
-
l00py
ya
-
l00py
ok tyvm
-
ivy
copies=N is somewhat useless because if the disk's basic metadata is damaged, you can't import it to recover the data. that feature only really exists to handle a few bad sectors on laptop disks
-
ivy
(and by 'laptop disks' i mean old 2.5" HDDs more than SSDs)
-
l00py
ya that's what i was thinking, sectors
-
l00py
ok
-
ivy
basically if you have a 1TB SSD and want to use copies=2, just buy two 512GB SSDs and use a mirror instead, price is basically the same
-
foxxx0
I'd even argue 1tb is cheaper per gb than 512gb, so 2x 1tb won't run you that much more than 2x 512gb probably
-
ivy
also true
-
ivy
unless you buy your SSDs from Apple of course :-d
-
ivy
(yes, i've been looking at the SSD pricing on the new M4 Mac mini...)
-
foxxx0
sweat, maxxed out my 10G link over samba/cifs.
-
foxxx0
sequential reads and write both just flatline at 1.2 GiB/s now \o/
-
ivy
foxxx0: i can do that when zfs is reading directly from cache, but i've never managed it for disk i/o, that seems to top out at 600MB/s or so (on 8x raidz2, 7200rpm)
-
ivy
this HBA is quite old though, that could be the bottleneck
-
ivy
i suppose as each disk does ~100-120MB/s sequential write, that's not too far off what you'd expect
-
ivy
once day i will rebuild this pool using 8TB SSDs, but prices need to drop a bit first :-)
-
l00py
8TB ffs. i'm working with 2TB nvme and feel like a baller 8TB is galactic
-
voy4g3r2
ivy - the mac mini you have been specing.. have you "looked" at if there is anything out there to ugprade the hard drive on it? SO far i have seen.. basically you pick it and you can not upgrade it, like the ram
-
ivy
voy4g3r2: correct, the NAND and DRAM is soldered onto the CPU package so you can't upgrade it later
-
ivy
voy4g3r2: my plan is to buy the base storage config (256GB) and use that for the OS, then add a couple of Thunderbolt SSDs for data
-
voy4g3r2
this powerbook (12 years old) is getting long in the tooth...
-
voy4g3r2
when signal tells me, it will no longer support the OS.. i think it will be retired soon
-
ivy
the hardware doesn't even include an 'SSD' in the normal sense, the controller is on the SoC and it talks directly to the NAND
-
foxxx0
ivy: i do have 4x 7.68TB NVME raidz1 ... from my benchmarks those could even saturate a 40GBit/s link
-
ivy
voy4g3r2: i don't think i will buy the M4 though, my M1 is still working fine and i'd like to wait until FreeBSD has proper Apple arm64 support so i can repurpose this to a server when i upgrade it
-
voy4g3r2
ivy: a m4 pro withj 64 gig of ram does look real pretty
-
voy4g3r2
ivy: the 2200 price tag is up there with what i paid for this laptop in 2012
-
ivy
yeah, for CPU performance the M4 Pro is competing directly with the old M1 Ultra in the original Mac Studio, which is a pretty big performance bump
-
voy4g3r2
yeah, the intelligence stuff.. no thank you.. i got an ollama (in a bhyve) for that
-
voy4g3r2
now i am at the "ceiling" of, applications are depcrating support for applications i use
-
dch
need to grep for STRING\x00 but only print out STRING
-
dch
is this possible with BSD grep?
-
dch
I don't think BSD grep support lookaheads according to re_format(7)
-
ivy
i'd probably use sed for that (which i realise isn't really an answer)
-
dch
its a good answer for trimming \x00
-
dch
can i get it to do the search too ... mmm
-
dch
oh derp we have perl in base system, thats fine
-
dch
facepalm
-
ivy
yes, you want sed -n, then use a pattern to match the string, s// it, then use 'p' to print
-
ivy
# sed -n '/^root:/ { s/:.*//; p; }' </etc/passwd
-
ivy
root
-
ivy
something like this i suppose
-
dch
ripgrep does exactly what i need, scary fast, but not in base
-
dch
hah. I first do strings, then bsd grep is fine
-
dch
ivy: sed would work but is surprisingly slow over this 9gb file
-
ivy
that doesn't surprise me, i think your idea to use strings is better
-
dch
and grep has a handy -m (stop after N matches) which is a great find
-
phryk
getting a bunch of "GEOM_ELI: Crypto request failed (ENOMEM)." in dmesg. affected devices were part of gmirrors, which got degraded and don't add the geli partitions back to the gmirrors after the situation is resolved – anyone know how to fix this without adding them as new consumers to the mirrors and syncing from scratch?
-
phryk
in hindsight, i probably should have set up geli on top of gmirror and not the other way around, but i'd be glad for some bandaid in the meantime.
-
phryk
"geli: Cannot read metadata from /dev/gpt/down-a: Input/output error." nevermind, seems like i got more problems than that :'D
-
yashi
hi everyone, I have "13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 GENERIC amd64" an I'd like to have my sshd exposed to the public at port 22. moreover, i'd like to mitigate the security breaches this might introduce as much as i can.. e.g. i am seeing this in var/log/messages: "error: Fssh_kex_exchange_identification: Connection closed by remote host" and "error: kex protocol error: type 30 seq 3 [preauth]".
-
yashi
is there anything i should be doing about this? how about a standard tool to probe any vulnerabilities in my setup?
-
ivy
yashi: as long as you stay up to date on security fixes, you should have a secure (as much as possible) sshd. consider turning off root login and password authentication, which is good practice for any SSH server on the Internet
-
Hecate
yashi: seconding ivy, don't let people log in as root, nor with passwords
-
ivy
yashi: you should probably also be aware that FreeBSD 13.1 is EOL and no longer received security updates. so, don't put that host on the Internet, and upgrade to 13.4
-
spork_css
Do we have any old Thinkpad users in here? I'm trying to get one up to date with 14.1 and the new wifii stuff, but have hit an early roadblock with the keyboard.
-
spork_css
-
ivy
spork_css: i have an old Lenovo X240 here, not sure if that's what you mean by old
-
ivy
currently working fine on 14.something
-
ivy
i did notice it requires 'atkdb' for the keyboard to work, but that's in GENERIC
-
spork_css
After updating from 13.x (literally it's been sitting on a shelf for 2+ years), 14.1 works fine (no X though) but I literally can't login or do anything on the keyboard.
-
spork_css
Letters type fine, but when I hit "return", say to enter my username, it echoes something like "~5~~". The numpad "enter" works.
-
spork_css
Space bar also adds characters. To type a space I use the mouse to copy and paste a space. :)
-
spork_css
It reminds me of a slightly funky serial console with the wrong term type set.
-
spork_css
In 13.x it worked fine. Hard problem to google.
-
ivy
that's weird. might be worth asking questions@
-
spork_css
Unrelated to that, mine is 2015 vintage, how old is your X240?
-
spork_css
Are you using any of the reworked wifi stuff with it and is that working out well? I think I put this away because it had two main issues - doesn't wake from sleep and 2.4GHz-only wifi.
-
Teraii
is there a way to remove route when "gateway uses the same route" ?
-
Teraii
without reboot :)
-
foxxx0
what do you mean by that?
-
Teraii
i have a route with UG1 flag
-
Teraii
when route delete -inet6 fd00::2:0:0/96
-
Teraii
i have : delete net fd00::2:0:0/96 fib 0: gateway uses the same route
-
foxxx0
then you need to find out which other route is referencing this one
-
Teraii
i have allready removed the gateway
-
Teraii
the route with gateway
-
ivy
Teraii: can you paste the output of 'netstat -rn' somewhere?
-
Teraii
fd00::2:0:0/96 fd00::2:0:20 UG1 ---
-
foxxx0
I'd second the request from ivy
-
Teraii
(note the interface removed ---)
-
Teraii
no way to remove G flag ?
-
foxxx0
"route -6 del fd00::2:0:0/96 fd00::2:0:20" doesn't work?
-
foxxx0
possibly also try "route -6 del fd00::2:0:0 -prefixlen 96 fd00::2:0:20"
-
Teraii
same error message
-
foxxx0
then we'd need a more complete picture with the output of 'netstat -nr'
-
Teraii
-
foxxx0
I think your issue might be fe80::%lo0/10
-
foxxx0
fe80:: link-local routes are supposed to be of prefix-length 64
-
foxxx0
fe80::/10 includes all of your fe00:: routes
-
foxxx0
err, nvm.
-
foxxx0
scratch that, haven't eaten today >.>
-
Teraii
=)
-
Teraii
all fe80are automated LL :)
-
Teraii
all fe80 are automated LL :)
-
foxxx0
how did you add that route? .... well there they go
-
mzar
it's probably PINNED route, with protection
-
foxxx0
I'm guessing at some point there was a route for that gateway, otherwise it wouldn't be a valid nexthop
-
foxxx0
and then just deleting that gateway route invalidated that /96 route as the nexthop is now invalid, not sure why it wasn't automatically cleared up?!
-
mzar
probably dirrect connected route
-
Teraii
lost my zenitude and reboot :)
-
foxxx0
welcome back Teraii , we were asking how you ended up in that situation. did you have a manual route for 'fd00::2:0:20' at some point?
-
foxxx0
otherwise you wouldn't have been able to use it as a gateway, right?
-
Teraii
indeed
-
foxxx0
or did you have a direct link with a subnet/prefix, that contained fd00::2:0:20 as directly attached?
-
Teraii
reboot has removed the route O:)
-
mzar
we are not progressing much with troubleshooting Teraii
-
Teraii
there was a route with fd00::2:0:20
-
foxxx0
in that case, the solution would probably have been to re-add a direct route for 'fd00::2:0:20' as directly connected to an interface, or possibly temporarily re-adding a prefix containing that, to then subsequently remove the static route first, and then the gateway route
-
Teraii
but when removed the route with fd00::2:0:/ was not removed
-
Teraii
/96
-
Teraii
but when removed the route with fd00::2:0:0/96 was not removed
-
Teraii
even when interface was destroy (tap1)
-
foxxx0
personally I'd expect that route to get purged in the same operation, but I'm not too familar with the routing table internals on freebsd. more of a linux user here
-
mzar
since a while we can use multipath routing, so routes have now "weights"
-
Teraii
the route was learned via bgpd
-
Teraii
and i'm correcting some structure mistake here :)
-
mzar
you have to filter it next time
-
Teraii
ho yes
-
Teraii
forget that
-
mzar
it's not possible to remove by hand all routes added by routing deamons
-
mzar
when you add it by hand, you should be able to remove it in the same way
-
Teraii
ok
-
mzar
it's connected with the transition from rtsock to netlink
-
mzar
-
Teraii
well
-
Teraii
we will reboot to force deletion ...
-
Teraii
sometime there is no other solutions :)
-
mzar
yes, but filtering them in BGP will prevent that
-
mzar
Teraii: what are you using as routing deamon ?
-
Teraii
openbgp
-
spork_css
@ivy: well, booted into Windows and the BIOS and same keyboard issue, so I guess it's a Thinkpad issue, not an OS issue. Also clearer in Windows is that it's doing either a PAGE UP or HOME and *then* the carriage return. Very weird.
-
zip
welp turns out if git fails to clone something it'll just tidy up after itself by deleting
-
zip
1.6gb and half an hour later\
-
zip
'sake
-
l00py
so let's say i got an external drive i want to format zfs and then put bhyve vm flatfiles on. i plug the drive in then check gpart show to get its dev id like /dev/da1?
-
ivy
l00py: after you plug the drive, check 'dmesg' is the easiest way to find the new device node. then run 'camcontrol devlist' and make sure the model/serial displayed matches what you expect. then partition the disk with gpart
-
l00py
like gpart create -s GPT da1?
-
ivy
if it didn't come with an existing partition table (meaning it doesn't show up at all in gpart list) then yes
-
ivy
i mean gpart show, not list
-
ivy
although if you're planning to use it with zfs, don't use gpart
-
l00py
if it comes with 1 it's safe to use it?
-
ivy
just create the pool directory: zpool create mydisk /dev/da1
-
l00py
oh ya i want to use with zfs
-
ivy
s/directory/directly
-
l00py
wow
-
ivy
well
-
l00py
so 'mounting' hardware is as easy as mounting a dir?
-
ivy
it might be worth deleting the partition table in gpart first
-
ivy
so 'gpart destroy da1' then 'zpool create mydisk da1' (as long as you're sure da1 is the right disk!)
-
ivy
l00py: i'm not sure what that question means exactly
-
yashi
what is the easiest way (akin to pkg install ...) to upgrade 13.1 to 13.4?
-
l00py
ivy "mydisk" is like "zroot" right?
-
ivy
l00py: yeah, that's the name of the pool
-
ivy
so call it 'data' or 'data1' or 'disk1' or... you know, whatever name you like
-
ivy
yashi: freebsd-update fetch; freebsd-update install; (read what it tells you); reboot; freebsd-update install; (read what it tells you); freebsd-update install; (read what it tells you); pkg-static upgrade -f
-
ivy
you may need -r 13.4 somewhere there, i honestly haven't used freebsd-update for years
-
l00py
ivy tyvm. readingman zpool-create rn
-
ek
Shouldn't need the "-r" arg for freebsd-update if it's isn't a upgrade. A simple update will do.
-
ZedHedTed
ek: he said he wants to uppgrade from 13.1 to 13.4
-
ivy
yeah, i think even minor release upgrades require the -r? like i said i don't really remember...
-
ek
ZedHedTed: That's not an upgrade, though. Technically, it's just an update (same major RELENG.)
-
ivy
maybe someone else has a more useful answer :-)
-
ek
If he wanted to "upgrade" to 14.1 or something, he'd use "upgrade -r 14.1-RELEASE" as well.
-
ZedHedTed
ek, ivy: what's the correct term? minor release upgrade or update?
-
ZedHedTed
i'm new to freebsd
-
ek
ZedHedTed: Same major RELENG would just be an update (when referring to the use of freebsd-update, I guess.)
-
ek
I've also heard really good things about sysutils/freebsd-rustdate. Apparently, it's much faster than freebsd-update. Of course, it isn't in base, though.
-
ZedHedTed
ooh a rust port of freebsd-update?
-
ivy
why use that when you could just use pkgbase
-
ivy
freebsd-update is dying, it has one maintainer who hates maintaining it and it's going away the moment we get pkgbase as default (maybe in 15.0-RELEASE)
-
ek
ivy: I'm sure hoping pkgbase becomes the norm in 15.
-
l00py
me too!
-
l00py
the future is now
-
ZedHedTed
for 14.x, am i better off learning upgrade instead of freebsd-update?
-
ivy
ZedHedTed: what do you mean by "upgrade"?
-
ZedHedTed
ivy: wait i think i meant pkg-static upgrade. i missed that part. reading pkg-static's manpage noqw.
-
ivy
pkg-static is just pkg but not linked against dynamic libraries, so it's more likely to work after an upgrade
-
ivy
e.g this was recently required when 15.0 bumped libmd.so.6 to libmd.so.7, installed pkg still needed libmd.so.6
-
ek
ZedHedTed: Have you looked at the FBSD Handbook yet? It explains everything you need to do with freebsd-update to update to the latest 13.X and to upgrade to 14.X.
-
ek
You won't need to run a pkg-static -f upgrade when going from 13.x to 13.x, but you will going from 13.x to 14.x.
-
ek
You'll likely need to upgrade to the latest 13.x before going to 14.x, though.
-
ek
At least, that's always been recommended.
-
ek
"freebsd-update fetch install" and follow the directions.
-
ek
Once you're on the latest 13.x, run a "freebsd-update upgrade -r 14.1-RELEASE" and then follow those directions.
-
ek
Hrm. Tempted to migrate to Wireguard but I don't like the fact that subnet access is controlled from the client/peer side.
-
ivy
ek: it's not?
-
ivy
AllowedIPs on the client just controls what packets it's willing to send over the link
-
ivy
it's basically a hint to the local system about what to send over the VPN, similar to pushed routes on openvpn
-
ek
ivy: I've been looking through some docs trying to find out how to limit access to different subnets from the server-side but I can't seem to find any info.
-
ivy
ek: you would use a firewall (like pf) the same way you would with any VPN, basically
-
ek
ivy: Right. I understand that. But, if the client does route those subnets, it's seems WG will route them without any limitations. So, if the client were privy to the network, they could access anything they wanted?
-
ivy
like if you hand addresses from 192.168.0.0/24 to your IPsec road warrior clients, you firewall what 192.168.0.0/24 can access, right?
-
ek
I'll have to test it all out, I suppose.
-
ek
Yep.
-
ivy
so that's exactly the same in wireguard
-
ek
But, say I'm using OpenVPN, I can choose which subnets on the network to allow a client to access in it's config instead of the firewall.
-
ivy
yeah, you can't do that in wireguard. i'm not familiar with openvpn but i suppose this works more like ipsec
-
ek
Yep. Seems that way (which is fine.)
-
ivy
how do you control this in openvpn, btw?
-
ek
Not sure I want to create firewall rules per WG client, but I'll just go ahead and play with it and see what I can come up with.
-
ivy
i actually have used openvpn but probably not for 20 years
-
ek
ivy: You can set which IPv4/v6 networks you want to allow clients to access in the server configuration.
-
ivy
ah. sort of makes sense wg doesn't do that as it's kernel based
-
ek
That's my guess.
-
ek
I just liked that I could configure it server-side to allow all subnets, then limit each client's access via the client-specific-overrides.
-
ek
So, for myself, I can access everything. But, for a friend that just needs VPN for a specific thing, I can limit them to the VPN subnet or whatever.
-
ivy
you can still do that in wg as all IP assignments are static, fwiw
-
ivy
(i actually wish wg had dynamic IP assignments, but... it doesn't... so that's what it is)
-
ZedHedTed
thanks ek
-
ZedHedTed
i will keep reading the handbook. next, it's time to boot back into nomadbsd, and see how well things go w/ the iwm driver!
-
ZedHedTed
the stock wifi card used rtw880, but had problems establishing and maintaining a connection to any SSIDs i own. so i swapped out the wifi card w/ a 7265 i scrapped from a chromebook.
-
ZedHedTed
actually no. i need to charge the laptop first.
-
ek
ivy: Yeah. I always assigned IP's statically in OVPN anyway just to keep track. But, it does allow dynamic which is nice for larger environments.
-
mzar
recently our openvpn is kernel based too
-
mzar
see opvn(4)
-
mzar
they behave the same with regard to routes added by clients
-
mzar
neither of them filters such routes - vpn is not firewall
-
mzar
firewall rules have to be set to deny clever clients abusing VPN
-
mzar
openvpn allows loading dynamic rules when the client connects, I am not aware of such a scripts for wireguared
-
mzar
wireguard*
-
zip
well, I sure am learning fast
-
zip
the zfs VM image does not have a lot of extra space
-
ivy
there's a zfs vm image?
-
ivy
zip: you can expand zpool on disk
-
zip
so I've had to (1) expand it with qemu-img (2) use gpart to fix the record so it can see the new space (3) tell it to expand the last partition into that space and then (4) tell zfs to use that space for zroot
-
ivy
as long as you make the partition bigger
-
zip
this is a part of a longer and sillier project to cross-compile the base image for armv7
-
zip
seeing as the damn armv7 device itself does not appear to be able to doso
-
zip
anyway I think I'm starting to get a feel for why people like FreeBSD
-
zip
it's like zfs and jails do a kind of different slice of the cloud pie
-
zip
like sure you can set up kubernetes and docker and have your lovely reproducible builds and your moveable services and that's lovely until you realise that where the fuck do you store your data
-
zip
whereas jails are like, okay so you have a system that's been running since 2004 and you want to get it off linode or whatever, and you can just tarball that sucker up, pop it in a jail and resume as though nothing had happened
-
zip
or, indeed, you can `zfs send` stuff around the place
-
ivy
zip: i mean freebsd is not incompatible with containers, there's podman for example, but generally yes it's a more traditional sort of approach
-
zip
so sure I can't do evil insane stuff like, uh, `podman run --rm -ti quay.io/curl/curl:latest --
freebsd.org`
-
zip
but also most of the time what I wanted out of containers was, well, containment
-
zip
well, we'll see how I feel once I've had to upgrade a jail and/or its jailed contents I suppose
-
foxxx0
I don't suppose one of you folks has some insight as to why a win11 client is only achieving ~95 MiB/s sequential write speed to a 10GBit/s samba share? the same win11 client can read from the same share just fine at 1.1 GiB/s, and other clients can write to that same share at 1.1 GiB/s too, just the windows->samba write is painfully slow
-
foxxx0
iperf3 between win11 client and freebsd14.1 server is achieving 9.3GBit/s in both directions