-
radhitya
rwp: i agree with you
-
mason
mzar: Still not trusting native encryption on this end.
-
rtprio
which end do you trust it on?
-
sfox
hi mason
-
sfox
rwp
-
sfox
Am I just doing something wrong or does freebsd kernel panic and crash a lot?
-
sfox
way more then Linux
-
sfox
I don't think I'm doing anything particular niche
-
sfox
just vnet jails managed by iocage
-
sfox
ipv6 networking
-
sfox
I'm using ECC memory
-
sfox
and hardware watchdogs
-
sfox
but
-
sfox
you know 'server grade' hardware. Supposed to be more stable then the cheapo consumer stuff
-
sfox
zfs
-
sfox
but it seems like i'm kpanicing every other month
-
sfox
or experiencing really bad bugs. SOmetimes the kpanics happen more often
-
sfox
the other day, I just just running impitool trying to look at sensors and reboot the bmc, but it wasn't working so I unloading the ipmi kernel module and when I loading it back
-
sfox
boom, kpanic
-
sfox
this time the crash was so bad though that it couldn't even finish writing backtrace to the crt
-
sfox
I'm even afraid to stop jails now for fear of kpanicing the whole system
-
sfox
I think there's been a bug open related to it since like, 2014? I'll have to check but I'm not sure what the problem is. If people don't know what's causing it or there's just nobody to fund maintaince of those kernel features
-
sfox
my bad looks like 2019 not 2014
-
sfox
-
sfox
Is there something wrong with my hardware?
-
Alver
sfox: if you get regular kernel panics - what do the crashdumps tell you?
-
sfox
page table faults
-
Alver
Also, whereas ECC memory is nice and server-grade-ish indeed - many BMCs are (absolutely, utterly) not
-
Alver
YMMV but I categorically refuse to have any linking between the OS and the IPMI, regardless of which it is
-
Alver
If the OS wants to talk to the IPMI, it will talk to it over the frickin network, just like everyone else
-
Alver
The worst ones are those that "share" a physical network interface between IPMI and OS. Absolute nightmare
-
Alver
Nasty stuff, that page fault in the ipv6 code
-
sfox
Do you have any understanding of it?
-
sfox
Alver, I have the option to use a dedicated port for ipmi. Would doing that increase system stability vs sharing the igb0 port?
-
sfox
also is there any way to fix the bmc?
-
sfox
it's a proprietary bnc from asrock rack
-
futune
sfox, as long as you set an explicit policy and not "auto" I think you will be fine
-
futune
I had a server on auto where the BMC decided to hijack a port different from its usual after a reboot
-
futune
that could have been a real disaster
-
futune
never again
-
futune
also it had been in operation about 4 years without issue before the problem occured
-
sfox
sigh
-
sfox
freebsd just crashed again on my laptop after using ifconfig to tell wifi to use channel 146
-
sfox
and unplugging the wifi because the wifi card hanged
-
» f451 looks at local pkg builders
-
f451
reBuild Rust errrrry daaaay!
-
f451
sfox: i find, particularly on rpi products, that freebsd (current, no-debug) is way more stable than raspios, which was designed for it. thats the primary reason for using it on this hardware
-
f451
it just keeps on going
-
f451
i had to tune it - dont extect a general purpose server os to work ideally straight out of the box
-
f451
it only need booting after a make/buildworld sequence
-
sfox
i'm not running on a raspberry pi
-
f451
i also have amd64, on neterprise hardware. same principle, same results apply
-
f451
on internet-exposed stuff i run -current, keep an eye on current@ cnd cgit
-
f451
sfox: for yr laptop, id recommend looking at detailed dmesg output and making a custom kernel config file, with only whays needed
-
f451
GENERIC might not work for you
-
sfox
what is a whays and is a custom kernel really necessary to stop it from crashing?
-
f451
and laptops are a mess with any os, i chose mine carefully. thinkpad
-
sfox
it's a thinkpad
-
f451
you might have some stuff clashing with other stuff. with laptops, it's the wild west
-
f451
what's the model?
-
dch
mmmm anybody use linux-chrome on freebsd? I am unable to set duckduckgo as the default / only search engine
-
f451
how old is it?
-
f451
dch: i use ungoogled-chromium
-
dch
f451: very new, about a week old
-
sfox
T430
-
dch
f451: I use ungoogled-chromium by default but this specific issue is one where I *need* the linux variant
-
f451
that alone might be a reason - a dmesg would be helpful
-
f451
dch: aha
-
f451
-
sfox
sure
-
f451
specifically, dmesg -a . parse the output to remove information you'd rather not share then paste it there
-
dch
ok, I added it manually. it seems the usual extension doesn't appear in the search engines list.
-
f451
i have a thinkpad works great with freebsd/openbsd but it's like a decade old and theres still no wifi ac/ax support (i think) in either
-
dch
its my #1 sadness with freebsd. no fast wifi. almost everything else is just fine. hope more progress can be made on this in future.
-
» dch currently watching netflix on FreeBSD CURRENT for example
-
sfox
i submitted it
-
sfox
-
f451
sfox: now when you eg post a problem to one of the freebsd mailing lists you can reference that url
-
f451
sfox: when it crashes, whats produced on the console?
-
sfox
nothing
-
sfox
the laptop just freezes and reboots itself
-
f451
is it getting hot?
-
sfox
on the server the usual kpanic screen followed by a memory dump
-
sfox
no the thermals are fine
-
sfox
i even repasted it not too long ago
-
f451
where is it - also what freebsd version
-
f451
for the laptop id try -current as it has all the debugging turned on
-
f451
basically boot to it, paste the dmsg like oyu did before
-
f451
for the server also - os rev/verasion, dmesg etc anyone would need that in order to help
-
f451
for the kpanic post to
bsd.to
-
mason
rtprio: I don't trust it on any end, least of all mine.
-
sfox
Is there a more reliable connection then standard USB for automotive or 'high vibration' environments?
-
ivy
what do people use for PIM-SM routing on freebsd? FRR?
-
scoobybejesus
mountainman1312: have you tried pkg auto and pkg noauto?
-
sfox
ivy, i'm not sure what that is
-
ivy
sfox: it's a protocol for routing multicast traffic between different L2 segments
-
ivy
-
sfox
i think you use mld for that but i'm not sure
-
ivy
IGMP/MLD is for configuring multicast on a single L2 segment, it doesn't work over layer 3 boundaries (as far as i know)
-
ivy
PIM routers listen for IGMP/MLD advertisements to find out what multicast traffic needs to be routed
-
sfox
layer3 is routing
-
ivy
yes
-
sfox
that's not a switch's job
-
ivy
i did not use the word "switch"?
-
sfox
>routing multicast traffic between different L2 segments
-
sfox
you inferred it with this statement
-
ivy
okay, you know how an L3 router is responsible for routing unicast traffic between different L2 segments? and such router might use OSPF/BGP/whatever to do that? an L3 multicast router routes multicast traffic between different L2 segments and it might use PIM-SM to do this
-
ivy
PIM-SM is basically the multicast equivalent to OSPF (although not quite since it relies on an existing unicast IGP, but close enough)
-
sfox
my bad, I didn't know you could multicast to different l2 segments. I thought multicast was restricted to specific l2 segments unless you used proxies. Interesting information.
-
sfox
I don't know the software to do this on freebsd
-
ivy
ah no. there is a multicast address range for "this L2 segment only" but multicast in general can be routed
-
ivy
although not over the internet since no one supports it, but inside an internal network
-
polarian
mzar: it was a route issue, so wg-quick sets the default gateway to be via wg interface and then it sets a route to wg addr via the physical interface gateway
-
polarian
when wifi changes or iface is brought down, the route is lost and must be re-added...
-
ivy
polarian: did you see my reply on net@ about your wireguard thing btw?
-
polarian
so is there a way to hook into wpa_supplicant to run a route command on wifi network connection?
-
ivy
(/etc/start.if.*)
-
polarian
ivy: net@ mailing list?
-
ivy
y
-
polarian
I never posted to net@
-
polarian
or at least I don't remember doing so
-
ivy
oh wait, this was questions@
-
polarian
ah yes... I did post there :)
-
ivy
it was a wireguard question so i assumed net :-p
-
ivy
-
polarian
ah I hadn't seen your email yet, its in the 82 emails I have flagged as "to read"
-
polarian
ivy: ah... right useful
-
polarian
but wg0 isn't an issue if you enabled wireguard rc
-
polarian
but... on the other hand... start_if is called each time the iface is modified correct? or brought up and down (would ssid change trigger start_if?)
-
polarian
if so, then sticking this in .wlan0 would ensure the route is always added
-
ivy
it's called by rc.d, so if you run /etc/rc.d/netif start wg0 for example
-
polarian
oo... not ideal then
-
ivy
wpa_supplicant does not invoke it as far as i know, but perhaps you could script that
-
polarian
still cant deal with the ssid changes...
-
ivy
why do SSID changes affect your wireguard interfaces?
-
polarian
im attempting to achieve always on vpn
-
polarian
so any non-wg traffic, going to anything other than the vpn address on udp port 51820 is dropped by pf :)
-
polarian
but currently I restart wireguard every time I change ssid etc
-
polarian
in fact... a script which checks that wg0 exists (execute ifconfig and grep wg0 and strip everything after the whitespace) then adds the route back again could be written pretty easily
-
polarian
then just call this script when wpa_supplicant changes ssid (after figuring out how to hook into it), and when the physical interface goes down and back up (start_if would work for this, thanks for the suggestion)
-
ivy
in theory this should be possible with multiple fibs but i don't know how you'd make dhclient add the route to the right fib
-
ivy
that's how i set up the jail i use for downloading linux ISOs via bittorrent, but that's static config, not dhcp
-
polarian
fuck dhclient, don't need it :)
-
polarian
the physical interface will handle that, you just ifconfig and grep/awk out the gateway it picks up
-
ivy
oh, you use multiple ssids but no dhcp?
-
polarian
route add <phy> <vpn addr> <gateway>
-
polarian
done
-
polarian
this needs to be done on network switches, or phy being brought back up
-
polarian
then abandoning wireguard-tools is possible
-
polarian
and just setconf in start_if.wg0 as you recommended
-
polarian
but currently I calling service wireguard restart (calls wg-quick down and wg-quick up) manually each time I lose network access... which is a pain!
-
ivy
i'm not sure if i completely understand what you're doing but maybe you would be interested in the wireguard client i use here
-
polarian
not to mention everytime I doas I have to type in my password and my uni has doggy wifi which reconnects every few mins... I literally have to doas service wireguard restart every 5 mins... painful!
-
polarian
ivy: ok so my setup explained, I have a wireguard client (well in this case server) on my server router (running OpenBSD) which handles the networking for my server network and my personal wifi (I live with others they have their own broadband, I piggy back my server network which is technically business internet), my ISP is completely unfiltered and only logs minimally, but the most important
-
polarian
part is preventing MITM and dns spoofing on public wifi networks, so my devices are permanently connected to my server network (pf handles the isolation on the router), I validate my own dns and all packets go via a trusted router. always on vpn is easy on android, its a toggle under vpn, its also pretty easy on Linux, however it seems less common on *BSD and I haven't seen a decent guide on
-
polarian
wireguard let alone always-on-vpn
-
polarian
in fact if_wg is almost undocumented anywhere other than the man pages, I found it within the src tree which is when I realised FreeBSD DOES have kernel support for wireguard, any guides I have seen use wireguard-go (userspace)
-
polarian
as its always on vpn wireguard needs to reconnect on network changes, iface changing is not needed to be done yet (I dont use ethernet on my laptop currently, on wifi, but this is also a TODO)
-
polarian
I was complaining about freebsd dropping packets when wifi network changes, or when wlan0 goes down and up, and I was told it could be a route issue, I was lazy and didn't look into it until this morning when I dumped the routing table when wireguard stopped working (netstat -rn > net1.log) and then after I restarted it (netstat -rn > net2.log) and then diff net1.log net2.log showed the exact line
-
polarian
missing, the route to send wg packets out the physical interface
-
polarian
so I tested it, route <phy> <vpn addr> <gateway addr> and it worked!
-
polarian
so now I need to figure out how to automate it...
-
polarian
so I popped back here for suggestions :)
-
Hello71
I don't know which guides you read? I searched "wireguard freebsd" on google and the first four results explain wireguard_enable. one specifically says not to use wireguard-go
-
rtprio
polarian: you can run the route command on the 'ifup' or whatever wg calls it
-
polarian
rtprio: thats on ifup though
-
polarian
not when the underlying iface changes
-
polarian
wireguard depends on the route to denote which iface it goes out via
-
rtprio
and how often is that changing?
-
rtprio
so can you use a dhclient hook?
-
rwp
sfox, o/ The only time I ever had a FreeBSD kernel panic is when I had a mismatched radeonkms driver. That's completely understood and explained.
-
rwp
sfox, I had a graphics memory related pause chunk pause chunk problem in 14.0 which has a bug found and fixed in 14.1-RELEASE-p5 so suffered through that until then but it is fixed now.
-
zoraj
hi all, what may be the reason my freshly install of FreeBSD 14.1 cannot access the internet and how can I troubleshoting it ? I can ping my router 192.168.100.1 but I cannot ping the outside for eg. 1.1.1.1, I have the following lines inside /etc/rc.conf `ifconfig_em0="inet 192.168.100.15 netmask 255.255.255.0"` `defaultrouter="192.168.100.1"`
-
zoraj
ifconfig says status: active, inet 192.168.100.15
-
zoraj
the command `pciconf -lv | grep -A1 -B3 network` returns `device = Ethernet Connection(3) I218-LM`
-
Alver
zoraj: and the route is in place?
-
Alver
Check with netstat -rn
-
Alver
zoraj: if the route is in place and you can see packets to the internet being sent to the router, then the router would be the usual suspect.
-
zoraj
Alver: this is the result of netstat command
imgur.com/com/a/we8V9eT
-
zoraj
I have a dozen of device connected to this router without problem
-
zoraj
PS4, Ubuntu box, Phone via wifi... without any problem
-
zoraj
surprisingly, the BSD box can only ping the router and not any others machines, which is a bit weird to me
-
yuripv
zoraj: that link doesn't seem to work
-
CowboyNeal
zoraj: instead of netmask x.x.x.x try using the address/24 notation
-
zoraj
sorry guys, the link is
imgur.com/a/we8V9eT
-
zoraj
ok CowboyNeal, going to do it right now
-
zoraj
still no internet even after reboot, here is my rc.conf
imgur.com/a/5vfmzvf
-
CowboyNeal
what is the output of "ifconfig em0"?
-
zoraj
-
rwp
Since the installation worked I deduce that networking worked at installation time.
-
rwp
That image paste fails.
-
rwp
You say that "ping 192.168.100.1" is working for you on your system?
-
rwp
What is in your /etc/resolv.conf file? (People often have broken DNS and think it is networking that is broken instead.)
-
rwp
Does "host example.com"
-
rwp
Does "host example.com" work for you? Or is that failing?
-
zoraj
sorry :(, here is the link
imgur.com/a/y6qsIOe
-
mzar
polarian: that's not surprising; I am glad you troubleshot it with 100% success
-
zoraj
rwp, host google.com fails, no output
-
zoraj
connection timeout, no servers could be reached
-
zoraj
yes, pinging the router (192.168.100.1) works
-
zoraj
if I try to ping any other machine, it fails miserably
-
zoraj
I kind of think that the network didn't work during the installation, because when I tried to install the handbook, nothing happened
-
rwp
You can "ping -c3 8.8.8.8"?? If that works then your networking is functioning correctly. Move on to the DNS configuration problem.
-
rwp
What is in your /etc/resolv.conf file?
-
zoraj
no, I am not able to ping the internet, so ping 8.8.8.8 fails
-
zoraj
inside resolv.conf are `nameserver 1.1.1.1` and `nameserver 8`
-
zoraj
.8.8.8`
-
rwp
Then the problem is either that your router is not functioning, it might be blocking you. Or maybe you have chosen the wrong subnet for it?
-
rwp
Those nameserver lines seem reasonable. But you say ping 8.8.8.8 fails (try pinging 1.1.1.1 too) and therefore DNS can't work. Back to debugging networking.
-
rwp
Is it possible you are behind a "captured portal" which blocks you until you agree to the EULA?
-
rwp
-
zoraj
ping 1.1.1.1 fails, I have root access to the router, I can see that the IP address of the my BSD box is listed there among any other machines connected to the network, there is no specific setup, every machines in my home has 192.168.100.x as ip address without any issue
-
rwp
The detail that ping to the router works but not past the router puts the focus of blame on the router. But you said you just installed the system and networking must have been working at that point. These details are in conflict with each other. Does not make sense.
-
zoraj
I'm lost too, something that should be trivial, get stucked for 2 days
-
rwp
I might try using DHCP as a debug test. From /etc/rc.conf remove defaultrouter and the current ifconfig_$INTERFACENAME line. Change the ifconfig line to "SYNCDHCP" and let it DHCP an address.
-
yuripv
zoraj: all other hosts are on wifi connection?
-
rwp
I suspect that a DHCP test will have some detail of the configuration different than the current static IP assignment.
-
zoraj
yuripv: all my machines(PS4, Ubuntu, BSD) are wired, except phones and tablet
-
zoraj
I'm going to try the SYNCDHCP thing and will let you know
-
rtprio
i didn't see if you could ping the router?
-
rtprio
and if so, was the default route set?
-
rwp
Just an fyi but DHCP and SYNCDHCP are both DHCP but SYNCDHCP will wait at boot time for the address assignment and then will continue. If dhcp fails it will timeout and boot anyway. DHCP without the sync will just boot immediately and then dhcp in the background, meaning that you might be logged in and waiting for the dhcp action to complete which can be confusing when people are debugging dhcp.
-
zoraj
rtprio: you could find here that the machine could ping itself (.15) and the router (.1)
imgur.com/a/jXQZGhE
-
rtprio
did you have the output of `netstat -rna` ?
-
rtprio
or did you have defaultrouter= set in rc.conf ?
-
zoraj
yes I have defaultrouter="192.168.100.1" in my config file
-
zoraj
I'm going to try what rwp point me out about SYNCDHCP
-
rtprio
hrm
-
rwp
In
imgur.com/a/netstat-we8V9eT it shows a ping to 192.168.100.188 failing but that is on the same subnet and if 192.168.100.1 works then 192.168.100.188 should work too, right? Is that machine really up? This is another data point in conflict.
-
rwp
At least some of other systems use DHCP I presume and they are working so I think this machine using DHCP should also configure correctly and work. If you get anything that works then you can use it to deduce the correct settings for a static IP assignment.
-
zoraj
yes that machine (192.168.100.188) works, it's a local pihole DNS server
-
zoraj
rwp: changing to `ifconfig_em0="SYNCDHCP"` even after reboot didn't work, here is the boot messages and the ping
imgur.com/a/CJXwJ7F
-
rtprio
did it get an ip or nah
-
zoraj
nope
-
rtprio
bizarre; so it appears you have a deaf network card
-
Hello71
zoraj: does internet work in installer, or you only installed cached packages?
-
Hello71
and try route get 1.1.1.1, and tcpdump
-
polarian
rtprio: maybe... that might work...
-
zoraj
Hello71: I only installed the bare minimum, cached package, I used the FreeBSD-14.1-RELEASE-amd64-disc1.iso and the only time it asked for internet was when I attemped to install the handbook
-
zoraj
-
zoraj
brb
-
rwp
zoraj, So strange! That DHCP does not work, and if anything would then it would, would cause me to double check EVERYTHING. I would swap network cables. I would try "grasping at straws" because right now all you have is straw to grasp at.
-
moviuro
Hi all, my FreeBSD server hosted under a cheap OVH brand (kimsufi) refuses to boot. I can't access any sort of KVM (that machine was old, not grandfathered into modern niceties) and I only have access to a Linux 6.1.51 rescue system. That rescue has zfs(8) but zpool(8) fails with:
x0.at/Givj.txt . I have checked smartctl(8), nothing seems
-
moviuro
amiss (
x0.at/6iss.txt). On a scale from 0 to <cancel your subscription>, how screwed am I?
-
rwp
It's recoverable. But it will take some effort and some clever recovery techniques.
-
moviuro
Then 10pm+ might not be the right time to start working on it
-
rwp
The server ZFS is newer than the ZFS in the recovery and therefore you can't *directly* use the recovery to mount it.
-
rwp
This late at night for you maybe not. But we can talk about possible options and then you can sleep on it and choose one to do tomorrow. :-)
-
moviuro
but there's hope, and that's good. rwp -- manpages or pointers that I can read tomorrow?
-
rwp
I am digging through my notes... stand by
-
rwp
That's not to put anyone else off who might have an immediate suggestion. I am going to a linux rescue boot kvm freebsd recovery path.
-
debdrup
-
rwp
-
rwp
debdrup, Then would that rescue system be very old?
-
debdrup
rwp: sounds like it
-
rwp
Committed to FreeBSD 2023-04-20 but the Linux image would be using OpenZFS but I could definitely see the rescue image being older than a year causing this problem.
-
rwp
moviuro, That reference I cited is for installing but if you can install then you can rescue. Use the rescue system with qemu to boot a small mfsbsd system and then in that virtual system mount your zfs drives and use that access to see why it isn't booting and repair it.
-
rwp
This is the type of situation where I would always try it locally on my local system and work through the process once or twice before attempting it remotely.
-
rwp
But if you are careful this seems very recoverable. Or at the absolute worst you would be able to mount the disks and perform a backup of your data so that you would have all of your data that was there regardless.
-
moviuro
thanks rwp, I'll read through it after I get some shut-eye
-
futune
you could just transfer the block device containing the zpool as raw data, to another system that can import the pool
-
futune
if it's not too large
-
Hello71
if the disk is small, just send it to another server. for large disk, probably kexec to new kernel is easiest
-
Hello71
actually, isn't nbd easiest and fastest
-
» kevans double checks what channel he's in re: kexec
-
kevans
ahh
-
halcon
Hello i would like to install and use freebsd, but i did an installation and i can not access it by ssh root, how could do it please?
-
sfox
permit root login in sshd's config file
-
sfox
or create a user account and login to that
-
halcon
Thanks the user can ssh, but i can not use root
-
rwp
halcon, Are you trying to use "su -"? Users must be in the wheel group in order to be allowed to "su -" to root. Log in on the console as root. Add your non-root halcon user account to the wheel group. Then log back in as you halcon and then you will be able to execute "su -" to become root.
-
rwp
halcon, If you are trying to ssh in as root at ssh time that is blocked by default now. To allow set "PermitRootLogin prohibit-password" or "PermitRootLogin yes" as you desire and restart sshd.
-
polarian
random question which is slightly offtopic, but when licencing work, a lot of the BSD licences (in fact I think all licences) contain the word "software" in it, so does that mean using 2-clause BSD does not cover your README, and any documentation or non-code within the repository?
-
polarian
or could you still argue that you waived copyright within the repository for these too?
-
rwp
IANAL but some projects which audit rigorously require an explicit copyright license in README and other text files for that file so as to remove all doubt about it. And most often an all permissive doc license such as one of the Creative Commons ones is used for documentation files. I do not know FreeBSD's project guidelines for it.
-
polarian
-
halcon
ok thanks, i am going to do a reinstallation, time is wrong, city too, my laptop is amd64 and i said 32
-
polarian
rwp: creative commons is huge and complicated, just like the GPL, I am simply wanting to 0BSD some docs about a project of mine but I am unsure if this is going to work or not