Configuration Guide
Access
Control List Configuration
As shown in the above figure, two networks are connected through a layer 3 switch. Network A
connects to the G3/1 port of the switch and network B connects to the G3/2 port of the switch.
Analysis
By filtering the packets of TCP connection request originated by network B on the G3/2 port of the
switch, you can block the TCP connection request from hosts in network B to network A. Accoding to
the analysis of TCP connection, the SYN of the flag field in the TCP header of the initial TCP request
packet is reset and the ACK is set to 0. Therefore, to enable network A to access network B in the
one-way direction, configure the Match-all option of the extended ACL to set the SYN of the TCP
header to 1 and ACK to 0 on the inbounding direction of theG3/2 port.
Configuration Procedure
1
)
Define an Access Control List (ACL)
# Enter the configuration mode of the switch
Ruijie#
configure terminal
# Create the extended ACL101 in the configuration mode
Ruijie(config)#
ip access-list extended 101
# Deny the packets whose SYN is 1 and permit other packets whose SYN is 0 (including ACK)
Ruijie(config-ext-nacl)#
deny tcp any any match-all SYN
# Permit other IP packets
Ruijie(config-ext-nacl)#
permit ip any any
2
)
Apply the ACL at the interface
# Exit ACL mode
Ruijie(config-ext-nacl)#
exit
Ruijie(config)#
interface vlan 1
Ruijie(config)#
ip address
1.1.1.1 255.255.255.0
Ruijie(config)#
interface gigabitEthernet
0/1
Ruijie(config-if)#
ip
access-group
ifaddr
in
# Enter the G3/2 port on which the ACL is applied
Ruijie(config)#
interface gigabitEthernet
3/2
# Apply ACL 101 to the packet filtering at the inlet of G3/2
Ruijie(config-if)#
ip access-group
101
in
Содержание RG-S2900G-E Series
Страница 1: ...RG S2900G E Series Switch RGOS Configuration Guide Release 10 4 2b12 p1 ...
Страница 91: ...Configuration Guide Configuring PoE Configuration ...
Страница 133: ...Configuration Guide EEE Configuration ...
Страница 319: ...Configuration Guide QinQ Configuration ...
Страница 408: ......
Страница 409: ...IP Routing Configuration 1 Static Route Configuration ...
Страница 412: ......
Страница 413: ...Multicast Configuration 1 IGMP Snooping Configuration 2 MLD Snooping Configuration ...
Страница 621: ...Configuration Guide CPU Protection Configuration udp helper 180 4 dhcp client 180 4 lacp 180 4 ...
Страница 757: ......
Страница 758: ...ACL QoS Configuration 1 Access Control List Configuration 2 QoS Configuration ...
Страница 801: ...Reliability Configuration 1 RLDP Configuration 2 TPP Configuration 3 SEM Configuration ...
Страница 901: ...Configuration Guide ERSPAN Configuration ...
Страница 902: ...Web based Configuration 1 Web based Configuration ...