![H3C S12500R Series Скачать руководство пользователя страница 12](http://html1.mh-extra.com/html/h3c/s12500r-series/s12500r-series_configuration-examples_575185012.webp)
10
#
Example: Configuring transport layer
attack protection
Network configuration
, the device is the gateway for the internal network. Configure SYN Cookie
protection on the device to protect against SYN flood attacks. With this feature enabled, the device
responds to a SYN packet with a SYN ACK packet without establishing a TCP semi-connection. The
device establishes a TCP connection only when it receives an ACK packet from the sender.
Figure 4 Network diagram
Software versions used
This configuration example was created and verified on Release 3606.
By default, interfaces on the device are disabled (in
ADM
or
Administratively Down
state). To have
an interface operate, you must use the
undo shutdown
command to enable that interface.
Procedures
# Specify IP addresses for interfaces. (Details not shown.)
# Enable SYN Cookie.
<Device> system-view
[Device] tcp syn-cookie enable
Verifying the configuration
# Verify that the device does not have any TCP semi-connections. The state "SYN_RECEIVED"
represents semi-connections.
[Device] display tcp
*: TCP connection with authentication
Local Addr:port Foreign Addr:port State Slot PCB
0.0.0.0:21 0.0.0.0:0 LISTEN 1 0xffffffffffffff9
d
0.0.0.0:23 0.0.0.0:0 LISTEN 1 0xffffffffffffff9
f
192.168.2.88:23 192.168.2.79:2197 ESTABLISHED 1 0xffffffffffffffa
3
192.168.2.88:23 192.168.2.89:2710 ESTABLISHED 1 0xffffffffffffffa
2
Network
Device
Switch