The following example shows how to configure a rule in the TEST1 firewall rule set. Rule 1 accepts stateful traffic flows and flows related
to existing connections for all protocols.
To configure per-rule set state rules, perform the following steps in configuration mode.
TABLE 10 Creating a per-rule set state rule
Step
Command
Create the configuration node for the TEST1 rule set and
give a description for the rule set.
vyatta@R1# set security firewall name TEST1 description
"Filter traffic statefully"
Create a state rule.
vyatta@R1# set security firewall name TEST1 rule 1 action
accept
vyatta@R1# set security firewall name TEST1 rule 1 state
enable
Commit the configuration.
vyatta@R1# commit
Show the firewall configuration.
vyatta@R1# show security firewall name TEST1
description "Filter traffic statefully"
rule 1 {
action accept
state enable
}
Configuring global state policies
You can change behavior to be globally stateful by setting a global state policy with
security firewall global-state-policy <protocol>
on
page 50. When state policies are defined, state rules for return traffic of that type need not be explicitly mentioned within the rule sets.
The global state policy that is configured applies to all IPv4 and IPv6 traffic destined for, originating from, or traversing the router. Note
that after the firewall is configured to be globally stateful, this setting overrides any state rules configured within the rule set.
The following example shows how to configure the firewall globally to allow all return traffic.
This behavior is the same as that configured in the TEST1 rule set in
Configuring stateful behavior per rule set
on page 29, except that it
is applied globally instead of being restricted to the one rule set.
To configure this global stateful behavior, perform the following steps in configuration mode.
TABLE 11 Setting a global state policy
Step
Command
Configure global state policy.
vyatta@R1# set security firewall global-state-
policy icmp
vyatta@R1# set security firewall global-state-
policy tcp
vyatta@R1# set security firewall global-state-
policy udp
Commit the configuration.
vyatta@R1# commit
Show the state policy configuration.
vyatta@R1# show security firewall global-state-
policy
security {
Configuration Examples
Brocade 5600 vRouter Firewall Configuration Guide
30
53-1004253-01
Содержание 5600 vRouter
Страница 6: ...Brocade 5600 vRouter Firewall Configuration Guide 6 53 1004253 01 ...
Страница 10: ...Preface Brocade 5600 vRouter Firewall Configuration Guide 10 53 1004253 01 ...
Страница 12: ...About This Guide Brocade 5600 vRouter Firewall Configuration Guide 12 53 1004253 01 ...
Страница 20: ...Firewall Overview Brocade 5600 vRouter Firewall Configuration Guide 20 53 1004253 01 ...
Страница 96: ...Zone Based Firewall Commands Brocade 5600 vRouter Firewall Configuration Guide 96 53 1004253 01 ...
Страница 100: ...ICMPv6 Types Brocade 5600 vRouter Firewall Configuration Guide 100 53 1004253 01 ...