-
Yaazkal
installing drm-515-kmod solved the issue
-
duncan
Yaazkal: the drm-kmod packages are built on 14.1 and this is a known issue with 14.2. you can build the port (this worked for me on a laptop) or wait a bit until 14.1 is EOL
-
duncan
it's buried in the release notes somewhere (maybe a different document), there is also a forum thread
-
Yaazkal
ok, thanks. Now I have i3 working
-
» Yaazkal is deciding wich web browser to use. Never heard of qutebrowser before.
-
ring0_starr
how are you supposed to build individual modules when they depend on an .m template file generating a header?
-
ivy
Yaazkal: i used qutebrowser for a while, it's pretty decent
-
ring0_starr
i built the kernel, and there is mmcbr_if.h in /usr/obj/usr/src/arm64.aarch64/sys/GENERIC/, but when i go to /usr/src/sys/modules/allwinner/aw_mmc && make, it errors out on not finding that .h file
-
ring0_starr
shouldn't the makefile add that include path?
-
ring0_starr
the fact it's not in there means something is wrong
-
fink
y
-
fink
-y
-
agent314
so is portsnap like no more in v 14?
-
ivy
agent314: right. use git
-
ivy
portsnap was terrible and was basically a workaround for CVS also being terrible
-
ivy
now that ports are natively in git, there is no more need for portsnap
-
agent314
ok at first i was getting 'fetch-pack: invalid index-pack output'
-
agent314
but i switched to shallow clone and it worked
-
agent314
oh were they not in git before?
-
agent314
sorry, natively?
-
» agent314 kinda digs ports/pkg for now.. i like that i dont need to specify a ton of USE flags and masking keywords each time i install a package like in gentoo/portage
-
ivy
agent314: "before", ports were in CVS, which is a very old source control system that predates git. portsnap was created to avoid end users having to check out ports from CVS
-
ivy
now that we have git, we do not need portsnap
-
ivy
freebsd is older than git, which is why this migration is needed, if git existed when ports was first created, it would have been in git and there would be no portsnap
-
» agent314 used CVS in 2005 :)
-
agent314
yeah makes sense, git only came out in 2005 and freebsd what in 1995?
-
ivy
1994
-
ivy
no, 1993
-
agent314
oh i knew it was a little bit after linux
-
agent314
it's just that a lot of manuals are using portsnap so i'll just mentally deprecate it from now on
-
» agent314 did install freebsd on desktop briefly in 2011-ish but since then havent touched it
-
agent314
unixdigest.com/articles/technical-r…s-to-choose-freebsd-over-linux.html caused me to have interest, so i'm installing it on a VPS now where i just need to run some python and nginx to process cvs files
-
agent314
i hope i wont have to use docker, i'm still not sure how friendly freebsd 14.2 is with docker
-
ivy
freebsd doesn't really do docker at all, or at least, if you want docker you should use linux
-
ivy
there's some similar thing on freebsd though, it's called... uh... Podsomething?
-
agent314
pot
-
agent314
-
agent314
that sounded more confident than i intended it to sound lol
-
ivy
yeah, pot sounds right
-
agent314
honestly, i wont be crying all that much about docker
-
agent314
as someone digging through gcc optimization flags and SIMD manuals and assembly tricks to optimize speed, i often found overuse of docker kinda blah
-
dch
welcome agent314 & have fun
-
dch
there's also the much newer podman tools, available in ports, these can run linux-flavoured containers, so long as they don't require pid1 / systemd specific featuers
-
dch
but generally people use jails, often directly. podman will also run freebsd-native OCI containers but docs are sparse at present.
-
agent314
yeah can linux binaries run on freebsd if just use libc and it's the same cpu?
-
agent314
*if they just use
-
ivy
what is going on here
-
ivy
root@uk-myb-2:/usr/local/etc/bird.d # netstat -rn|grep 172.20.129.0/27
-
ivy
172.20.129.0/27 fe80::566:11%wg.surgebytes UG wg.surgebyte
-
ivy
root@uk-myb-2:/usr/local/etc/bird.d # ping 172.20.129.1
-
ivy
PING 172.20.129.1 (172.20.129.1): 56 data bytes
-
ivy
ping: sendto: Network is unreachable
-
agent314
(why am i asking i could just go try)
-
ivy
92 bytes from 172.23.76.2: Destination Host Unreachable
-
ivy
(172.23.76.2 is the local host)
-
agent314
try traceroute
-
ivy
root@uk-myb-2:/usr/local/etc/bird.d # traceroute -I 172.20.129.1
-
ivy
traceroute to 172.20.129.1 (172.20.129.1), 64 hops max, 48 byte packets
-
ivy
traceroute: sendto: Network is unreachable
-
ivy
1 traceroute: wrote 172.20.129.1 48 chars, ret=-1
-
ivy
uk-myb-2.le-fay.dn42 (172.23.76.2) 0.391 ms !Htraceroute: sendto: Network is unreachable
-
dch
agent314: yes,
docs.freebsd.org/en/books/handbook/linuxemu typically its `service linux onestart && pkg install linux_base-rl9` but sometimes you need to find a few other missing libraries, a little trial and error
-
agent314
172.16.0.0/12 is a private network afaik?
-
agent314
are you trying to ping someone in your own network?
-
agent314
does anything else ping?
-
ivy
it's RFC1918 space, it is not my own network, it's a network received from BGP over Wireguard
-
agent314
oh right you're over wireguard
-
dch
ivy: is there a more specific route maybe?
-
ivy
dch: nope
-
dch
and yes weird localhost is unreachable
-
dch
that is very weird
-
ivy
i'm rebooting to make sure it's not something weird thing about adding the route before the address...
-
dch
wiki.dn42.us/home is pretty neat, if I have more free time I would join up too
-
agent314
is there a firewall issue?
-
dch
ivy: but its great you will have it all figured out soon and then I can piggy-back on your notes
-
agent314
good idea ivy
-
ivy
agent314: i don't think so, tcpdump shows nothing on pflog0
-
agent314
or at least restart network service
-
dch
today I am trying to figure out why my server just sends TCP RST to the load balancer, instead of passing it to the application
-
dch
which is definitely running
-
ivy
ah wait i have an idea
-
dch
[76355] sonewconn: pcb 0xfffff803c0fda540 (0.0.0.0:4000 (proto 6)): Listen queue overflow: 193 already in queue awaiting acceptance (6 occurrences), euid 1002, rgid 1002, jail 0
-
ivy
well i thought it was this: pass out from (self) to fd00::/8
-
ivy
but changing that to include 172.16.0.0/12 didn't help
-
ivy
and all 'block' rules also have 'log'
-
agent314
oh dear lawd im getting hammered from 125.132.34.65 with ssh logins here
-
agent314
i almost feel like setting up a honeypot
-
agent314
day after i setup an ssh honeypot on linode (i forgot what it was exactly) linode decided to hit me with like an abuse ticket or something
-
agent314
ivy: have you seen anything relevant in /var/log/daemon.log ethcon.log or another log or just dmesg?
-
agent314
(i'll stop pretending like i know anything about freebsd now and go rant about scriptkiddies to #networking)
-
dch
agent314: blocklistd / blacklistd is in base, works very nicely for these things. fail2ban is in ports.
-
ivy
this probably isn't ideal but i'm not really sure what it means
-
ivy
Mar 15 10:53:07 uk-myb-2 bird[60388]: nl-myb-1: Invalid NEXT_HOP attribute - neighbor address fd5b:a83:b06b:500::1
-
ivy
Mar 15 10:53:07 uk-myb-2 bird[60388]: nl-myb-1: Invalid route 172.20.24.0/24 withdrawn
-
ivy
that's not the affected route, though
-
ivy
okay, wait, it just magically started working
-
dch
fc00:: is a private net range, is that being intentionally excluded?
-
dch
ivy: cool, I guess. hope you figure out what the flakey bit is caused by
-
ivy
ah, that's because the peer i was receiving the route from shut down...
-
ivy
now it's going via another interface
-
ivy
traceroute to 172.20.129.1 (172.20.129.1), 64 hops max, 48 byte packets
-
ivy
1 nl-myb-1.le-fay.dn42 (172.23.76.6) 5.964 ms 5.854 ms 5.791 ms
-
ivy
2 fr1.edge.kioubit.dn42 (172.20.14.39) 13.736 ms 19.244 ms 18.712 ms
-
ivy
3 fr-rbx1.burble.dn42 (172.20.129.189) 14.308 ms 14.057 ms 14.603 ms
-
ivy
4 de-fra1.burble.dn42 (172.20.129.169) 26.338 ms 26.427 ms 26.671 ms
-
ivy
5 ns1.burble.dn42 (172.20.129.1) 27.003 ms 28.709 ms 26.612 ms
-
ivy
such dn42
-
ivy
ah, found the problem. Wireguard AllowedIPs was wrong
-
agent314
oh yeah i found wireguard to be harder than openvpn
-
agent314
what is this dn42 thing i'm curious now
-
agent314
(it's a rhetorical question)
-
ivy
dn42.us - it's basically a VPN-based overlay network on top of the Internet using BGP over Wireguard/OpenVPN/IPsec
-
agent314
anything that even acknowledges the existence of BGP gets an immediate interest from me
-
agent314
does it still use IP?
-
ivy
ipv4/ipv6, yes
-
agent314
oh ok so it's beginning to deviate somewhere around l3?
-
ivy
i'm not sure what you mean
-
agent314
osi layer
-
ivy
i know what L3 means, but DN42 doesn't "deviate", it's based on standard protocols
-
agent314
sorry it just said "Since dn42 is very similar to the Internet,"
-
agent314
which made me think it's something like fideonet
-
agent314
*fidonet
-
ivy
no, it's more like the internet on top of the internet
-
ivy
it's all the same protocols (ip, bgp, ospf/isis/whatever you want to use for igp), just running over vpn tunnels instead of fibres
-
agent314
or meshtastic
-
agent314
oh makes sense
-
agent314
it sounds more like I2P
-
» agent314 needs to read more of the web-page then i'll come back with something less idiotic to say
-
ivy
i think I2P is a new, separate protocol? so not really
-
agent314
it now makes sense why you were pinging that 172.x.x.x ip and you yourself were on 172.x.x.x
-
agent314
it seems like main IP subnet (but not the only subnet) according to wiki is 172.20.0.0/14
-
ivy
yes, but they also interconnect with some similar networks like freifunk and ChaosVPN that live in 10.0.0.0/8
-
ivy
i just renumbered my wifi network from 172.16.0.0/12 to 198.18.0.0/15 to avoid conflicts :-)
-
agent314
yeah ive heard of freifunk
-
agent314
my openwrt router had something from freifunk somewhere in it
-
dch
so I think the erlang runtime 28.0rc1 has a socket leak or something like that
-
dch
not looking forwards to tracking this down
-
agent314
is
wiki.dn42.us the official "canon" on dn42?
-
agent314
dch: which is why real programmers code in APL
-
agent314
once they remember all its symbols
-
dch
;-) "for improved readability"
-
agent314
*some of its symbols
-
agent314
*three of its symbols
-
agent314
:-)
-
DarkUranium
So uh. Any idea why `service pf reload` would take ~75 seconds? (almost exactly 75 seconds each time, actually --- +/- 1 second, typically)
-
DarkUranium
(which makes me suspect it's waiting for something, and then hitting some sort of a timeout)
-
ivy
DarkUranium: DNS?
-
DarkUranium
I don't *directly* use anything DNS-related in there, but I am using Podman, and that has its own tables.
-
DarkUranium
(IOW, it's all IPs and interface names)
-
DarkUranium
I just tried commenting out everything Podman-related, and it's still taking a while. Hm.
-
gt
DarkUranium: dtrace
-
DarkUranium
I'm not used to dtrace, but you did remind me that truss is a thing, ha.
-
DarkUranium
Looks like there is 75 seconds of `ioctl(3,DIOCIGETIFACES,0x324ab144e9d0) = 0 (0x0)` going on, in a rapid (~11ms between calls) loop.
-
DarkUranium
gt, ivy: (I've added the `time` for good measure, since truss is following multiple forked processes --- and thus the runtime is off):
vpaste.net/tzZ6s
-
DarkUranium
I'm not sure what to make of it. Why would it run ~10000 of the same ioctl over ~74s?
-
DarkUranium
Once it's reloaded, pf runs 100% fine (at least as far as I can tell)
-
dch
DarkUranium: how long does a normal `ifconfig` take? and how many interfaces do you have?
-
DarkUranium
dch: I've quite a lot of interfaces, including (for some inexplicable reason) duplicated `eth0`s and whatnot --- I'm guessing related to podman's vnet stuff, maybe.
-
DarkUranium
But ifconfig takes 0.00 real/user/sys
-
DarkUranium
I.e. immediate.
-
dch
define "quite a lot" perhaps ...
-
DarkUranium
Lemme grep it.
-
dch
like 50? 100? more ?
-
DarkUranium
9.
-
dch
ok so not a lot then ;-)
-
DarkUranium
And 17×vnet*
-
DarkUranium
Heh, fair.
-
DarkUranium
I mean, it's a lot for me --- I wasn't expecting more than 1 interface with the same name :P
-
DarkUranium
FTR, my external IF is not eth0, which is why I suspect it's vnet-related.
-
DarkUranium
(also, it's always listed just after an vnet*)
-
ivy
you will never have an interface called ethN on freebsd
-
DarkUranium
My external is ext0, renamed from igb0.
-
DarkUranium
Sounds like vnet-related, then.
-
ivy
(unless you manually rename it...)
-
DarkUranium
brb, bio
-
ivy
oh, podman, who knows
-
ivy
maybe it does that to be more like linux
-
dch
I have podman and it doesnt rename stuff
-
dch
9 ifaces here too, just on my desktop
-
dch
without even trying
-
dch
no vnet tho
-
DarkUranium
Weird.
-
DarkUranium
dch: which podman version?
-
DarkUranium
I'm on 5.2.5
-
DarkUranium
(also, re, in case you haven't guessed)
-
dch
5.3.2 here, latest wot dfr@ put in ports
-
DarkUranium
I need to try that one, 5.2.5 had a nasty bug with --remote (I use --remote for my Linux thingies)
-
dch
DarkUranium: so `service pf reload` does actually 2 things
-
dch
you can time these independently
-
dch
`pfctl -n /etc/pf.conf`
-
dch
and append any $pf_flags you might have set in rc.conf
-
dch
I'm expecting that to be quick, it just parses the rules, not loading them
-
DarkUranium
-nf, you mean?
-
DarkUranium
Yeah, 0.00
-
dch
derp yes sorry
-
dch
and we can run the other one in the foreground, maybe the timing of output is interesting
-
DarkUranium
OH RIGHT
-
DarkUranium
I forgot!
-
DarkUranium
I tried this yesterday, and it's relevant.
-
dch
`pfctl -vvef /etc/pf.conf`
-
DarkUranium
Even if I put a single rule in some random file, and do `pfctl -f /tmp/single-rule`, it'll take the same amount of time.
-
dch
oh that *is* curious
-
DarkUranium
Mind, that's without a flush first.
-
DarkUranium
Feels very relevant, but I did this yesterday, so I completely forgot by today xD
-
dch
reload doesn't flush, so thats fine
-
ivy
i am very curious how you ended up with multiple interfaces all called "eth0", something seems very wrong there
-
DarkUranium
ivy: so am I :D
-
ivy
a) because freebsd will never create such interfaces, and b) because two interfaces with the same name does not seem right
-
DarkUranium
Maybe I should just reboot the server and see if podman fixes it.
-
dch
maybe pastebin your `ifconfig`
-
DarkUranium
Yeah, b) is especially weird to me. Q.
-
DarkUranium
If I have the same interface in two different vnets, e.g. eth0.1 / eth0.2
-
DarkUranium
Will that show up as eth0 twice in ifconfig, or will it actually show eth0.* ?
-
ivy
do you mean vlans
-
DarkUranium
Bah. Yes.
-
DarkUranium
Sorry.
-
ivy
those will show up as eth0.1 and eth0.2 in ifconfig, they're separate interfaces from the kernel's point of view
-
DarkUranium
Weird then. Hm.
-
DarkUranium
dch: my ifconfig (I've replaced my real IP with 100.100.100.*, I hope that's okay):
vpaste.net/BdSH1
-
DarkUranium
Though OTOH, it's pretty easy to get anyway <_<
-
DarkUranium
ivy: `pfctl -vvef ...` --- I've added timestamps to be able to better log where the delay is:
vpaste.net/va8m8
-
dch
so to go from `ALTQ related functions disabled` to `[2025-03-15T12:55:32,126035591+00:00] warning: macro 'ext_ip_a' not used` takes basically all the time
-
dch
when DU comes back, ask them to remove the unused macro perhaps
-
dch
it doesnt look like a very long ruleset
-
dch
and anyway reloading with a single ruleset suggests this is nothing to do with the rules themselves
-
crest
agent314: dn42 is a BGP based overlay network. basically its members run their own AS which is *NOT* connected to any BGP speaker on the "real" internet. any kind of IP capable link works from vpn tunnels to long range radio links to carrier pidgeons (if you adjust the bgp timings :-P)
-
crest
its a great place to learn about dynamic routing protocols
-
crest
and can be useful to interconnect hackerspaces or makerspaces with their members or other similar locations
-
crest
think of it as dozens (or 100s) of interconnected home labs etc.
-
ketas
i want to see people actually using birds
-
crest
you'll not just learn BGP, OSPF, but also do deal with other operators and their fuck ups
-
crest
the ip over avian carrier was a reference to an old april fools day rfc
-
ketas
if you want to play multiplayer game but don't want fps nor rpg
-
ketas
so you do this
-
ketas
:p
-
ivy
crest: but you can avoid having to learn OSPF by deploying IS-IS instead
-
ivy
then you get to learn about freebsd layer 2 tunneling solutions
-
ivy
spoiler: there aren't any
-
ivy
(ok, there's vxlan)
-
radhitya
crest: i wonder how dn42 works
-
ivy
radhitya: what do you wonder specifically?
-
ivy
it's basically just BGP over Wireguard tunnels
-
radhitya
dn42[a] is a decentralized peer-to-peer network built using VPNs and software/hardware BGP routers.[1][2][3][4]
-
ivy
(some people use OpenVPN or IPsec+GRE...)
-
radhitya
oh yeah, i understand now
-
sukamu
Good afternoon. Is it possible to add a vlan interface to a jail without a vnet? thanks
-
mzar
sukamu: you can add ip{4,6} address to the jail and you don't need any vnet for it
-
montxero
How can I address this? I have the line `php_fpm_enable="YES"` in my rc.conf file. Yet, service php-fpm start gives "php-fpm does not exist in /etc/rc.d or the local startup directories (/usr/local/etc/rc.d), or is not executable"
-
vkarlsen
montxero: service php_fpm start
-
montxero
vkarlsen: That doesn't work
-
vkarlsen
montxero: What happens when you try?
-
montxero
vkarlsen: Sorry! it worked!
-
vkarlsen
It was changed from php-fpm to php_fpm a while ago :)
-
montxero
service php_fpm start worked. Thanks
-
montxero
silly me
-
montxero
Thanks vkarlsen
-
vkarlsen
I remember it well because I updated php on a prod web server without reading the updating info. My face melted.
-
mzar
ivy: what address do you expect to be used as a source instead of 0.0.0.0 ?
-
holopeinen
Is there any way to redirect all internet traffic via ssh. I run this command ssh -D .... I managed to curl via socks5 , but I want all traffic pass via ssh
-
mzar
holopeinen: sure, see ssh(1) -w option
-
crest
ivy: there 1000s of ways to use netgraph for layer 2 encap
-
crest
then there is etherip (add a gif interface to a bridge)
-
rtprio
is there an easy way to display which drives are under what controllers? i'm trying to figure out the best way to spread out the drives in my pool
-
futune_
rtprio, I got help solving that problem in this channel once, and I think I can dig it out from my shell history
-
futune_
it was a little convoluted
-
rtprio
that would be great, thanks
-
futune_
rtprio, actually "dmesg | grep -i 'ahci'" does most of the work... the only thing which was convoluted is matching adaX to physical drives
-
futune_
for example, this gives me the following
-
futune_
ahci0: <Marvell 88SE912x AHCI SATA controller>
-
futune_
ahcich0: <AHCI channel> at channel 0 on ahci0
-
futune_
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
-
futune_
so I can deduce that ada0 is attached to the Marvell controller card
-
rtprio
thre's all sorts of weird structures in dmesg, like xml and dot files for geom but a tree format for some of these would be nice
-
rtprio
-
futune_
rtprio, what is pmp0? I don't recognize this driver
-
futune_
anyway it seems that ada0, ada1, ada8, ada9 are on ahcich0 which belongs to ASMedia ASM1061
-
futune_
ada2 until ada7 are on various channels which belong to Intel ESB2
-
futune_
does that look reasonable?
-
crest
devinfo?
-
crest
e.g. devinfo -p ahcich0
-
futune_
crest, can I deduce from this which drives are attached to the controller? if so I don't understand
-
futune_
if i try that I get ahcich0 ahci0 pci4 pcib4 pci0 pcib0 acpi0 nexus0
-
crest
pciconf -lv ahci0 ?
-
crest
camcontrol devlist?
-
crest
camcontrol identify ada0
-
crest
sysctl kern.disks?
-
crest
geom disk list / geom disk status?
-
crest
each tells you something slightly different
-
crest
devinfo / pciconf looks at the (system) bus attachment
-
crest
camcontrol is the scsi (like) storage subsystem
-
crest
geom is a (block) storage transformation layer that handles things like partition tables, multi pathing, raid, encryption, and optionally even its own network storage protocol
-
crest
its what sits between the device drivers and the file systems
-
crest
so it consumes complete disks, and provides partitions, labels, raid, decryption, etc. to the file systems
-
gt
DarkUranium: did you ever solve your problem?
-
DarkUranium
gt: the reload one? No.
-
gt
DarkUranium: i can't tell you exactly what it is, but having a bunch of interfaces with the exact same name seems very fishy
-
DarkUranium
gt: I've rebooted the system, and those IFs are gone (though I did notice they all belonged to jails, anyway)
-
DarkUranium
pf reload is now instantanoues, though granted, the podman thingies aren't running, so
-
gt
oh ok so it was probabaly that then
-
gt
i was going to suggest that you removed them
-
futune_
crest, none of your suggestions give the mapping from disks to controllers
-
gt
it's an educated guess, but i'm pretty sure most programs and programmers are expecting interface names to be unique, so having a bunch with the same name can definitely lead to unexpected behaviors
-
gt
tbh i didn't even know you could have multiple interfaces with the same name
-
rtprio
moving files from one zpool to another, would it probaby be faster to zfs send-recv or rsync?