Project

General

Profile

Feature #5663

Aliases should be enterable in a new-line-separated list in a multi-line box form field

Added by badon _ over 5 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
12/18/2015
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default

Description

If I have a list of IP addresses I want to use in an alias, the obvious way to enter them is with the URL or URL Table types, and fetch a text file, but that has some unresolved bugs:

https://redmine.pfsense.org/issues/4766

However, I have discovered accidentally that it is possible to copy and paste the list of IP address from my text file, with 1 IP on each line, into a single field of the "Host" type, and it will be automatically expanded to multiple individual fields for each IP after the page is saved. I propose that the "Host" type should be a multi-line box form field, so it's more clear that it is possible to enter IP's that way. Alternatively, another type should be created that can accommodate a text list input in as standard that is easy to compose in a text editor, and then pfSense can parse it to pull out the IP's, description, etc.

History

#1 Updated by Jim Pingle over 5 years ago

  • Status changed from New to Rejected

Use the "import" function on Firewall > Aliases to do exactly this. (Little "up" arrow 2.2.x and before, on 2.3 it says "Import")

#2 Updated by Phillip Davis over 5 years ago

I put in that functionality to the ordinary alias edit screen a while ago while fixing a few other things. It sort of fell out of the code naturally that for any box that contained a list of IPs/Networks... the code would just be looping through all the pieces, checking if they were valid and making up 1 big list - so that is just a lucky convenience.
As Jim P says, the Bulk Import is the official place to do this.

Also available in: Atom PDF