Brocade Fabric OS Command Reference Guide v6.1.0 (53-1000599-02, June 2008)

Table Of Contents
292 Fabric OS Command Reference
53-1000599-02
ipfilter
2
ipfilter
Manages the IP filter policies.
Synopsis ipfilter --create policyname -type ipv4 | ipv6
ipfilter --clone policyname -from src_policyname
ipfilter --show [policyname]
ipfilter --save [policyname]
ipfilter --activate policyname
ipfilter --delete policyname
ipfilter --addrule policyname -rule rule_number -sip source IP -dp dest port -proto protocol -act
permit | deny
ipfilter --delrule policyname -rule rule number
ipfilter --transabort
Description Use this command to manage IP filter policies. The ipfilter command and command options are
non-interactive, except when prompting for a confirmation.
The IP filter policy sets up a packet filtering firewall to provide access control on the management IP
interface. The IPv4 and IPv6 policies are either in the defined configuration or in the active
configuration.
Excluding the default policies, there can be a maximum of six policies in the defined configuration
and one policy per IPv4 and IPv6 type in the active configuration.
The active policy must be the default policy or one of the policies in the defined configuration. Only
the active policies are enforced. All of the ipfilter options except --show and --
transabort, create
a transaction owned by the management session initiating the commands.
An open transaction prevents other transactions from being created on different management
sessions. The --create, --clone, --delete, --addrule, and --delrule operands modify policies in
memory buffer, while operands, --save and --activate commit policies to the persistent
configuration. The operands, --save and --activate, implicitly end the transaction if all policy
changes are committed. The operand --transabort explicitly ends an open transaction and aborts
policy changes in memory buffer. Closing the management session that owns the transaction also
aborts policy changes and closes the transaction.
Note The execution of this command is subject to Admin Domain restrictions that may be in place. Refer
to chapter 1, "Understanding Admin Domain Restrictions" and Appendix A, "Command Availability"
for details.
Operands This command has the following operands:
policyname Specifies an IP filter policy name. The policy name is a unique string
composed of a maximum of 20 alpha numeric or underscore characters. The
default_ipv4 and default_ipv6 names are reserved for default IP filter
policies. The policy name is case-insensitive and is always stored as lower
case. The policy type identifies the policy as an IPv4 or IPv6 filter. You can
create a maximum of eight IP filter policies.