Print Download PDF Send Feedback

Previous

Next

'fw sam_policy batch' and 'fw6 sam_policy batch'

Description

The 'fw sam_policy batch' and 'fw6 sam_policy batch' commands let you:

Notes:

Important:

Procedure

Step

Description

1

Start the batch mode:

For IPv4: fw sam_policy batch << EOF

For IPv6: fw6 sam_policy batch << EOF

2

Enter the applicable commands as described below:

  • Enter one add or del command on each line, on as many lines as necessary.

    Start each line with only add or del parameter (not with fw samp).

  • Use the same set of parameters and values as described in 'fw sam_policy add' and 'fw6 sam_policy add'.
  • Terminate each line with a Return (ASCII 10 - Line Feed) character.

3

End the batch mode:

Write EOF and press Enter.

Example for IPv4 Rate Limiting rule

fw samp batch <<EOF

 

add -a d -l r -t 3600 -c "Limit\ conn\ rate\ to\ 5\ conn/sec from\ these\ sources" quota service any source range:172.16.7.13-172.16.7.13 new-conn-rate 5

 

del <501f6ef0,00000000,cb38a8c0,0a0afffe>

 

add -a b quota source range:172.16.8.17-172.16.9.121 service 6/80

 

EOF