-
crb__
is the syntax for ethernet interface alias in /etc/rc.conf still ifconfig_bge0_alias0="inet 99.104.201.113/29"
-
crb__
really odd it won't boot with the alias but if I do service netif restart then there it is
-
rwp
crb__, I think you are missing an alias keyword there. I think it should be: ifconfig_bge0_alias0="inet alias 99.104.201.113/29"
-
rwp
But you are right. Looking at man rc.conf and then /alias they don't list it in the command. But that is what I have on my system.
-
rwp
Looking at "man ifconfig" the syntax listed there is that alias appears after the address? (me shakes my head) I should read the docs more often.
-
rwp
The example in the man page is "ifconfig em0 inet 192.0.2.45/28 alias". Hmm...
-
rwp
It seems that "alias" can work in either place before or after. But "-alias" to remove it can only work in the after position, as documented.
-
kevans
jbo: you ever create a port that you look at after the fact and think, "man. this shit is utterly cursed."
-
kevans
I have a prototype arm-none-eabi-libstdc++ port. it starts to build. no idea if it builds too much. no idea if it builds what we need, yet.
-
kevans
we'll see what poudriere thinks about the plist once it's done
-
rwp
I think the way my rc.conf file worked with the "alias" in there was by accident! This was a good opportunity for me to figure that out and fix it.
-
crb__
rwp, nope alias before doesn't work
-
crb__
rwp and adding it at the end didn't help either
-
crb__
as I said very strange that simply running "service netif restart" with once it boots causes it to show up
-
rwp
I am sorry crb__ but as you read I was wrong about the syntax. That was the syntax I had in my /etc/rc.conf file for it. But when I read the docs my extra "alias" there was clearly wrong.
-
rwp
I removed it from my rc.conf file to correct it here. So... Thanks I guess for causing me to figure out I had it wrong here? :-)
-
rwp
crb__, It is strange what you report. But there may be some difference between start and restart later.
-
rwp
Have you tried stopping the service and verifying with ifconfig that everything is offline. Then running start from a cold state?
-
rwp
I might even go so far as to comment out networking entirely and rebooting to get to a pristine start state and then uncommenting the network config and running start from the cold pristine state. Maybe a failure there? I have seen problems like that before.
-
rwp
Also, is there any clue in /var/log/messages about a problem? Or in the dmesg output? I would expect an error to be logged somewhere.
-
gh00p
what's this about interface aliases?
-
rwp
gh00p, crb__ is reporting a strange problem where "< crb__> really odd it won't boot with the alias but if I do service netif restart then there it is"
-
rwp
And the configuration under review is: ifconfig_bge0_alias0="inet 99.104.201.113/29"
-
rwp
Assuming the interface name is bge0 then it seems okay to me.
-
rwp
This is all documented in "man rc.conf" look for "alias" there.
-
CrtxReavr
rwp, you don't need 'inet' in there.
-
gh00p
rwp, an `ifconfig_bge0_alias0` line should not have the "alias" keyword included in the value.
-
CrtxReavr
gh00p, nonsense.
-
CrtxReavr
ifconfig(1) does however say:
-
gh00p
CrtxReavr: mine works without. I haven't modified my startup scripts.
-
CrtxReavr
a non-conflicting netmask must be given. Usually 0xffffffff is most appropriate.
-
CrtxReavr
Now. . . I can remember a time when that was absolutely true for FreeBBD.
-
CrtxReavr
At somepoint it seemed to stop being a requirement for aliases, but there may be corner cases.
-
CrtxReavr
rwp, try: ifconfig_bge0_alias0="99.104.201.113/32"
-
CrtxReavr
(Assuming you have another ifconfig_bge0 flag with a proper mask width.
-
CrtxReavr
)
-
rwp
CrtxReavr, Don't tell me. I am just the messenger at this moment. But the man rc.conf says it is needed.
-
gh00p
CrtxReavr: "nonsense"? You don't have the "alias" keyword in your value either.
-
CrtxReavr
gh00p, I missread what you wrote.
-
CrtxReavr
Thought you were claiming the opposite.
-
gh00p
ah
-
rwp
gh00p, Where do you see that crb__ has an alias in the value?
-
CrtxReavr
rwp, don't look at rc.conf(5), just look at /etc/defaults/rc.conf
-
gh00p
rwp it was your suggested line maybe 3 hours ago
-
rwp
So, I just want to make sure this is down in writing. You are admonishing me to NOT read the fine manual. Correct? :-)
-
rwp
gh00p, Yes 3 hours ago, and 2.9 hours ago I said I was wrong about that and posted a correction.
-
gh00p
it started, "I think you are missing an alias keyword there."
-
gh00p
it started, "I think you are missing an alias keyword there."
-
rwp
But in the half hour ago time I just summaried an answer to your question "< gh00p> what's this about interface aliases?"
-
gh00p
oop
-
gh00p
not everything was entirely clear...
-
CrtxReavr
rwp, well, experience and /etc/defaults/rc.conf say one thing and rc.conf(5) says another.
-
rwp
It was a dead reconning navigation error due to missing data in the middle.
-
gh00p
time for a PR? :)
-
rwp
So there are two examples in /etc/defaults/rc.conf and neither really apply but the closest example there has "inet" in it with "ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry." Though that is for the loopback device it has the same syntax.
-
rwp
The other ex
-
rwp
The other example is "ifconfig_em0_alias0="inet6 2001:db8:2::1 prefixlen 64" # Sample IPv6 alias" which is for IPv6 of course and so differs accordingly.
-
CrtxReavr
inet is the default, so it's not necessary.
-
rwp
I don't really see the conflict between /etc/defaults/rc.conf and the rc.conf man page.
-
rwp
Not being necessary is not the same as being incorrect or invalid to be there.
-
CrtxReavr
And with v6 ifconfig_em0_ipv6 makes specifying 'inet6' needless.
-
rwp
I also think that if you believe it to be incorrect then please file a PR so that it can be discussed there and corrections taken if it is needed.
-
CrtxReavr
I've been beating that drum in #bsddocs on EFnet for ages.
-
rwp
I mean my only part here is that I am referencing the fine documentation and if you think the docs are wrong then argue that out with the people who have commit access to the docs. (Which I do not.)
-
rwp
Given what I see in /etc/defaults/rc.conf the two examples there converge with what man rc.conf documents. I think they are in sync.
-
rwp
Also the man page for "man ifconfig" has this example in it "ifconfig em0 inet 192.0.2.45/28 alias" so the ifconfig man page also documents using "inet" there.
-
rwp
gh00p, BTW... I started walking through the rc script to see why my config with the extraneous "alias" in it was working. But it was there, and it was working, but I didn't think it should. I became distracted before I got to the conclusion but I think that "alias" became an ifconfig null action with no address before it and then ifconfig continued processing the rest of the value from there.
-
rwp
Accidentally working by happenstance is not a good thing so I was greatful that crb__'s question got me looking at my own config and got me to find a problem I had and fix it.
-
rwp
My next step in the root cause understanding would be to look through the ifconfig.c source and see how it is parsing its command line. I am curious how that is implemented.
-
rwp
But that will have to wait because I am now relocating. BBIAB. Actually probably a few hours at best and tomorrow morning more likely.
-
tercaL
jmpp: thanks for explaining it
-
jmpp
tercaL: anytime!
-
jmpp
I'm currently on the finishing touches of a major overhaul of my home tech stack, and once I finish I'll get back to uptime-kuma to polish it
-
jmpp
and, if I manage, to submit it as a port
-
jmpp
but I aint making no promises :P
-
tercaL
jmpp: Oh, good luck enjoy your time!
-
jmpp
tercaL: jails distributed across purpose-specific VLAN's, it's been loads of fun!
-
tercaL
jmpp: By the way, while I'm pretty new to Node.js, would you recommend to have a separated user (either 'www' or a freshly created one) for any node.js application or this is a case specifically for uptime-kuma?
-
tercaL
uptime-kuma is the first node.js application I ever installed/tested.
-
jmpp
I'd gone for www:www, just out of simplicity, as any other web app, regardless of its backend stack
-
tercaL
hmmm..noted down.
-
jmpp
and if you deploy one webapp per jail, that makes sense
-
jmpp
so that's what I'll aim for in my uptime-kuma jail once I get to it, with customization hooks in the rc script in case anyone wants to change the defaults, of course
-
jmpp
but, that being said, Morpheus is calling me!
-
» jmpp waves good night!
-
tercaL
jmpp: And whenever you need to open the service from jail to a public IP, I can -if you of course need- help you in PF, NAT and port forwarding configuration, just for you to know. :)
-
tercaL
G'night!
-
jmpp
tercaL: thank you, most appreciated! (though for the time being I don't plan on exposing uptime-kuma outside of my home network, and the VLAN the jail is on is heavily protected by pfSense)
-
tercaL
Super fine, then!
-
jmpp
still, good to know you're pf savvy, I'm heavily dabbling with that as well
-
jmpp
and now, for real, have a good night ;)
-
tercaL
jmpp: PF sometimes might be pretty useful especially when we're on bare-metal dedicated server (limited to a single public IP) and working with Jails
-
tercaL
Good night!
-
lw
is anyone running 15.0 on an rpi4? mine won't boot from SD card with the error "sdhci_bcm0: DMA error 4 on CH5" - but the card itself is fine, it works in the bootloader and it works if i boot from a USB card reader instead. tested with 4cd0ce41bb7e from yesterday
-
lw
it also worked fine ~1-2 weeks ago when i installed it with a 15.0 snapshot
-
lw
ok interesting, it boots with GENERIC, it doesn't boot with GENERIC-NODEBUG
-
meena
O_o
-
meena
lw: that sounds very interesting, indeed!
-
lw
-
VimDiesel
Title: 277884 – RPi4: mmc broken with GENERIC-NODEBUG
-
meena
lw: did you try GENERIC-MMCCAM?
-
lw
no, but i will do that now
-
lw
(i was trying to get uplcom(4) console working using hw.usb.ucom.device_mode_console but it doesn't seem to want to)
-
lw
meena: GENERIC-MMCCAM or GENERIC-MMCCAM-NODEBUG? i guess i'll try both
-
cracauer
My IRC client says I have a mention but I can't find it. Anybody pinged me?
-
rwp
cracauer, I see no mention of your nick in this channel since you and I talked about the radeonkms driver in ports and the kernel compatibility problems of kernel drivers in ports on Tuesday.
-
polarian
/whois VimDiesel
-
polarian
oops
-
lw
why is there no if_genet.ko?
-
lw
looks like the driver itself has module support, it's just not hooked into the build system
-
rwp
polarian, VimDiesel is the resident channel bot.
wiki.freebsd.org/IRC/BotBrainstorm
-
VimDiesel
Title: IRC/BotBrainstorm - FreeBSD Wiki
-
jmpp
polarian: an actor on endless repeat of the same theme... over, and over, and over!
-
jmpp
:P
-
jmpp
how do I ask pkg to tell me what package update will cause the installation of a new dependency?
-
jmpp
I just ran pkg update -f && pkg upgrade -n, and it told me that tcl86 will be brought in, and I cannot begin to understand why, what package has a newly grown dependency on tcl
-
jmpp
I know I could do pkg info -r tcl86 after performing the upgrade...
-
jmpp
but I'd love to know *before* I do so
-
jmpp
I mean, before I perform the upgrade
-
jmpp
well, I can only imagine that tcl86 will be brought in as a dependency of sqlite3-tcl, which I can also infer will be brought in as a newly grown depdendency of sqlite3
-
jmpp
but that's just inference, there must be a way of programmatically inquiring that information
-
rwp
jmpp, Maybe this? pkg search -Q required-by tcl86
-
jmpp
that just gives me the name of the package itself :(
-
jmpp
pkg search -Q required-by sqlite3-tcl --> sqlite3-tcl-3.45.1,1 (plus the package comment)
-
jmpp
sqlite3-tcl is the new package that's going to be installed
-
jmpp
and I'm trying to inquire why
-
jmpp
so I opted to do pkg upgrade -n $pkg for every package pending an upgrade... but, strangely enough, all of them seem to be bringing this new one in...? me confused!
-
rwp
When I run that for tcl86 it lists tcl86-sql as a dependency but then listing it says none.
-
rwp
Listing depends for tcl86 lists mysql80-client which of course has a longer list. But none of those sqlite3.
-
jmpp
this is in a php jail, so I have php82-pdo_mysql installed, which would explain it
-
jmpp
however, I'm not getting much output, strange
-
jmpp
-
rwp
Hmm... bsd.to pastebin is offline again.
-
jmpp
a couple of days ago I had to use mozilla's pastebin
-
rwp
Good luck! I must relocate.
-
jmpp
rwp: thanks for your help!
-
ayan
hihi! i've been experiencing audio trouble with chromium and a usb audio device. i have a mic connected to a universal audio vault 1 and the mic input works great for a while -- until it it starts to sound robotic to listeners. this is under -current.
-
ayan
reloading the tab in whatever video conferencing software i'm using temporarily fixes (it is consistent across zoom, microsoft teams, and google meet).
-
ayan
i'm running sndiod and i believe chromeium is configured by default to use soundio.
-
polarian
rwp: I realised when I whois'd
-
polarian
the username seemed familiar
-
polarian
jmpp: what do you mean?
-
jmpp
Vin Diesel :D
-
topcat001
ayan: although this might not be related, you can try disabling the automatic mic gain feature in chrome*: In chrome://flags set "Allow WebRTC to adjust the input volume" to Disabled.
-
polarian
Just to double check, theres no port for jdtls right (Eclipse Java LSP server)
-
polarian
unless it is within the eclipse port... but I doubt it because eclipse likely bunded it in their IDE instead of it being its own standalone thing that jdtls is mean't to be
-
concussious
I like to install service-names-port-numbers in /usr/share/misc for this reason, it seems in the spirit of the directory. nothing comes up when I grep it.
-
concussious
my memory seems like we had it in there when I was a child but I can't find anything to support that
-
concussious
oops, i see i've misunderstood the question
-
gh00p
So, I've got this Sonoff Zigbee interface that looks like /dev/umodem0 to FreeBSD. Is there software for these things, or is one meant to roll one's own? Can I run ser2net and access it from a linux homeassistant instance?