TABLE 3 Filtering on source IP and destination protocol (continued)
Step
Command
Define a rule that filters traffic destined for the Telnet service.
vyatta@R1# set security firewall name FWTEST-3
rule 1 destination port telnet
Apply FWTEST-3 to packets bound for this router arriving on dp0p1p2.
vyatta@R1# set interfaces dataplane dp0p1p2
firewall in FWTEST-3
Commit the configuration.
vyatta@R1# commit
Show the configuration.
vyatta@R1# show security firewall name FWTEST-3
rule 1 {
action accept
destination {
port telnet
}
protocol tcp
source {
address 10.10.30.46
}
}
vyatta@R1# show interfaces dataplane dp0p1p2
firewall {
in FWTEST-3
}
Defining a network-to-network filter
The following example shows how to define a network-to-network packet filter, allowing packets originating from 10.10.40.0/24 and
destined for 172.16.0.0/24. It then applies the firewall instance to packets inbound through the 40 virtual interface (vif 40) and the
dp0p1p2 interface.
To create a network-to-network filter, perform the following steps in configuration mode.
TABLE 4 Defining a network-to-network filter
Step
Command
Create the configuration node for the FWTEST-4 firewall instance and its
rule 1. This rule accepts traffic matching the specified criteria.
vyatta@R1# set security firewall name FWTEST-4
rule 1 action accept
Define a rule that filters traffic coming from the 10.10.40.0/24 network.
vyatta@R1# set security firewall name FWTEST-4
rule 1 source address 10.10.40.0/24
Define a rule that filters traffic destined for the 172.16.0.0/24 network.
vyatta@R1# set security firewall name FWTEST-4
rule 1 destination address 172.16.0.0/24
Apply FWTEST-4 to packets bound for this router arriving through vif 40
on dp0p1p2.
vyatta@R1# set interfaces dataplane dp0p1p2 vif 40
firewall in FWTEST-4
Commit the configuration.
vyatta@R1# commit
Show the configuration.
vyatta@R1# show security firewall name FWTEST-4
Configuration Examples
Brocade 5600 vRouter Firewall Configuration Guide
24
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 ...