How do you recommend to design the interface to type a list of IPs and ports?
I'm developing a page where the user can ask for firewall rules to be open. The user should be able to enter the IPs, IP's ranges, ports and port ranges that s/he wants to be opened. s/he should be able to enter any number of groups of IPs and ports like this:
10.200.10.10, 10.215.20.0/24 tcp 80,8080-8088 udp 21,23
160.200.15.10, 180.215.0.0/16, 180.115.20.10 tcp 80,443 udp 10
A group can have one or many IPs/ranges and one or many ports/ranges for tcp or udp. So initially I made the interface more or less like this:
And let the user type a comma separated list of IPs/ranges and ports/ranges and validate the whole string on submit. The user can include lines clicking in "+ Add new destiny" link.
But this way it's feeling a bit amateurish. Maybe it's just me. Anyone can think in a better way of doing this ?