OPNsense Forum

English Forums => 25.7 Series => Topic started by: Jose on September 28, 2025, 11:59:33 PM

Title: Alias Creation Dashboard Errors
Post by: Jose on September 28, 2025, 11:59:33 PM
Hello I'm not sure if this was already posted, but I'm having this issue whenever I create Ports/Host Aliases:

Sample Screenshots:
Alias-Hosts-Create-Error.png
Alias-Port-Create-Errors.png

My solution is to create the content one by one, some times it works with two or more ports/hosts.
Regards
Title: Re: Alias Creation Dashboard Errors
Post by: Patrick M. Hausen on September 29, 2025, 06:55:21 AM
What do you mean by "one by one"? Are you pasting multiple entries at once? That works only if

- they are on a simgle line
- comma separated
- without any extra spaces

HTH,
Patrick
Title: Re: Alias Creation Dashboard Errors
Post by: Jose on September 29, 2025, 07:51:32 AM
Quote from: Patrick M. Hausen on September 29, 2025, 06:55:21 AMWhat do you mean by "one by one"? Are you pasting multiple entries at once? That works only if

- they are on a simgle line
- comma separated
- without any extra spaces

HTH,
Patrick

Hello @Patrick M. Hausen, I meant entering each IP/Port one by one unless I got lucky and the GUI accept/recognize more than one "correct" entry.
Also yes separating them by commas automatically converts them in mini bread-scrums then when click on the last entry one or more entry does fail like the below screenshot:

Alias-Create-Random-Error.png

Indeed the "10.0.0.300" is a correct alias entry, maybe something with the validation check/match I dunno? as I haven't dig more in depth in this regards.

EDIT: Sorry for wrong IP entry error/mistake, forgot the night coffee cup -.-

System versions:

OPNsense 25.7.3_7-amd64
FreeBSD 14.3-RELEASE-p2
OpenSSL 3.0.17

Regards
Title: Re: Alias Creation Dashboard Errors
Post by: Patrick M. Hausen on September 29, 2025, 07:54:51 AM
If there is an extra space somewhere you will get that error message, too. Agree it's annoying, just trying to find out why you have that problem and I don't (avoiding spaces etc.)
Title: Re: Alias Creation Dashboard Errors
Post by: Monviech (Cedrik) on September 29, 2025, 08:14:30 AM
10.0.0.300 is not a valid IP address

it only goes up to .255
Title: Re: Alias Creation Dashboard Errors
Post by: Patrick M. Hausen on September 29, 2025, 08:17:06 AM
Quote from: Monviech (Cedrik) on September 29, 2025, 08:14:30 AM10.0.0.300 is not a valid IP address

it only goes up to .255

Right 🤦�♂️
Title: Re: Alias Creation Dashboard Errors
Post by: Jose on September 29, 2025, 11:19:24 AM
Quote from: Monviech (Cedrik) on September 29, 2025, 08:14:30 AM10.0.0.300 is not a valid IP address

it only goes up to .255

@Monviech (Cedrik)
Wow ppfff -.-, indeed just get max 255, just my bad, falling asleep since too busy weekend.


@Patrick M. Hausen
I just type in addresses/ports in the field and after adding a comma it automatically creates an entry bread-scrum and a space, between I will try pasting all this entries copied from a text document all just separated with a comma and try again how it goes.

Regards
Title: Re: Alias Creation Dashboard Errors
Post by: Monviech (Cedrik) on September 29, 2025, 11:24:06 AM
You can click on "text" below that field.

And then copy paste them as newline separated list:

172.16.1.1
172.16.1.2
172.16.1.3

Title: Re: Alias Creation Dashboard Errors
Post by: Jose on September 29, 2025, 11:44:03 AM
Quote from: Monviech (Cedrik) on September 29, 2025, 11:24:06 AMYou can click on "text" below that field.

And then copy paste them as newline separated list:

172.16.1.1
172.16.1.2
172.16.1.3


Hi, yes I've selected the text icon and copied them and they populated as new lined and worked just fine.

Also as "Patrick M. Hausen" said, I've also copied several IP's from a text file and pasted them in the Alias field and just hit Save and also worked just fine like shown below:

Alias-Work-Copy-Paste.png

I just tend to ignore the "Copy/Paste/Text" icons under the field box but I will select now the "Text" icon to paste entries in order to avoid the previous the errors.

Regards
Title: Re: Alias Creation Dashboard Errors
Post by: franco on September 29, 2025, 12:47:38 PM
From the first validation screenshots you can see there is an extra whitespace at the end "3478 ", maybe that's a CR (\r) from Windows line endings or a spurious LF (\n) altogether being converted into a space, but that is strange input like

3478
,4379

What are you actually pasting? Just paste it here in the forum...


Cheers,
Franco
Title: Re: Alias Creation Dashboard Errors
Post by: Jose on September 29, 2025, 01:43:50 PM
Quote from: franco on September 29, 2025, 12:47:38 PMFrom the first validation screenshots you can see there is an extra whitespace at the end "3478 ", maybe that's a CR (\r) from Windows line endings or a spurious LF (\n) altogether being converted into a space, but that is strange input like

3478
,4379

What are you actually pasting? Just paste it here in the forum...


Cheers,
Franco

Hi @franco, I did noticed that little spaces as well, also Patrick mentioned it too and I though it was just the GUI output.
However as you said it was provably from copying stuff from random websites in a hurry searching for Steam and some game ports to play behind the TFB.

I'm really sorry for all the noise and this can be marked as solved, so next time I will check/format on my text editor before copying a bunch of ports from the web when creating aliases, also when entering hosts IP's manually it requires for comma at the end of each IP too.

Regards