-
warsoul
is 15.0 stable version?
-
s2r
warsoul 15.0-RELEASE is the latest stable version, 15.0-STABLE, not.
-
Macer
kind of stuck trying to figure out why fstab in jails won't mount rclone mounts on jail startup
-
Macer
that seems like something that should work
-
Macer
would anybody happen to know how on earth you get the fstab in a jail to mount rclone? i can't seem to get it to mount on jail startup even though it mounts in the jail just fine with mount /dir
-
Macer
wow. i added a @reboot /sbin/mount /dir to do it.. that seems like such a terrible way to do it
-
Macer
but the only way i could figure out how to get it mounted on jail start from within the jail
-
rwp
Macer, And you say that mounting with /etc/jail.conf file fails? Any error messages to /var/log/messaages when the mount in /etc/jail.conf fails?
-
dogg0
am i able to dl and test the kde-plasma installer thats going to be out with the main installer ?
-
dogg0
i just installed 15.0 didnt see anything
-
dogg0
this is what i was looking for from osnews "FreeBSD 15.0’s installer to gain option to install a full KDE Plasma desktop environment"
-
Macer
rwp: I am actually mounting from within the jail using rclone and its internal fstab.
-
Macer
I can nullfs mount find from the host into the jail but I want to avoid doing that so the host can stay independent of the jails.
-
Macer
And rclone works just fine when I manually mount. It’s the auto mounting that doesn’t work when it starts.
-
Afterglow
The only way I was able to automount in a jail was by adding that mount to jail.conf (in the host)
-
Afterglow
it was a tmpfs, btw, cannot comment about rclone
-
ant-x
ek, git svn clone? I never knew such a contraption existed. Will try.
-
cndghm
Hello guys, which books do you guys recommend to learn how to develop the freebsd kernel, userland, etc...
-
mzar
The Design and Implementation of the FreeBSD Operating System, by Kirk Marshall Mckusick
-
cndghm
Thank you
-
mzar
np
-
cavok
mzar despite good books age well, I guess it would be nice to have a new edition covering the last 11+ years of FreeBSD developments!
-
mzar
cavok: there are old and new editions
-
mns
I still enjoy reading the BSD 4.2 and BSD 4.3 versions of that book.
-
Farooq
Hello. I have two network interfaces on different networks on the same VPS. I want to use one of the interfaces as primary, and regarding the other just listen on it for servers and daemons. This is me /etc/rc.conf:
plaster.tymoon.eu/v/7JETJZTMY#5023 I can work with the 185.x.x.x interface but not the other one. Even when I configure network gateway to the gateway of that network.
-
Farooq
I'm a (Free)BSD noob. So please let me know if any other information is needed.
-
Farooq
mns, If you were to recommend either BSD 4.3 book or FreeBSD internals book, which one has better educational value?
-
Farooq
For just learning how a UNIX OS works. I could also go for other BSDs.
-
Remilia
Farooq: this is not a UNIX issue; you cannot have multiple default gateways
-
Farooq
I didn't say multiple default gateways. One default. The other interface only for incoming TCP connections. Like a server could listen on it.
-
Farooq
So for instance sshd should listen on both of them
-
Remilia
Farooq: your host has to route packets from that interface
-
Farooq
Using a firewall. right?
-
Remilia
you can use policy routing for this
-
Remilia
you will need a second routing table with the other interface's default gateway
-
Farooq
oh I see
-
Farooq
and that's for the connections on that network. right?
-
Remilia
Farooq: the problem isn't listening, the problem is your server's responses reaching the client
-
Farooq
yeah but if the client is coming from the other network, it is supposed to reply to the same network. not the default one
-
Remilia
if the clients are on the same subnet, that is not an issue, but I assume you want to serve clients from outside?
-
Farooq
yeah it's a VPS
-
Farooq
both IPs are public
-
Remilia
yep
-
Remilia
[15:36:13] <Farooq> yeah but if the client is coming from the other network, it is supposed to reply to the same network. not the default one <- but there is only one default gateway.
-
Remilia
without policy routing anything outbound will go to your only default gateway
-
Farooq
not outbound. inbount
-
Farooq
inbound*
-
LXGHTNXNG
i have heard of some people using ipfw to force traffic to go down a second FIB, which I think is called policy routing
-
LXGHTNXNG
no Farooq, inbound is also chained to outbound
-
Farooq
oh
-
Remilia
Farooq: do you understand that anything YOUR server sends BACK is outbound?
-
LXGHTNXNG
the server NEEDS TO KNOW WHERE TO SEND RESPONSES.
-
Remilia
the IP stack does not know where the packet came from — the protocol does not have fields for ‘it arrived via gateway X’
-
Farooq
But the protocol does know this packet is coming to IP x or y. right?
-
Remilia
yes, and the packets going BACK from your server will go via the default gateway
-
Remilia
which does not know what to do with them
-
Farooq
exactly. And I need to specify an exception here
-
Farooq
which is what policy routing is. right?
-
Remilia
-
Remilia
starting with 34.2. Gateways and Routes and not skipping 34.2.1
-
Remilia
with FreeBSD you can have multiple routing tables and firewalls like pf and ipfw let you reassign packets between them
-
Remilia
pf has route-to which makes it even easier I think
-
Remilia
-
Remilia
but
-
Remilia
in your case you will simply match established only, and use the src IP address as the condition
-
Remilia
it is a bit more complex for UDP as you will definitely need keep-state
-
Remilia
(in general, this stuff is rather complicated, because multi-homed systems are generally not well supported by TCP/IP)
-
Farooq
hmmm
-
Farooq
Can't routed already do so?
-
Remilia
routed is not for that
-
Remilia
you seem to be labouring under a misunderstanding: routed and the like are for managing route tables on a router, to optimise traffic flow
-
Remilia
and to make stuff like routed work on a multi-homed system you must run a firewall and NAT your LAN, or have some sort BGP announcements going
-
Remilia
(for public IPs)
-
Farooq
I see
-
Remilia
> The routed utility is a daemon invoked at boot time to manage the network routing tables. It uses Routing Information Protocol, RIPv1 (RFC 1058), RIPv2 (RFC 1723), and Internet Router Discovery Protocol (RFC 1256) to maintain the kernel routing table. The RIPv1 protocol is based on the reference 4.3BSD daemon.
-
Remilia
it adds/removes routes dynamically
-
Remilia
which is decidedly not what you need
-
Remilia
you need pf with route-to, or ipfw with multiple fibs
-
Farooq
the forum post you posted earlier has good examples I think
-
Remilia
I did this on my home router to make certain hosts bypass IPsec and such
-
Remilia
Farooq: in my case I had several FIBs and did stuff like `pass in quick on $LAN inet from <r_direct> to any rtable $rt_direct` in pf.conf
-
Farooq
I guess r_direct is the client IP you want it to bypass IPsec?
-
Remilia
it is a table of IPs
-
Farooq
oh so pf supports that too
-
Farooq
nice
-
Remilia
yes, like `table <r_direct> persist { 10.10.0.242 }`
-
Remilia
I think that was the PS5 haha
-
Remilia
or maybe the Bravia…
-
Farooq
hmm a random question. Do you know or have any gaming console with FreeBSD or another BSD?
-
Farooq
All of them have got Linux
-
nxjoseph
playstation is based on bsd?
-
Remilia
PS3, 4 and 5 all run on FreeBSD hypervisor
-
Remilia
PS Vita too I think
-
Remilia
no Linux involved, outside the hypervisor it's custom stuff
-
Remilia
Farooq: thinking about your case, you could probably just use route-to in pf and match src of the packets, as it will always be the same one as the dst that the clients used
-
Remilia
multiple FIBs are for more complex scenarios where you want to manage several routing tables
-
Remilia
checking the configuration I remembered that I actually had three: one regular (IPsec based on BGP), one bypass, and one forced IPsec
-
Farooq
-
Remilia
2nd rule will not run
-
Remilia
probably
-
Remilia
‘quick’ means stop matching
-
Farooq
hmm what if I drop `quick`?
-
Remilia
wait, if you have just these 2 rules
-
Remilia
it should be fine
-
Remilia
sorry, I'm blind, I did not notice in/out
-
Farooq
shouldn't I also add rules for the first interface?
-
Remilia
no
-
Remilia
what does not match will use the routing table
-
Farooq
oh
-
Farooq
thanks
-
Remilia
Farooq: please note that if you are hosting DNS or SMTP or anything like that on your 2nd IP this set-up will not work for connections initiated by your server
-
Farooq
hmm it is giving a syntax error for this line: "pass out quick tagged IP2 route-to ($VT1_IF $VT1_GW)"
-
Farooq
Remilia, you mean UDP?
-
Remilia
no
-
Remilia
if you set up an SMTP daemon on that IP specifically, without also binding to the first one, it will not go out
-
Remilia
since you're only doing tagging
-
Farooq
What's special about SMTP daemon?
-
Remilia
`pass out ip from $IP2 route-to .....` would cover that though
-
Remilia
nothing?
-
Remilia
literally anything bound to IP2 and not bound to IP1 will not be able to reach outside
-
Remilia
[16:05:10] <Farooq> okay what about this?
plaster.tymoon.eu/v/7JGRK0VNU#5024 <- also this definitely requires a stateful firewall
-
Remilia
and you have to match on those flags
-
Remilia
in the 2nd rule
-
Remilia
because your two rules are like this: 'tag packets that come in on interface 2'
-
Remilia
'route tagged packets that come out of my system'
-
Farooq
hmmmm
-
Remilia
but packets that come in and packets that are leaving your system are not the same
-
Farooq
of course I just wanted to say it
-
Remilia
they are not linked in any way
-
Remilia
(from the firewall's point of view)
-
Farooq
how to go for connections rather than packets? The firewall does not know that?
-
Remilia
like, yes, this is an established TCP connexion but the firewall does not know it without keep-state
-
Farooq
oh
-
Remilia
research stateful firewall using pf or ipfw
-
Remilia
sorry, as I said, this is not a trivial topic
-
Farooq
okie dokie
-
Farooq
thanks so far
-
Remilia
this is why you really shouldn't use different subnets on the same host without a real good cause :(
-
Remilia
a side note: you *could* do with just multiple routing tables and no firewall whatsoever if you spawned each service twice, on different interfaces
-
Remilia
because FreeBSD has `setfib`
-
Remilia
basically if do something like `setfib 1 service apache24 start` that service will be started with routing table 1 instead of 0
-
Remilia
if you*
-
Remilia
but this is complicated to set up too
-
Remilia
the rc subsystem does not do this for you
-
Remilia
btw I may be off in some respects and I hope others correct me, I have not had to deal with policy routing for nearly 3 years now
-
LXGHTNXNG
there's also ipfw rules with the setfib action which can be of use in a scenario like this
-
jaredj
heh i was about to say, oo you can tell services which fib to use in rc.conf
-
jaredj
buuuut that doesn't get you two instances of the service
-
Remilia
LXGHTNXNG: they are the same as ipfw rtable
-
Remilia
errr
-
Remilia
pf rtable
-
Remilia
maybe if I were an IT person I would be able to sketch you a pf.conf quick but I'm as far from STEM as I am from my hometown now
-
Farooq
:)
-
Farooq
I'm thankful so far
-
» Remilia is but a PhD-in-linguistics gal
-
Farooq
maybe I simply go for setfib
-
Remilia
just match outgoing packets from IP2
-
Remilia
Farooq: OH right before I leave for groceries and forget, if you DO end up using multiple routing tables
-
Remilia
I *think* they do not get populated automatically
-
Farooq
Thank you
-
Remilia
Farooq: there is definitely some better way for this but I just had /etc/rc.local with this
pastee.dev/p/n25nIkdM
-
Remilia
where 93.X was my public PC
-
Remilia
IP*
-
Farooq
hmmmmmmmmmmmmmmmmm
-
Remilia
I think you can do this with static routes in rc.conf
-
Farooq
yeah I think I can do so. But me mind is blowing so far. I need a break
-
Remilia
it's complicated :D
-
Remilia
oh
-
isley
a couple line pf conf with route-to is going to be the easiest and since the initial ask was to "listen on it for servers and daemons" you should be all set.
-
Remilia
yes
-
Remilia
match on src IP2 and that's it
-
Remilia
because for multiple FIBs you also have to add net.fibs="2" (or however many you want) to /boot/loader.conf
-
Remilia
and reboot
-
zip_
Silly question maybe but how do I do vlan tagging on bridges?
-
Remilia
zip: do you mean the entire bridge or just members?
-
zip
Right now I create a vlan interface and then attach it to a bridge and then hand epairs from that to vnet jails
-
zip
But then I want to bridge extra vlans including the untagged one
-
zip
So either I make three bridges locally
-
zip
Or I make one bridge and tag the members?
-
Remilia
I ran vlans on my home router hmm lemme see what I did there
-
zip
I guess knowing the members can be tagged is helpful
-
zip
It'd be nice to hand them to the jails and vms as separate interfaces but not mandatory
-
Remilia
I think I just added vlan interfaces
-
Remilia
like `addm igb1.2`
-
Remilia
right, I'll never get groceries this way, bbl
-
LXGHTNXNG
:D
-
Farooq
xD
-
zip
Okay, thanks!
-
zip
It looks like I may be able to set tagging on members so maybe I'll try that and run one bridge instead of two
-
zip
I think I was having issues mixing two bridges last time I played with it
-
zip
Maybe I'll learn netfilter
-
Afterglow
zip, I have a bridge per vlan. There used to be a bug (not sure if it still exists) that when you have an untagged bridge, the tagged bridges wouldn't work anymore.
-
zip
I remember having difficulty doing that with one tastes and one untagged
-
zip
s/tastes/tagged/
-
dogg0
#theyearofthefreebsddesktop
-
LXGHTNXNG
indeed
-
LXGHTNXNG
meanwhile my GPU doesn't even work
-
dogg0
i just installed 15.0 and literally 2 commands later had a kde-plasma desktop up wow i love it
-
guru_meditations
LXGHTNXNG: nvidia?
-
dogg0
intel. going to try nvidia next though
-
LXGHTNXNG
guru_meditations: amdgpu
-
LXGHTNXNG
it works if i set hw.dri.debug to some value before loading the GPU driver, though
-
guru_meditations
I never had experience running amd gpus on freebsd
-
guru_meditations
the "nvidia?" reply was really just a shot in the dark lol
-
mns
Farooq: in terms of educational value, BSD 4.3 book had come out while I was in college, helped me understand things as I was mostly working with SunOS 4 and Ultrix (from DEC) mostly. There were a couple of other BSD-ish systems as well. I got the BSD 4.4 book when it came out just to see the changes and the FreeBSD one just for sake of completeness in my collection. For me the 4.3 and 4.4 books were
-
mns
helpful and educational.
-
guru_meditations
mns: do you know any books that covers the history of the unix war and the USL v BSDi lawsuit?
-
guru_meditations
I'm too dumb to understand kernel development but the history is interesting
-
mns
guru_meditations: 25 years of Unix I think covers some of that
-
mns
more acurately: A Quarter Century of UNIX by Peter Salus
-
guru_meditations
oh yeah! I think I have saw that book while browsing on amazon.
-
guru_meditations
the memoir/history written by Kernighan is more personal and revolves around the bell lab mostly
-
guru_meditations
should really give both a read one of these days
-
shbrngdo
-
mns
not sure if I would use grokipedia, but the same exists on Wikipedia as well.
-
shbrngdo
grok is generally more informative and reliable, im ,y bombastic opinion. Yt's generated by AI (grok)
-
shbrngdo
argh stupid keyboard
-
Remilia
'reliable' at generating statistically probable chains of words?
-
shbrngdo
well have a look, you may be right or not. Can't hurt to compare
-
Remilia
shbrngdo: I prefer to keep generated text as far away from my eidetic memory as humanly possible
-
Remilia
some people like everything being turned into averages, I do not because it actively interferes with my job
-
» ant-x tries to avoid degenerative AI.
-
Remilia
the purpose of LLMs and their ilk is giving you the most statistically probable response to a starting word sequence, which usually means something utterly average and uninspired
-
Remilia
(and, obviously, not necessarily factual)
-
Remilia
so yeah, hard pass
-
ant-x
Stochasit parrot.
-
ant-x
Not necessarily factual -- sure, the LLM does not care about coorectness of its generated out, which is why it is technically Frankfurtean bullshit: <
scientificamerican.com/article/chat…isnt-hallucinating-its-bullshitting> .
-
s2r
What would be an OK blocksize for a database ?
-
s2r
for zfs.
-
rtprio
s2r: which database?
-
adiabatic
I'm going through a two-disk ZFS mirror set and deleting .sparsebundle backup-disk directories (a gazillion files in them, each 8.4 MB apiece). Every time I delete a .sparsebundle directory, `zpool list` says the fragmentation goes up. Why?
-
rwp
-
rwp
s2r, I am NOT an expert on this topic but this is what I used for a mariadb installation: zfs create -o sync=disabled -o logbias=throughput -o primarycache=metadata -o recordsize=16k -o xattr=sa -o redundant_metadata=most ...