Page 2
United States government. The authors and Brocade Communications Systems, Inc. assume no liability or responsibility to any person or entity with respect to the accuracy of this document or any loss, cost, liability, or damages arising from the information contained herein or the computer programs that accompany it.
Zone-based firewall................................................... 31 Filtering traffic between zones...........................................31 Filtering traffic between the transit zones......................................33 Using firewall with VRRP interfaces..........................................34 Applying a rule set to a VRRP interface......................................35 Using VRRP with a zone-based firewall......................................36 Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 4
Related commands.................................................. 86 Zone-Based Firewall Commands.............................................. 87 clear zone-policy..................................................88 show zone-policy..................................................89 security zone-policy zone <zone>............................................90 security zone-policy zone <zone> default-action <action>.................................. 91 security zone-policy zone <zone> description <description>................................92 security zone-policy zone <from-zone> to <to-zone>..................................93 Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 5
<from-zone> to <to-zone> firewall <name>............................94 security zone-policy zone <zone> interface <interface-name>................................95 ICMPv6 Types....................................................... 97 Supported Interface Types................................................101 List of Acronyms....................................................103 Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
In Fibre Channel products, square brackets may be used instead for this purpose. x | y A vertical bar separates mutually exclusive elements. < > Nonprinting characters, for example, passwords, are enclosed in angle brackets. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
For product support information and the latest information on contacting the Technical Assistance Center, go to http:// www.brocade.com/services-support/index.html. If you have purchased Brocade product support directly from Brocade, use one of the following methods to contact the Brocade Technical Assistance Center 24x7. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
By sending your feedback to documentation@brocade.com. Provide the publication title, part number, and as much detail as possible, including the topic heading and page number if applicable, as well as your suggestions for improvement. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
About This Guide This guide describes firewall functionality on the Brocade 5600 vRouter (referred to as a virtual router, vRouter, or router in the guide). Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 12
About This Guide Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
RSVP packets are sent hop-by-hop and since they can be large, they would benefit from being fragmented. The following commands can ensure that an RSVP is responded to. vyatta@R1# set security firewall name RSVP rule 10 action accept vyatta@R1# set security firewall name RSVP rule 10 protocol rsvp Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
For example, when an initiation flow is allowed in one direction, the responder flow is automatically and implicitly allowed in the return direction. While typically slower under heavy load than stateless firewalls, stateful firewalls are better at blocking unauthorized communication. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
TCP state codes: SS - SYN SENT, SR - SYN RECEIVED, ES - ESTABLISHED, FW - FIN WAIT, CW - CLOSE WAIT, LA - LAST ACK, TW - TIME WAIT, CL - CLOSE, LI - LISTEN Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Scenario 1: firewall instances applied to inbound traffic In this scenario, firewall instances are applied to inbound (in) traffic on an interface. Notice that firewall instances are evaluated before DNAT and routing decisions, and after SNAT. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
The arrows from one zone to another zone represent traffic-filtering policies that are applied to traffic flowing between zones. ∙ Traffic flowing between LAN 1 and LAN 2 remains within a single security zone. Thus, traffic from LAN1 to LAN2, and conversely, flows unfiltered. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 18
– From private to DMZ – From public to DMZ – From private to public – From DMZ to public – From public to private – From DMZ to private Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
RFC 6192 for a list of suggested ACLs and configuration filtering rules for control plane policing. The Brocade 5600 vRouter also includes a template of suggested filtering rules that you can incorporate into your CPP configuration. This rule set excludes various routing protocol packets from filtering and provides a default policing rule to rate-limit all other packets entering the control plane.
22 ∙ Filtering on source and destination IP addresses on page 22 ∙ Filtering on source IP address and destination protocol on page 23 ∙ Defining a network-to-network filter on page 24 Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
10.10.40.101. It then applies the firewall instance to packets outbound from the 1 virtual interface (vif 1) on the dp0p1p2 interface. To create an instance that filters on source and destination IP addresses, perform the following steps in configuration mode. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Define a rule that filters traffic on the 10.10.30.46 source IP address. vyatta@R1# set security firewall name FWTEST-3 rule 1 source address 10.10.30.46 Define a rule that filters TCP traffic. vyatta@R1# set security firewall name FWTEST-3 rule 1 protocol tcp Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Apply FWTEST-4 to packets bound for this router arriving through vif 40 vyatta@R1# set interfaces dataplane dp0p1p2 vif 40 on dp0p1p2. firewall in FWTEST-4 Commit the configuration. vyatta@R1# commit Show the configuration. vyatta@R1# show security firewall name FWTEST-4 Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
EXAMPLE rule 10 destination address !192.168.1.100 Apply the NEGATED-EXAMPLE instance to inbound packets on dp0p1p1. vyatta@R1# set interfaces dataplane dp0p1p1 firewall in NEGATED-EXAMPLE Commit the configuration. vyatta@R1# commit Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
PORTS port 22 Add a port name to a port group. vyatta@R1# set resources group port-group PORTS port http Commit the configuration. vyatta@R1# commit Show the configuration. vyatta@R1# show resources group { Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
30. Configuring stateful behavior per rule set Even if you want the firewall to operate statelessly in general, you can still configure state rules within a specific rule set. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Commit the configuration. vyatta@R1# commit Show the state policy configuration. vyatta@R1# show security firewall global-state- policy security { Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
The examples that follow show the configuration for this diagram. FIGURE 5 Zone-based firewall configuration Filtering traffic between zones The following example shows how to filter traffic between zones by attaching rule sets to zone. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 32
Before committing changes to a zone, firewall requires that you should have an interface and a rule set attached to the zone. The following example shows how to view the configuration. vyatta@R1# show security zone-policy zone dmz { description DMZ interface dp0p1p3 to private { Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
“PUBLIC ZONE” Add the interface contained in the public zone. vyatta@R1# set security zone-policy zone public interface dp0p1p4 Commit the configuration. vyatta@R1# commit Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
If a VRRP interface is designed, traffic flows in through the VRRP interface and out through the physical interface or virtual interface. This traffic flow affects how you design and attach firewall rule sets. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Attach the same FW-TEST1 rule set for inbound traffic on the VRRP vyatta@R1# set interfaces dataplane dp0p192p1 interface. firewall in NEGATED-EXAMPLE Commit the configuration. vyatta@R1# commit Show the configuration. vyatta@R1# show interfaces dataplane dp0p192p1 address 172.16.1.20/24 firewall { in FWTEST-1 Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
VRRP is running on this interface. Enabling control plane policing This section provides configuration examples on how to enable or disable CPP on Brocade 5600 vRouter data plane and loopback interfaces.
Page 37
Disable CPP by deleting the loopback interfacelo, that is vyatta@R1# delete interfaces loopback lo firewall local applied to a firewall instance or rule set with the local cpp_group keyword. Commit the configuration. vyatta@R1# commit Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to create a firewall configuration. Use the delete form of this command to delete a firewall configuration. Use the show form of this command to display a firewall configuration. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Active on (dp0p192p1) rule action proto packets bytes ---- ------ ----- ------- ----- allow condition - stateful proto tcp all allow condition - stateful proto udp all allow icmp condition - stateful proto icmp all Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to enable or disable responses to pings. Use the delete form of this command to restore the default behavior of responding to pings. Use the show form of this command to display the state of responding to pings. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to specify whether the system responds to broadcast ICMP ICMP echo and time-stamp request messages. Use the delete form of this command to restore the default behavior of not responding to broadcast ICMP ICMP echo and time-stamp request messages. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 48
Firewall Commands Use the show form of this command to display the behavior to broadcast ICMP ICMP echo and time-stamp request messages. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the delete form of this command to restore the default behavior. Use the show form of this command to display the state regarding the generation of SNMP traps on firewall configuration changes. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
The statefulness policy that is configured applies to all IPv4 and IPv6 traffic destined for, originating from, or traversing the router. After the firewall is configured to be globally stateful, this setting overrides any state rules configured within rule sets. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 51
Use the set form of this command to configure a global statefulness policy for firewall. Use the delete form of this command to delete a global statefulness policy for firewall. Use the show form of this command to display a global statefulness policy for firewall. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to create and name a firewall rule set. Use the delete form of this command to delete to a firewall rule set. Use the show form of this command to display a firewall rule set. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to define an IP firewall rule. Use the delete form of this command to delete a firewall rule. Use the show form of this command to display a firewall rule. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to define a firewall rule set. Use the delete form of this command to delete a firewall rule set. Use the show form of this command to display a firewall rule set. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to provide brief description of a firewall group. Use the delete form of this command to delete a description. Use the show form of this command to display a description. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to define a firewall rule within a firewall rule set. Use the delete form of this command to delete a rule from a firewall rule set. Use the show form of this command to display a rule from a firewall rule set. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to define a firewall rule within a firewall rule set. Use the delete form of this command to delete a rule from a firewall rule set. Use the show form of this command to display a rule from a firewall rule set. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to provide a brief description of a firewall rule. Use the delete form of this command to delete the description of a firewall rule. Use the show form of this command to display the description of a firewall rule. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
: A range of ports; for example, 1001-1005. When both an address and a port are specified, the packet is considered a match only if both the address and the port match. Modes Configuration mode Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 60
Use the delete form of this command to delete a destination address, MAC address, or destination port from a firewall rule set. Use the show form of this command to display a destination address, MAC address, or destination port from a firewall rule set. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to disable a firewall rule Use the delete form of this command to delete a firewall rule. Use the show form of this command to display a firewall rule. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to define the DSCP value to match. Use the delete form of this command to delete the DSCP value. Use the show form of this command to display the DSCP value for a firewall rule set. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to define the Ethernet type to match. Use the delete form of this command to delete the Ethernet type. Use the show form of this command to display the Ethernet type for a firewall rule set. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the delete form of this command to delete the matching of fragmented packets from a firewall rule set. Use the show form of this command to display the matching of fragmented packets from a firewall rule set. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Specifies an IPv4 ICMP group. Modes Configuration mode Configuration Statement security { firewall { name name { rule rule-number { icmp { type number { code number name name group group Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 66
Use the delete form of this command to delete an ICMP firewall rule from a firewall rule set. Use the show form of this command to display an ICMP firewall rule from a firewall rule set. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Specifies an IPv6 ICMP group. Modes Configuration mode Configuration Statement security { firewall { name name { rule rule-number { icmpv6 { type number { code number name name group group Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 68
Use the delete form of this command to delete an IPv6 ICMP firewall rule from a firewall rule set. Use the show form of this command to display an IPv6 ICMP firewall rule from a firewall rule set. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the delete form of this command to delete the IPv6 route type for a firewall rule set. Use the show form of this command to display the IPv6 route type for a firewall rule set. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to enable or disable logging of firewall rule actions. Use the delete form of this command to delete the logging value for a rule. Use the show form of this command to display the logging value for a rule. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
The 802.1 priority-code point number. The number can range from 0 through 7. Modes Configuration mode Configuration Statement security { firewall { name name { rule rule-number { mark { dscp dscp-value pcp pcp-number Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 72
Use the delete form of this command to delete the packet marking action within a firewall rule set. Use the show form of this command to display the packet marking action within a firewall rule set. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to define the PCP within a firewall rule set. Use the delete form of this command to delete the PCP within a firewall rule set. Use the show form of this command to display the PCP within a firewall rule set. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Packets are marked with the given value if policing is exceeded. pcp-number The 802.1 priority-code point number. The number can range from 0 through 7. Packets are marked with the given value if policing is exceeded. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 75
Use the set form of this command to enable or disable policing of firewall rule actions. Use the delete form of this command to delete the policing value for a rule. Use the show form of this command to display the policing value for a rule. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the delete form of this command to delete the protocol type to match for a firewall rule. Use the show form of this command to display the protocol type to match for a firewall rule. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
: A range of ports; for example, 1001-1005. When both an address and a port are specified, the packet is considered a match only if both the address and the port match. Modes Configuration mode Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 78
Use the delete form of this command to delete a source address, MAC address, or source port from a firewall rule set. Use the show form of this command to display a source address, MAC address, or source port from a firewall rule set. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to enable or disable the state for the firewall rule. Use the delete form of this command to delete the state of a firewall rule. Use the show form of this command to display the state of a firewall rule. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the delete form of this command to delete the TCP flag in a packet of a firewall rule. Use the show form of this command to display the TCP flag in a packet of a firewall rule. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
To use Transmission Control Protocol (TCP) for session logging. To use User Datagram Protocol (UDP) for session logging. Modes Configuration mode Configuration Statement security { firewall { session-log { icmp closed established timeout other Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 82
After the firewall is configured to be globally stateful, this setting overrides any state rules configured within rule sets. Use the delete form of this command to delete the protocol used for logging session events. Use the show form of this command to display the protocol used for logging session events. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the show form of this command to display the configuration of TCP strict tracking of stateful firewall rules for traffic associated with established connections, traffic related to established connections, and invalid traffic. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to enable CPP on a data plane interface. Use the delete form of this command to disable CPP on a data plane interface. Use the show form of this command to display CPP configuration on a data place interface. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the delete form of this command to delete a firewall instance, or rule set, from an interface. Use the show form of this command to display the configuration of a firewall instance, or rule set, for an interface. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Defines a group of IP addresses that are referenced in firewall rules. (Refer to vRouter Basic Routing Configuration Guide .) Brocade 5600 vRouter Basic resources group port-group Defines a group of ports that are referenced in firewall rules. (Refer to Routing Configuration Guide .) Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Clears firewall zone statistics. Syntax clear zone-policy Command Default Statistics are cleared on all firewall zones. Modes Operational mode Usage Guidelines Use this command to clear statistics for firewall rules that are applied to zones. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
The following example shows how to display security zone policies for all security zones on the R1 router. vyatta@R1:~$ show zone-policy ------------------- Name: LAN1 Interfaces: dp0p256p1 To Zone: name firewall ---- -------- LAN2 fw_1 ------------------- Name: LAN2 Interfaces: dp0p192p1 To Zone: name firewall ---- -------- LAN1 fw_2 Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the delete form of this command to delete a security zone. Use the show form of this command to display the configuration of a security zone. See show zone-policy on page 89. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the delete form of this command to restore the default action, that is, traffic is dropped silently. Use the show form of this command to display the configuration of the default action. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to provide a description. Use the delete form of this command to delete a description. Use the show form of this command to display the description. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to specify a source zone. Use the delete form of this command to delete a source zone. Use the show form of this command to display the configuration of a source zone. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the delete form of this command to delete a rule set from the packet filters defined for a from-zone . Use the show form of this command to display which packet filter, if any, has been applied to a Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Use the set form of this command to add an interface to a zone. Use the delete form of this command to delete an interface from a zone. Use the show form of this command to display which interfaces are members of a zone. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
IANA and maps them to the literal strings that are available in the Brocade vRouter. TABLE 20 ICMP types ICMP Type Code Literal Description 0 - Echo reply echo-reply Echo reply (pong) Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 98
Pointer that indicates an error required-option-missing Missing required option 13 - Timestamp timestamp-request Request for a timestamp 14 - Timestamp reply timestamp-reply Reply to a request for a timestamp 15 - Information request Information request Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
: The identifier of a tunnel interface you are defining. The Tunnel tunnel x , where x is a nonnegative identifier ranges from tun0 through tun integer. tunx parameters tunnel Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 102
The name of a VRRP interface is not specified. The system internally constructs the interface name from the parent interface identifier plus the VRRP group number; for example, dp0p1p2v99. Note that VRRP interfaces support the same feature set as does the parent interface. Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Amazon Elastic Compute Cloud Exterior Gateway Protocol ECMP equal-cost multipath Encapsulating Security Payload Forwarding Information Base File Transfer Protocol Generic Routing Encapsulation HDLC High-Level Data Link Control Input/Output ICMP Internet Control Message Protocol Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 104
Network Time Protocol OSPF Open Shortest Path First OSPFv2 OSPF Version 2 OSPFv3 OSPF Version 3 Pluggable Authentication Module Password Authentication Protocol Port Address Translation peripheral component interconnect Protocol Independent Multicast PIM-DM PIM Dense Mode Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 105
Temporal Key Integrity Protocol Type of Service TCP Maximum Segment Size transmit User Datagram Protocol virtual hard disk virtual interface VLAN virtual LAN Amazon virtual private cloud virtual private network VRRP Virtual Router Redundancy Protocol Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Page 106
List of Acronyms Acronym Description wide area network wireless access point Wired Protected Access Brocade 5600 vRouter Firewall Configuration Guide 53-1004253-01...
Need help?
Do you have a question about the 5600 vRouter and is the answer not in the manual?
Questions and answers