0% found this document useful (0 votes)
10 views7 pages

WAF Configuration Examples Guide

This document provides configuration examples for Web Application Firewall (WAF) settings, including prerequisites and guidelines for implementation. It outlines procedures for assigning IP addresses, configuring routing, creating WAF profiles, and establishing security policies to protect internal networks from web application attacks. Additionally, it emphasizes the importance of understanding the impact of commands on live networks and the requirement of a license for WAF functionality.

Uploaded by

Tiến Phạm
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views7 pages

WAF Configuration Examples Guide

This document provides configuration examples for Web Application Firewall (WAF) settings, including prerequisites and guidelines for implementation. It outlines procedures for assigning IP addresses, configuring routing, creating WAF profiles, and establishing security policies to protect internal networks from web application attacks. Additionally, it emphasizes the importance of understanding the impact of commands on live networks and the requirement of a license for WAF functionality.

Uploaded by

Tiến Phạm
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

WAF configuration examples

Introduction

The following information provides WAF configuration examples.

Prerequisites

This document is not restricted to specific software or hardware versions. Procedures and

information in the examples might be slightly different depending on the software or hardware

version of the device.

The configuration examples were created and verified in a lab environment, and all the devices

were started with the factory default configuration. When you are working on a live network, make

sure you understand the potential impact of every command on your network.

The following information is provided based on the assumption that you have basic knowledge of

the WAF feature.

Restrictions and guidelines

The WAF feature requires a license to run on the device. After the license expires, WAF can use

the existing WAF signature library on the device, but the library cannot be updated.

1
Example: Configuring WAF

Network configuration

As shown in Figure 1, the device acts as the security gateway of the internal network. Configure

the WAF feature on the device to protect the internal network against Web application attacks from

the Internet.

Figure 1 Network diagram

Untrust
GE1/0/1 GE1/0/2
Trust [Link]/24 [Link]/24
Internet

Host Device
[Link]/24
Web server

Software versions used

This configuration example was created and verified on F9345 of the F1060 device.

Procedure

1. Assign IP addresses to interfaces:

# On the top navigation bar, click Network.


2
# From the navigation pane, select Interface Configuration > Interfaces.

# Click the Edit icon for GE 1/0/1.

# In the dialog box that opens, configure the interface:

a. Select the Trust security zone.

b. On the IPv4 Address tab, enter the IP address and mask of the interface. In this

example, enter [Link]/24.

c. Use the default settings for other parameters.

d. Click OK.

# Add GE 1/0/2 to the Untrust security zone and set its IP address to [Link]./24 in the

same way you configure GE 1/0/1.

2. Configure settings for routing:

This example configures a static route.

# On the top navigation bar, click Network.

# From the navigation pane, select Routing > Static Routing.

# On the IPv4 Static Routing tab, click Create.

# In the dialog box that opens, configure a static IPv4 route to reach [Link]:

a. Enter destination IP address [Link].

b. Enter mask length 0.

c. Enter next hop address [Link].

d. Use the default settings for other parameters.

e. Click OK.

3. Update the WAF signature library to the latest version. (Details not shown.)

4. Configure a WAF profile:

3
# On the top navigation bar, click Objects.

# From the navigation pane, select APPSecurity > WAF > Profiles.

# Click Create.

# In the dialog box that opens, configure a WAF profile:

 Enter the name waf.

 In the Signature filtering criteria area, perform the following settings:

− Select All for the protected targets.

− Select All for the attack categories.

− Set To-server and To-client for the direction.

− Set the default actions to drop, permit, reset, and blacklist.

− Set the severity levels to critical, high, medium, and low.

4
Figure 2 Signature filtering criteria configuration

# In the Global profile action area, perform the following settings:

 Set drop as the action.

 Enable logging.

 Use the default settings for other parameters.

5
Figure 3 Global profile action configuration

# Click OK.

5. Create security policies:

# On the top navigation bar, click Policies.

# From the navigation pane, select Security Policies > Security Policies.

# Click Create, and then click Create a policy.

# In the dialog box that opens, configure a security policy named untrust-trust to permit the

specified traffic from the Untrust to Trust security zones:

 Enter policy name untrust-trust.

 Select source zone Untrust.

 Select destination zone Trust.

 Select type IPv4.

 Select action Permit.

 Select destination IP address [Link]/24.

 Select WAF profile waf in the Content security area.

 Use the default settings for other parameters.

6
# Click OK.

# Create security policy trust-untrust to permit the specified traffic from the Trust to Untrust

security zones:

 Enter policy name trust-untrust.

 Select source zone Trust.

 Select destination zone Untrust.

 Select type IPv4.

 Select action Permit.

 Select source IP addresses [Link]/24.

 Select WAF profile waf in the Content security area.

 Use the default settings for other parameters.

# Click OK.

# Click Submit to have the WAF profile configuration take effect.

Verifying the configuration

Verify that WAF can protect the internal network from known Web application layer attacks.

You can view the threat logs generated for these events from log hosts. (Details for configuring log

hosts are not shown.)

Common questions

Powered by AI

The WAF (Web Application Firewall) feature protects an internal network by filtering and monitoring HTTP requests to prevent web application attacks like SQL injection and cross-site scripting. Configuring the WAF as the security gateway impacts security by acting as a barrier between the internet and internal servers, filtering out malicious requests before they access critical resources . This configuration ensures that all web application layer attacks are identified and mitigated using predefined criteria and signature libraries . This reduces the risk of attacks and ensures continuity of network functionalities by dropping or resetting dangerous connections while permitting legitimate traffic.

Misconfiguring security zones in WAF, such as improper setting of Trust and Untrust zones, can lead to several security implications. For instance, mislabeling an untrustworthy source as 'Trust' could allow malicious traffic through to sensitive parts of the network, undermining security measures and potentially leading to data breaches . Conversely, treating secure parts of the network as 'Untrust' could unnecessarily block legitimate traffic, disrupting service availability and affecting user experience. Therefore, accurate configuration of these zones is critical to ensuring only desired communications occur between trusted network segments and external entities.

Enabling logging in the WAF global profile action enhances network security management by providing visibility into attempted attacks and WAF's responses, allowing administrators to analyze and refine security measures based on logged incidents . Logs serve as vital records for forensic investigations, compliance audits, and proactive threat management by identifying trends and potential weaknesses. Without logging, network administrators lack insight into security events, reducing their ability to promptly respond to incidents or predict future threats, ultimately weakening the network's security posture.

The 'untrust-trust' and 'trust-untrust' security policies in the WAF configuration define permissible traffic flows between network security zones, establishing the direction and criteria for data transmission. The 'untrust-trust' policy allows traffic from external (Untrust) zones to internal (Trust) zones under specific conditions, such as defined source/destination IPs and WAF profile applications, ensuring only legitimate traffic is permitted . Similarly, the 'trust-untrust' policy regulates traffic from internal zones to external networks, maintaining oversight and control over outbound connections and protecting internal resources from unauthorized access or data leaks . These policies are integral to implementing a secure, efficient data flow management strategy in a network environment.

To configure a static routing rule in WAF, navigate to the 'Static Routing' option under the 'Network' settings, create a new IPv4 static route for reaching the destination IP 0.0.0.0, set the mask length to 0, and specify the next hop address as 20.1.1.2, then save the configurations . Static routing is crucial for network security and efficiency as it ensures predictable and direct traffic flow between network segments, minimizing unnecessary data exposure paths and enabling efficient traffic management essential for security policies in a WAF-enabled environment.

Updating the WAF signature library is crucial because it ensures the firewall can recognize and block the latest web application threats, as newer attack methods continually emerge. A library that remains outdated increases vulnerability, as WAF's ability to detect and mitigate latest threats diminishes . An up-to-date library maintains WAF's performance by enabling it to adapt to evolving threats, thereby sustaining its effectiveness as a security measure.

Setting default actions such as drop, permit, reset, and blacklist in a WAF profile's configuration is pivotal to determining the firewall's response to suspicious or malicious traffic. 'Drop' deletes the packet without notifying the sender, preventing attacks' progression. 'Permit' allows the connection if deemed safe. 'Reset' terminates the connection abruptly to hinder an attack and signal to the sender that the activity is undesired . 'Blacklist' adds an IP to a blocklist for extended denial of service. These actions collectively enforce security policies by letting the WAF respond dynamically based on threat levels, minimizing intrusion risks while maintaining connectivity for legitimate requests.

When assigning IP addresses to interfaces in WAF configuration, ensure that each IP is logically representative of its role within network security zones (e.g., Trust or Untrust). This example assigns addresses like 10.1.1.1/24 for internal 'Trust' interfaces and 20.1.1.1/24 for external 'Untrust' interfaces . Proper subnetting ensures efficient use of the IP space and avoids conflicts in addressing. It's important to configure these settings with an understanding of the network's scalability needs and isolation requirements, reducing potential attack vectors and facilitating streamlined traffic routing aligned with security policies.

Setting various severity levels such as critical, high, medium, and low in WAF configuration is significant as it allows prioritization of threats based on their potential impact. High severity threats, such as DDoS attacks, require immediate action, while lower severity incidents might only warrant monitoring . By categorizing risks, network administrators can allocate resources efficiently, responding swiftly to significant threats while still managing less severe incidents. This classification helps in developing a responsive threat management strategy, ensuring critical threats are neutralized quickly to protect the network integrity and baselining appropriate measures for less impactful risks.

The distinction between 'To-server' and 'To-client' in WAF signature filtering criteria is crucial because it determines the direction of traffic being analyzed for potential threats. 'To-server' refers to incoming traffic targeting servers within the network, while 'To-client' targets end devices external to the network receiving data from servers . Recognizing these distinctions allows for precise application of security measures suitable for protecting critical infrastructure ('To-server') from direct attacks and securing communication channels from server responses or data leaks ('To-client'), enhancing overall network security.

You might also like