This section provides an example for configuring intrusion prevention. Intrusion prevention protects intranet PCs and web servers from Internet attacks.
As shown in Figure 1, an enterprise deploys a FW as the security gateway at the network border. In the networking:
The enterprise wants to enable intrusion prevention on the FW to meet the following requirements:
Protect intranet users from attacks, such as an attacker launched from a website with malicious code, when the users access the Internet web server.
Protect the intranet FTP server.
Prevent Internet and intranet users from launching attacks on the intranet FTP server.
An attack matching the signature with ID 74320 occurs frequently in logs and must be blocked.
Based on the previous enterprise requirements, the intrusion prevention information to be configured is as follows:
Attacks on the enterprise include common worms, Trojan horses, and botnets, and the severity of these attacks in signatures is High.
Configure security policies for the direction from the Trust zone to the Untrust zone.
Attacks are caused by intranet users' access to the Internet web server and the target is the intranet users acting as a client. Therefore, set the protocol to HTTP, object to Client, and severity to High for the signature filter.
The data planning for protecting intranet users is shown in Figure 2z.
Protect the intranet FTP server.
Configure security policies for the directions from the Untrust zone to the DMZ zone and from the Trust zone to the DMZ zone.
Attacks on the FTP server. Therefore, set the protocol to FTP, object to Server, and severity to High for the signature filter.
Add the signature with ID 74320 to the exception signatures and set the action to Block.
The data planning for protecting intranet FTP server is shown in Figure 3.
[FW] interface GigabitEthernet 0/0/1 [FW-GigabitEthernet0/0/1] ip address 1.1.1.1 255.255.255.0 [FW-GigabitEthernet0/0/1] quit [FW] interface GigabitEthernet 0/0/2 [FW-GigabitEthernet0/0/2] ip address 10.2.0.1 255.255.255.0 [FW-GigabitEthernet0/0/2] quit [FW] interface GigabitEthernet 0/0/3 [FW-GigabitEthernet0/0/3] ip address 10.3.0.1 255.255.255.0 [FW-GigabitEthernet0/0/3] quit [FW] firewall zone trust [FW-zone-trust] add interface GigabitEthernet 0/0/3 [FW-zone-trust] quit [FW] firewall zone dmz [FW-zone-dmz] add interface GigabitEthernet 0/0/2 [FW-zone-dmz] quit [FW] firewall zone untrust [FW-zone-untrust] add interface GigabitEthernet 0/0/1 [FW-zone-untrust] quit
[FW] profile type ips name profile_ips_pc [FW-profile-ips-profile_ips_pc] description profile for intranet users [FW-profile-ips-profile_ips_pc] collect-attack-evidence enable [FW-profile-ips-profile_ips_pc] signature-set name filter1 [FW-profile-ips-profile_ips_pc-sigset-filter1] target client [FW-profile-ips-profile_ips_pc-sigset-filter1] severity high [FW-profile-ips-profile_ips_pc-sigset-filter1] protocol HTTP [FW-profile-ips-profile_ips_pc-sigset-filter1] quit [FW-profile-ips-profile_ips_pc] quit
[FW] profile type ips name profile_ips_server [FW-profile-ips-profile_ips_server] description profile for intranet servers [FW-profile-ips-profile_ips_server] collect-attack-evidence enable [FW-profile-ips-profile_ips_server] signature-set name filter2 [FW-profile-ips-profile_ips_server-sigset-filter2] target server [FW-profile-ips-profile_ips_server-sigset-filter2] severity high [FW-profile-ips-profile_ips_server-sigset-filter2] protocol FTP [FW-profile-ips-profile_ips_server-sigset-filter2] quit [FW-profile-ips-profile_ips_server] exception ips-signature-id 74320 action block [FW-profile-ips-profile_ips_server] quit
[FW] engine configuration commit
[FW] security-policy [FW-policy-security] rule name policy_sec_1 [FW-policy-security-rule-policy_sec_1] source-zone trust [FW-policy-security-rule-policy_sec_1] destination-zone untrust [FW-policy-security-rule-policy_sec_1] source-address 10.3.0.0 24 [FW-policy-security-rule-policy_sec_1] profile ips profile_ips_pc [FW-policy-security-rule-policy_sec_1] action permit [FW-policy-security-rule-policy_sec_1] quit
[FW-policy-security] rule name policy_sec_2 [FW-policy-security-rule-policy_sec_2] source-zone trust untrust [FW-policy-security-rule-policy_sec_2] destination-zone dmz [FW-policy-security-rule-policy_sec_2] destination-address 10.2.0.0 24 [FW-policy-security-rule-policy_sec_2] profile ips profile_ips_server [FW-policy-security-rule-policy_sec_2] action permit [FW-policy-security-rule-policy_sec_2] quit [FW-policy-security] quit
[FW] quit <FW> save
# interface GigabitEthernet 0/0/1 ip address 1.1.1.1 255.255.255.0 # interface GigabitEthernet 0/0/2 ip address 10.2.0.1 255.255.255.0 # interface GigabitEthernet 0/0/3 ip address 10.3.0.1 255.255.255.0 # firewall zone trust add interface GigabitEthernet 0/0/3 # firewall zone untrust add interface GigabitEthernet 0/0/1 # firewall zone dmz add interface GigabitEthernet 0/0/2 # profile type ips name profile_ips_pc description profile for intranet users collect-attack-evidence enable signature-set name filter1 target client severity high protocol HTTP # profile type ips name profile_ips_server description profile for intranet servers collect-attack-evidence enable signature-set name filter2 target server severity high protocol FTP exception ips-signature-id 74320 action block # security-policy rule name policy_sec_1 source-zone trust destination-zone untrust source-address 10.3.0.0 24 profile ips profile_ips_pc action permit rule name policy_sec_2 source-zone trust source-zone untrust destination-zone dmz destination-address 10.2.0.0 24 profile ips profile_ips_server action permit # The following configuration is used to perform a one-time operation and not stored in the configuration profile. engine configuration commit