OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: bongo on March 03, 2023, 10:07:33 PM

Title: Alias name restriction (Firewall:Alias)
Post by: bongo on March 03, 2023, 10:07:33 PM
when trying to add a new device, i tried to do this according to the scheme i always did it so far.
unfortunately, this seems to be no longer accepted without obvious reason.

my scheme is:
<device type, 1 letter>_<device name>

as an example:
W_MyWifiDevice

this is not accepted and results in the message "The name must start with a letter or single underscore, be less than 32 characters and only consist of alphanumeric characters or underscores.". i think this is fulfilled.

but using
WW_MyWifiDevice
or
_W_MyWifiDevice

is accepted.

i'm running
   OPNsense 23.1.1_2-amd64

is this a bug and will this be fixed?

thanx!
Title: Re: Alias name restriction (Firewall:Alias)
Post by: EdwinKM on March 03, 2023, 10:16:04 PM
It seems the regex is incorrect. You can file a bug here https://github.com/opnsense/core/issues
Title: Re: Alias name restriction (Firewall:Alias)
Post by: bongo on March 03, 2023, 10:34:09 PM
ok, done.
thanx!