OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: nerd on November 10, 2021, 12:38:55 PM

Title: RA interfaces using wrong names?
Post by: nerd on November 10, 2021, 12:38:55 PM
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?
Title: Re: RA interfaces using wrong names?
Post by: Alessandro Del Prete on November 10, 2021, 01:12:45 PM
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...
Title: Re: RA interfaces using wrong names?
Post by: benyamin on November 10, 2021, 01:36:53 PM
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...
Title: Re: RA interfaces using wrong names?
Post by: nerd on November 10, 2021, 01:55:33 PM
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.
Title: Re: RA interfaces using wrong names?
Post by: Patrick M. Hausen 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
Title: Re: RA interfaces using wrong names?
Post by: benyamin on November 10, 2021, 02:02:06 PM
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.
Title: Re: RA interfaces using wrong names?
Post by: Patrick M. Hausen on November 10, 2021, 02:12:05 PM
@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.
Title: Re: RA interfaces using wrong names?
Post by: benyamin on November 10, 2021, 02:16:56 PM
Yep, ok fun. Must be annoying in the OP's case having renamed LAN to WAN and so forth.
Title: Re: RA interfaces using wrong names?
Post by: nerd on November 11, 2021, 02:16:59 PM
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