RA interfaces using wrong names?

Started by nerd, November 10, 2021, 12:38:55 PM

Previous topic - Next topic
I have renamed all my interfaces and this shows up pretty much everywhere now.
In fact, what the system thinks is LAN is now my WAN.

Works great until I tried setting RA for my interfaces. There the RA interface suddenly used the default WAN, LAN, OPT1 OPT2 etc. naming.
Now the RA interface for my DMW shows as LAN. My actual LAN shows OPT1 as RA interface.

Is there any reason for using the original i'face names her instead of whatever I named them?

this is one of the things I haven't managed to solve yet, the interface names thing (igbX, optX, lan/wan encoded, etc.). Obviously with time I changed a lot of things in order to reach this final state, and the names are a little bit confusing sometimes...I wish there was a way to edit those and clean up things a little bit. Luckily, it's just a cosmetic thing, everything's working as expected.

Hope someone has some advice...

Maybe:

1. Backup the config
2. Edit backup file with correct mappings
3. Restore the config (need fresh install??)

Or maybe, I've missed the point...

You've missed my point I think.
Everything works.

But per default the system names its interfaces WAN, LAN, OPT1, OPT2 etc. They get mapped to whatever your host has for names. Nothing wrong here.
But, you can also change the names of your interfaces so ie.OPT1 get replaced with whatever you named it. This new name (for what opnsense thought of as OPT1) is now reflected throughout the system, except when configuring RA interfaces. There the old WAN, LAN, OPT, OPT2 is mentioned again instead of whatever I named the interfaces.

So when you try to configure RA for This-is-my-LAN (my name), the RA interface setting within mentions (e.g.) OPT1 instead.

It seems that somebody simply forgot this setting mentions an interface name and hence no config to replace the default name with the users custom name is done.

Probably an oversight as you guessed, because

  • few people use IPv6
  • fewer people configure RA manually
  • even fewer people care about the interface names
;)

I'd consider that a bug. Why don't you file a bug report with screenshots to make the point clear?
Here: https://github.com/opnsense/core/issues
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

November 10, 2021, 02:02:06 PM #5 Last Edit: November 10, 2021, 02:04:30 PM by benyamin
Yeah, I'm not sure how that is managed in the code. It's probably a change required in the plugin rather than core.

I should have probably added a step 2b: swap network cables / virtual networks. That way the interfaces wouldn't get renamed from their defaults.

Is it cosmetic, or does something break?

EDIT: My bad, radvd is in core.

@benyamin it's just cosmetic. If I name e.g. WAN "Uplink", LAN "Internal" and OPT1 "DMZ" or "Servers", then the RA dialog still shows WAN, LAN and OPT1 while all other parts of the system I am aware of show Uplink, Internal and Servers.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Yep, ok fun. Must be annoying in the OP's case having renamed LAN to WAN and so forth.

Quote from: pmhausen on November 10, 2021, 02:00:44 PM
Probably an oversight as you guessed, because

I'd consider that a bug. Why don't you file a bug report with screenshots to make the point clear?
Here: https://github.com/opnsense/core/issues

I did just do that. Thank you for the confirmation :)
https://github.com/opnsense/core/issues/5354