-
elsheepo
demido, ditch AOL dial-up, go broadband
-
elsheepo
is there a torrent alternative?
-
elsheepo
those are typically faster
-
demido
i have fiber that's not the issue
-
elsheepo
lol, I just jk :p
-
demido
wg server cpu does take a hit. i was mashing return in top to try to get a realtime view and its average was like 30% idle. sometimes as low as 0, high as 50 ish. wg client mostly idle
-
demido
is there a more precise, faster running cpu utilization prog for fbsd than top?
-
ek
demido: It looks like you're hosting the WG server in a jail? (There's nothing wrong with that.) When you try to fetch the same ISO from that jail, do you get the speeds you'd expect?
-
demido
no wg server is running in a VPS tho
-
ek
Also, how are you connecting to WG from the client? Is it via wifi? Wireless? Wired? Wired on the same network?
-
demido
wired from my lan across inet to VPS host
-
ek
You're saying client (without WG) can rx/tx fast as well as VPS rx/tx (without WG) can also transfer fast. But, just between the two (with WG) transfers slowly?
-
demido
ya
-
demido
and even this iperf test shows pretty fast over tunnel between them which is weird
-
ek
How are you performing the transfers? What protocol?
-
ek
What happens when you try to, say, scp something between the two?
-
demido
from wg client, if i sftp to wg server (i think that goes over tunnel too?) i can dl iso from wg server fast
-
demido
lemme try
-
ek
If you're using 0.0.0.0/0 as the allowed IP's from the client, that will route everything through WG. So, yep.
-
demido
ya sftp to 10.10.11.1 (wg server, over tunnel) it's fast
-
ek
sftp or scp?
-
demido
sftp
-
ek
I suppose it doesn't really matter. That means WG (or encryption or compression or whatever else over WG) isn't the problem. There's something else.
-
demido
ffs what could it be
-
ek
What are you doing that's going slow?
-
demido
when from wg client i try to curl freebsd ISO (debian ISO too) through wg server it's slow
-
demido
like 80 hours to dl slow
-
ek
Are you sure it isn't the source of the ISO?
-
ek
If you try to pull the same ISO from the WG server, what happens?
-
demido
well that's what i thought but i did the same curl downloads from wg server directly and it was fast
-
mason
elsheepo: Opinions: All are worth using. NetBSD provides a lot of tech to the other two. OpenBSD is upstream for some nifty ideas. FreeBSD has the best ZFS integration, although NetBSD's not far behind. Dragonfly is kind of innovative and a nice community.
-
ek
demido: If you fetch the ISO to the WG server, then transfer from WG server to client (however you see fit) does it go slow?
-
demido
well that's what i did with the sftp test
-
demido
i sftp transferred the wg server iso down to client
-
demido
should i try to sftp direct from freebsd site from wg client?
-
ek
demido: Yes. Absolutely you should.
-
demido
got d/c
-
demido
is it sftp download.freebsd.org or?
-
demido
i tried and it said port 22 network unreachable
-
ek
Probably no sftp option since FTP has been pretty dead for years (and may the culprit here. Not sure.)
-
ek
-
ek
-
demido
well ya that's what im doing to see that it's slow. curl -GL url -O
-
ek
demido: No matter what you try to pull from the internet while using the WG gateway from the client, it's slow?
-
ek
But, between both the client and the server, it's fast?
-
demido
yep
-
demido
and you see my 'whole' pf config in
termbin.com/et91 so i don't think i have that messed up
-
ek
Well, I'd say it's definitely not WG then. Likely something else that monitoring the traffic.
-
demido
termbin.com/07dl is networking info from wg client (a debian box)
-
ek
I saw that. Doesn't look like it would cause any problems.
-
demido
ya hmm
-
demido
my isp never throttles anything so i don't think it's that. i contact vps provider but all they said was cpu was getting pegged and to upgrade. said they don't filter any net traffic
-
ek
But, it could also be a limitation on concurrent traffic from the VPS. Perhaps they won't allow certain transfers like that to stop people from doing what you're trying to do?
-
ek
Hrm. If CPU is getting pegged, that'd definitely be a problem. I'm not sure why it would be. Not like the VPS would be doing much just transferring traffic.
-
ek
I have to leave to meet some friends for a bit, but I'll be back later. Hopefully, you figure it out. If not, maybe I'll be able to help poke around a little more.
-
demido
well i guess wireguard eats some cpu *shrug*
-
demido
ok tyvm
-
demido
have fun
-
demido
ok you guys won't believe this
-
demido
so i tried
forums.freebsd.org/threads/wireguard-vpn-slow-speed.73490/post-584231 and the speed from wg client is now almost as good as from wg server. cpu usage goes up to same amount on wg server, ~35-40% usage, whether downloading from wg server or wg client
-
demido
why do i have to disable those things to get freebsd to be a decent wireguard server? and that was 3 years ago but still not fixed?
-
demido
-
demido
-
demido
i narrowed it down to only needing hw.vtnet.csum.disable="1" and wg client downloading ISO about as fast as wg server can
-
mjp
man thats an annoying default value
-
mjp
i've always seen it recommended to disable NIC hardware offload stuff, when is it ever useful?
-
demido
ya sure wish the bugs could just get fixed
-
demido
-
demido
all the same issue it seems
-
demido
-
demido
anyone know if Tom Jones is on any irc networks? he seems interested in fixing the issue and i wanna offer to help him
-
demido
-
kevans
demido: yeah, he goes by [tj] on efnet (and here, too, perhaps)
-
kevans
note that he's scottish, so ~GMT-ish
-
» kevans double checks that that's basically public knowledge and that he didn't just out Tom as scottish
-
kevans
i mean, he basically spells that out on the front page of his website, so that seems fine
-
demido
ok tyvm i'll reach out and hopefully we can put 15 years of this bug to rest
-
demido
kevans know if efnet has a working webchat url? the network seems almost dead
-
johnm
pw groupmod super_bowl_lix_champions -d chiefs
-
demido
ah yea all those sweaty guys in tights fighting over balls for millions of dollars it's so heterosexual
-
fink
someone didn't get invited to the cookout
-
demido
s/cookout/cockout
-
BarnabasDK
open question, have anyone looked seriously into having the freebsd kernel do native kubernetes, or is that just a step too far inbetween linux and *bsd
-
BarnabasDK
I sort of expect it is
-
monoxane
BarnabasDK from what ive seen theres a patch to run the kube control plane on bsd but theres no supported container runtime yet so you cant run workers
-
BarnabasDK
and understandibly so, but it would still be nice
-
monoxane
I played around with the idea a while ago but gave up lol
-
BarnabasDK
no it ties closely to the kernel
-
BarnabasDK
monoxane, makes sense
-
BarnabasDK
I am a developer, not that good though
-
johnm
BarnabasDK: I'm assuming it's still available using bhyve? (not a dev myself)
-
BarnabasDK
I just think the debian core os is getting more and more cluttered, and if you could run your images in FreeBSD it would be super cool
-
BarnabasDK
bhyve, yes, but then it is a linux kernel on top of a bsd kernel
-
monoxane
oh if you're after a slim linux distro for kube, just use talos :P
-
johnm
copy
-
monoxane
literally only has kube + containerd + an api for management
-
BarnabasDK
I know I could run a linux kernel via bhyve
-
monoxane
but yea it would be nice to be able to run it on bsd with linux compatibility and jails instead of cgroups
-
BarnabasDK
it is sort of crossing the stream to get water
-
monoxane
but no one has made it work yet
-
johnm
jails are great, the freebsd kind that is
-
BarnabasDK
I use jails all the time
-
monoxane
github.com/samuelkarp/runj is like half way there but also an abandoned PoC
-
BarnabasDK
I was just wondering
-
johnm
I'm trying to talk my local sheriff's office into running FreeBSD because the 'jails are free' :Þ
-
BarnabasDK
here is a question then , in the old days you could run freebsd with a debian core, would that do kubernetes in that use?
-
BarnabasDK
as an experiment
-
BarnabasDK
I know kubernetes does so much more, but to be honest I think Jails has so far fulfilled every need I have had
-
BarnabasDK
so it is more of a compliancy question
-
BarnabasDK
and isolated seen in the FreeBSD community, maybe the one ting that could really stur up trouble :-)
-
BarnabasDK
or bsd community I guess
-
BarnabasDK
in speculation, what would be the largest gaps in compability
-
BarnabasDK
as you see it
-
monoxane
I really dont get why a lot of bsd people are so upset that people want something like kube
-
monoxane
its fundamentally totally different from jails themselves
-
monoxane
jails are just cgroups, kube is an abstraction and management layer on top
-
BarnabasDK
monoxane, I agree
-
BarnabasDK
I am just fresh out of a project where the customer sold themselves as "linux" eksperts, this apparantly including bsd
-
BarnabasDK
and no, you could not run their native images from kubernets on freebsd ..
-
BarnabasDK
obviously
-
BarnabasDK
making the sw run in jails in place was easy
-
BarnabasDK
1:1 compability would still be nice
-
BarnabasDK
I don't even know if it is possible
-
BarnabasDK
in theory
-
demido17
ya k8s is picking up lots of steam. fbsd really needs to support it
-
BarnabasDK
it would move into a real alternative to linux
-
BarnabasDK
Freebsd
-
BarnabasDK
sorry
-
BarnabasDK
also with aws / gce etc
-
BarnabasDK
a much better choice I think
-
monoxane
I 100% would have gone freebsd over linux if I could have ran kube on it
-
monoxane
but for now im on alpine for my servers
-
mason
It's such a deeply unpleasant environment. I like that there are alternatives.
-
demido17
is it that bad? never used it but hear a lot of ppl liking it
-
mason
It's overengineered, heavy, complex.
-
mason
And surprisingly fragile.
-
demido17
know anything that's clearly better?
-
mason
Traditional application deployment.
-
mason
There are some cases that benefit nicely from automatic scaling, but people shove *everything* into K8S.
-
fink
k8s? docker? what is this, 2020 all over again?
-
demido17
fink what's the better current day stack?
-
fink
nothing, they all suck, and that's just the honest truth
-
monoxane
eh I used to think the same but after playing around with it for a while its become pretty easy
-
monoxane
sure its a fairly complex beast but theres a lot of really slim implementations now, some even a single binary that contains everything you need off the bat
-
monoxane
its just very nice to be able to write a single yaml file and have the entire application deployed from that, no ansible junk, no state drift, its just what it says it is
-
fink
oh, i agree with the concept, and it's great, but i completely disagree with the implementation, it's far too complex... k8s reminds me of node, if any one tiny thing breaks, the whole thing comes crashing down
-
nimaje
yay, yaml, one of the best designed data formats ever or something like that
ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell (how can someone seriously think about using yaml? was it even designed to be used or as a joke?)
-
demido17
ya yaml is trash but we're in an era where we all know our options suck, but we don't have a clearly superior alternative yet
-
demido17
stuff like cue, nickel, dhal, are frontier options but nothing within reach yet
-
demido17
ive used ucl a lot it's ok but not perfect either
-
monoxane
well you can just write json
-
monoxane
yaml is a superset of json after all
-
monoxane
but yea yaml sucks shit
-
nimaje
how about using xml?
-
nimaje
-
demido17
json has its own problems. i think nit's the norway problem and other stuff
-
demido17
then there's the conflation of data interchange and config formats
-
demido17
it's all fucked
-
demido17
i like xml and xhtml but iirc parsing is pretty heavy
-
monoxane
yea, at least yaml is fairly easy to parse
-
monoxane
and also fairly easy to write if you're not doing cursed things
-
monoxane
one of the big reasons cue hasn't taken off imo is that its basically just writing actual code, and if I wanted to do that I'd write junk to interact with the protobuf api using native structs
-
Hecate
I really love KDL
-
demido17
why?
-
becrel
hi
-
becrel
I just set up my very first jail
-
becrel
which I plan to use to try using the ports collection, since my host system uses packages and mixing packages and ports isn't recommended
-
becrel
and I was wondering while reading the handbook
-
becrel
you need git to download the ports tree, so if you don't have a copy of it already you need to install git with pkg
-
becrel
is there any chance that would lead to issues
-
janvhs
monoxane: honestly, for the right use case code for configuration is based. It‘s way better than a DSL in your yaml haha
-
janvhs
Does someone know why Sway or labwc require polkit? They shouldn’t need it, when using seatd
-
ivy
is vm-bhyve not maintained anymore? custom networking has apparently been broken since december with no comment from the maintainer:
churchers/vm-bhyve #570
-
monoxane
ivy someone merged a pr 4 hours ago so its probably just not the highest priority in the maintainers life
-
ivy
hmm, that's a shame as all my non-sriov VMs rely on that :-/
-
janvhs
ivy: you can still use a personal fork with the canges you need :D
-
» Ove_ jumpfarts in sanderps face
-
ketas
wtf
-
Ove_
ketas: ?
-
» Ove_ slaps sanderp with a large fart trout
-
mzar
yep, abandoned channel
-
thumbs
mzar: Hardly.
-
mason
becrel: Mixing packages and ports is generally fine if you keep to the same branch. That said, if you're doing a packaging jail, you might also want to look at Poudriere.
-
Demosthenex
so, i suddenly see "laundry" memory, and i thought that should go down over time...
-
mason
Demosthenex: Yeah, that seems like it should be the case. I found a nice definition of laundry memory here:
wiki.freebsd.org/Memory
-
mzar
laundering is not that easy
-
Demosthenex
mason: i saw that... but i thought it would drop
-
Demosthenex
-
Demosthenex
i can't explain why the laundry is staying after the java appserver restarted at 6 am
-
Demosthenex
pardon, it restarted yesterday at 1300, and again today at 0600. new JVM arguments for memory is all i can think of
-
Demosthenex
in a jail, java runs as non-root user
-
mns
I have a FreeBSD system at home. I have a personal iPad which I want to use for connectivity back to home, regardless of where I am. Mostly for SSH and web testing. Would setting up a VPN help with that? The FBSD system running the VPN would be the same system I would need SSH access to as well.
-
vkarlsen
mns: I do that with tailscale
-
demido
how's tailscale work eli5?
-
vkarlsen
It's wireguard made easy
-
vkarlsen
I have an exit node inside my home lan, so our phones can reach the home boxes from anywhere
-
demido
i want a wireguard postup/predown that does 2 things: first, only allow public internet traffic over 192.168.1.0/24 (vpn) and only allow private traffic over 192.168.0.0/24 (lan). is termbin.com/z2o1 correct?
-
vkarlsen
iptables? I haven't the faintest clue
-
ghoti
mns,does the ipad use openssh? bash? This might be interesting:
github.com/chvostek/shelltools/blob/master/sshswitch
-
iio7
I have a couple of disks that used to belong to a zfs mirror pool (freebsd zroot). Both disks was detached from the pool. I want to take those two disks into another machine and import the pool, but I get "no pools available". gpart show shows that ada0p3 and ada1p3 has freebsd-zfs. So, I should be able to somehow access the data right?
-
mns
ghoti: iPad uses something called Termius, does the basics of what I want, which is connect via SSH.
-
mns
vkarlsen: what do you mean an exit node inside the home lan?
-
mns
vkarlsen: I'll take a look at tailscale
-
vkarlsen
mns: I have a device at home that runs tailscale and has the role of an exit node. The other nodes (our phones) route all their traffic via that exit node at home, so they can reach all hosts on the lan at home (including the ad-filtering dns resolver)
-
mns
vkarlsen: nice! That way I could print from my phone when I'm physically away!
-
vkarlsen
mns: Yeah, it's like being home wherever you go
-
mns
vkarlsen: that's exactly what I want
-
mns
to be home, no matter where I am
-
deimosBSD
another option is to run opnsense on hardware, wireguard is lightweight and easy to configure
-
mason
Demosthenex: Hm, that's interesting. I checked earlier, and my fileserver has ~360M of laundry, and it still does now.
-
mns
deimosBSD: thanks, I'll look at that as well
-
deimosBSD
mns: if you're only connecting a few devices, and you can setup ssh pubkey auth, then you can setup wg auth. it's really easy. wg will even dump a qrcode for mobile devices. just use native fbsd wg.
-
deimosBSD
tailscale/headscale are great if you have hundreds of devices
-
deimosBSD
or more
-
polarian
oh its deimosBSD
-
deimosBSD
ssh don't leak secrets in plaintext ;)
-
mns
deimosBSD: yeah its just a few devices that I need to setup that will have access to the homelab
-
deimosBSD
you could even setup wg to do split tunnel or select networks if you don't want all traffic routed through home
-
» deimosBSD states the obvious