sharingsunshine
asked on
How Add Multiplle IP's to IPset?
I had this question after viewing How Remove IP from IPset?.
How do I add a list of ip's to the ALLOW ipset? Presently, they are in a text file single spaced separated by a return. Here is a screenshot
https://gyazo.com/3ca73fc465513f6b9b09aa9104907d30
I have a similar list for ipv4's too. Can both of them reside in the ALLOW subset? If not, please tell me how to create one for ipv6.
Thanks,
Randal
How do I add a list of ip's to the ALLOW ipset? Presently, they are in a text file single spaced separated by a return. Here is a screenshot
https://gyazo.com/3ca73fc465513f6b9b09aa9104907d30
I have a similar list for ipv4's too. Can both of them reside in the ALLOW subset? If not, please tell me how to create one for ipv6.
Thanks,
Randal
ASKER
so is there not a way to add a batch of ip's at one time? Following your example will take a long time for 100's of ip numbers.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks for the help
There are set for ip addresses (hash:ip) or networks (ip address or ipaddresses with netmasks,, hash:net).
ipset add SETNAME ipaddress
ipset add SETNAME ipaddress
etc.