11-13
Cisco ASA Series Firewall CLI Configuration Guide
Chapter 11 Connection Settings
Configure Connection Settings
Examples
The following is a sample configuration for TCP state bypass:
hostname(config)#
access-list tcp_bypass extended permit tcp 10.1.1.0 255.255.255.224 any
hostname(config)#
class-map tcp_bypass
hostname(config-cmap)#
description "TCP traffic that bypasses stateful firewall"
hostname(config-cmap)#
match access-list tcp_bypass
hostname(config-cmap)#
policy-map tcp_bypass_policy
hostname(config-pmap)#
class tcp_bypass
hostname(config-pmap-c)#
set connection advanced-options tcp-state-bypass
hostname(config-pmap-c)#
service-policy tcp_bypass_policy outside
Disable TCP Sequence Randomization
Each TCP connection has two ISNs: one generated by the client and one generated by the server. The
ASA randomizes the ISN of the TCP SYN passing in both the inbound and outbound directions.
Randomizing the ISN of the protected host prevents an attacker from predicting the next ISN for a new
connection and potentially hijacking the new session.
You can disable TCP initial sequence number randomization if necessary, for example, because data is
getting scrambled. For example:
•
If another in-line firewall is also randomizing the initial sequence numbers, there is no need for both
firewalls to be performing this action, even though this action does not affect the traffic.
•
If you use eBGP multi-hop through the ASA, and the eBGP peers are using MD5. Randomization
breaks the MD5 checksum.
•
You use a WAAS device that requires the ASA not to randomize the sequence numbers of
connections.
Procedure
Step 1
Create an L3/L4 class map to identify the traffic whose TCP sequence numbers should not be
randomized. The class match should be for TCP traffic; you can identify specific hosts (with an ACL)
do a TCP port match, or simply match any traffic.
class-map
name
match
parameter
Example:
hostname(config)#
access-list preserve-sq-no extended permit tcp any host 10.2.2.2
hostname(config)#
class-map no-tcp-random
hostname(config-cmap)#
match access-list preserve-sq-no
Step 2
Add or edit a policy map that sets the actions to take with the class map traffic, and identify the class
map.
policy-map
name
class
name
Example:
hostname(config)#
policy-map global_policy
hostname(config-pmap)#
class preserve-sq-no
Summary of Contents for ASA 5512-X
Page 5: ...P A R T 1 Service Policies and Access Control ...
Page 6: ......
Page 51: ...P A R T 2 Network Address Translation ...
Page 52: ......
Page 127: ...P A R T 3 Application Inspection ...
Page 128: ......
Page 255: ...P A R T 4 Connection Settings and Quality of Service ...
Page 256: ......
Page 303: ...P A R T 5 Advanced Network Protection ...
Page 304: ......
Page 339: ...P A R T 6 ASA Modules ...
Page 340: ......