Device Configuration : Protect : Add Business Application Rule (Web Server Protection (WAF))
Add Business Application Rule (Web Server Protection (WAF))
(only available for IPv4 policy) This page describes how to configure a policy for controlling access to HTTP-based business applications.
1. Go to Device Configuration > Protect > Firewall and select IPv4. using the filter switch.
2. Click +Add Firewall Rule and Business Application Rule.
3. Specify the general rule details.
Application Template
Select Web Server Protection (WAF) to define an application filter policy for HTTP based applications.
Description
Specify a description for the rule.
Rule Position
Specify the position of the rule.
Available Options:
Top
Bottom
Rule Name
Specify a name for the rule.
4. Specify Hosted Server details.
Hosted Address
Select the interface of the hosted server to which the rule applies. It is the public IP address through which Internet users access the internal server/host.
* When a connection is established by a client device and the client accesses the web server, the web server does not obtain the real client IP address. Reason is that the connection is made through the Web Application Firewall, so the address of the interface the WAF uses for the connection is delivered. To receive the real client IP address, the administrator has to read out the contents of the HTTP header "X-Forwarded-For".
Listening Port
Enter a port number on which the hosted web server can be reached externally over the Internet. Default is port 80 for plaintext communication (HTTP) and port 443 for encrypted communication (HTTPS).
HTTPS
Select to enable or disable scanning of HTTPS traffic.
HTTPS Certificate (only available if HTTPS is selected)
Select the HTTPS certificate to be used.
Redirect HTTP (only available if HTTPS is selected)
Select to redirect HTTP requests.
Domains
(if HTTPS is disabled): Enter the domains the web server is responsible for as FQDN, e.g. shop.example.com.
(if HTTPS is enabled): According to the selected HTTPS certificate, some domains may be preselected. You can edit or delete these domains or add new ones.
5. Specify Protected Server(s) details.
Path-specific routing
You can enable path-specific routing to define (a path) to which web servers incoming requests are forwarded.
You can define that all URLs with a specific path, for example, /products/, are sent to a specific web server. On the other hand you can allow more than one web server for a specific request but add rules how to distribute the requests among the servers. Additionally, you can define that each session is bound to one web server throughout its lifetime (sticky session). This may be necessary if you host an online shop and want to make sure that a user sticks to one server during the shopping session. You can also configure to send all requests to one web server and use the others only as a backup.
For each hosted web server, one default site path route (with path /) is created automatically. The device automatically applies the site path routes in the most reasonable way: starting with the strictest, i.e., longest paths and ending with the default path route which is only used if no other more specific site path route matches the incoming request. The order of the site path route list is not relevant. If no route matches an incoming request, (in case the default route was deleted), the request will be denied.
Add New Path (only available if Path-specific routing is selected)
Click Add Path to define a new path.
Add Path
* Add New Path will only be active after at least one web server and one hosted web server have been created.
Web Server (not available if Path-specific routing is selected)
With this option, you select the web servers that are to be protected. Select a web server from Web Server list. The selected web server is displayed on the right side of the table under Selected Web Server(s).
A new web server can be created on the Device Configuration > Protect > Web Server > Web Servers page.
6. Specify Access Permission details (not available if Path-specific routing is selected).
Allowed Client Networks
Select or add the allowed networks that should be able to connect to the hosted web server.
Blocked Client Networks
Select or add the denied networks that should be blocked to your hosted web server.
Authentication
Select a web app authentication profile or click Create new to create a new authentication profile. You can also create an authentication profile from the Device Configuration > Protect > Web Server > Authentication Policies page.
Add Web App Authentication
7. Add path Exceptions for the web servers.
Click Add New Exception to specify a new exception.
* Add Exception
8. Configure advanced settings.
a. Specify Profiles for Business Applications.
Intrusion Prevention
Select an Intrusion Prevention policy for the rule or create a new one. A new IPS policy can be created directly from this page or from the Device Configuration > Protect > Intrusion Prevention > IPS Policies page. You can also choose to have None intrusion prevention.
Traffic Shaping
The traffic shaping policy allocates & limits the maximum bandwidth usage of the user.
Select a traffic shaping policy for the rule or create a new one. A new traffic shaping policy can be created directly from this page or from the Device Configuration > System > Profiles > Traffic Shaping page. You can also choose to have None traffic shaping.
Application Protection
Select an application protection for the server or create a new one. A new application protection policy can be created directly from this page or from the Device Configuration > Protect > Web Server > Protection Policies page. You can also choose to have None application protection.
b. Specify Advanced settings for the added server.
Disable Compression Support
By default, this check box is disabled and the content is sent compressed when the client requests compressed data. Compression increases transmission speed and reduces page load time. However, in case of websites being displayed incorrectly or when users experience content-encoding errors accessing your web servers, it can be necessary to disable compression support. When the checkbox is enabled, the WAF will request uncompressed data from the web servers of this hosted web server and will pass it on uncompressed to the client, regardless of the HTTP request's encoding parameter.
Rewrite HTML
Select this option to have the device rewrite links of the returned webpages in order for the links to stay valid. Example: One of your web server instances has the hostname yourcompany.local but the hosted web server's hostname on the device is yourcompany.com. Thus, absolute links like [a href="http://yourcompany.local/"] will be broken if the link is not rewritten to [a href="http://yourcompany.com/"] before delivery to the client. However, you do not need to enable this option if either yourcompany.com is configured on your web server or if internal links on your webpages are always realized as relative links. It is recommended to use the option with Microsoft's Outlook web access and/or SharePoint portal server.
* HTML rewriting affects all files with a HTTP content type of text/* or *xml*, where * is a wildcard. Make sure that other file types, e.g. binary files, have the correct HTTP content type, otherwise they may get corrupted by the HTML rewriting process.
Rewrite cookies (only available if Rewrite HTML is selected)
Select this option to have the device rewrite cookies of the returned web pages.
Pass Host Header
When you select this option, the host header as requested by the client will be preserved and forwarded along with the web request to the web server. Whether passing the host header is necessary in your environment depends on the configuration of your web server.
9. Click Save.
* As soon as a new HTTP based rule configuration has been created and saved or an existing HTTP based rule configuration has been altered and saved, all HTTP based business rules will be restarted. Any underlying client connection using a HTTP based business rule will get lost and has to be re-established.
 
The business application rule has been created and appears on the Firewall page when the IPv4 filter is set.