16
18.1 Legacy Series / Sorting aliases [Solved]
« on: February 09, 2018, 11:04:14 am »
1. Is any way to sort entries in alisess.
For example. I created host alias (attach screen).
I want add entry 192.168.0.12. Entry appeard on last position, but I want on second.
Is any way to add entry on second position from shell may be?
2. Also I have question. In faq https://docs.opnsense.org/manual/aliases.html
I can create lists in lists.
critical_servers {10.0.1.1 , 10.0.1.2}
other_servers {10.0.1.100 , 10.0.1.200}
Then concatenate both by defining a new list:
servers { critical_servers , other_servers}.
But I can't do that or I don't now how. I created two alias host list.
Next Firewall -> Aliasses -> View -> Add new aliase. I choose Host and in host field paste critical_servers and other_servers. And I can't save.
Error appeard:
For example. I created host alias (attach screen).
I want add entry 192.168.0.12. Entry appeard on last position, but I want on second.
Is any way to add entry on second position from shell may be?
2. Also I have question. In faq https://docs.opnsense.org/manual/aliases.html
I can create lists in lists.
critical_servers {10.0.1.1 , 10.0.1.2}
other_servers {10.0.1.100 , 10.0.1.200}
Then concatenate both by defining a new list:
servers { critical_servers , other_servers}.
But I can't do that or I don't now how. I created two alias host list.
Next Firewall -> Aliasses -> View -> Add new aliase. I choose Host and in host field paste critical_servers and other_servers. And I can't save.
Error appeard:
Quote
The following input errors were detected:I think there must be anather way to create list in list but i dont now how.
Entry "IP_Admin_Stacje0_INT " is not a valid hostname or IP address.
Entry "IP_Admin_Stacje50_INT " is not a valid hostname or IP address.
The name must be less than 32 characters long and may only consist of the following characters: a-z, A-Z, 0-9, _