Is there a way to add multiple (many) IP addresses to a security policy at once?

Reply
Highlighted
L0 Member

Is there a way to add multiple (many) IP addresses to a security policy at once?

I am trying to adjust a security rule that I have in place that blocks incoming traffic from multiple IP hosts.

In the rule I currently have approx 100 IP host explicitly blocked (spammers)

I am trying to add another group that I have taken from my mail server (approx 150)

Is there a way I can modify and add all of those addresses at once instead of individually?

Tags (3)

Accepted Solutions
Highlighted
L3 Networker

Re: Is there a way to add multiple (many) IP addresses to a security policy at once?

CLI?

set address <name> ip-netmask 1.1.1.1/32

and/or:

set address-group <addressbook entry>

Should be able to create a large number of set commands with an editor of your choice.

View solution in original post


All Replies
Highlighted
L3 Networker

Re: Is there a way to add multiple (many) IP addresses to a security policy at once?

CLI?

set address <name> ip-netmask 1.1.1.1/32

and/or:

set address-group <addressbook entry>

Should be able to create a large number of set commands with an editor of your choice.

View solution in original post

Highlighted
L4 Transporter

Re: Is there a way to add multiple (many) IP addresses to a security policy at once?

If you run this command first, you can copy and paste everything into the CLI window.

set cli scripting-mode on

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!