Chapter 4. How to recipes

Table of Contents

1. Operating mode
1.1. Changing operating mode
2. Adding a proxy
2.1. Adding an HTTP proxy
2.2. Adding an HTTPS proxy
3. Clustering configuration
3.1. Configuring a load balanced cluster
3.2. Configuring a fail-over cluster

A proxy can operate in one of four different modes:

Pass

In pass mode all requests are passed through the proxy. No requests are blocked and no logging is performed.

When a proxy is added this mode is selected per default.

Learn

In learn mode the proxy is learning from requests. No requests are blocked and only requests maching a set of negative criteria are logged and classified.

When no new information is gained from additional requests a policy is generated and the proxy automatically switches to detect mode, if configured to do so (default).

Detect

In detect mode the proxy behaves as if it was running in block mode with the prominent exception that nothing actually gets blocked. It only logs the actions that would have been taken if it was running in block mode. The detect mode can be compared to an intrusion detection system. It detects but does not prevent policy violations. This mode is useful for testing a policy before going into block mode.

Block

In block mode blocking and logging is performed according to the access policy.

Auto

In Auto mode the proxy automatically adapts to changes in the web applications. Auto mode offers instant protection by employing a combination of positive and negative policy rules. At first a general negative policy is enforced but as Profense maps a profile of the web applications and the web site in general the policy becomes more specific and shift towards a positive security model for specific applications.

Auto mode is only available in Profense™ Professional (and trial).

Path: Proxy -> Manage + Add Proxy .

Follow the steps below.

Select operating mode (Section 1, “Operating mode”), initial configuration (Section 5.1, “Initial configuration”) and, if necessary, set buggy web server options (Section 3.7, “Adding a Proxy”).

When the HTTPS-proxy is configured click the Save proxy button.

If Profense™ is run in a load balanced environment or in a high availability configuration a cluster of Profense™ nodes can be configured to share the same ACL. With ACL synchronization one Profense™ node is assigned the role of Teacher and the other units are assigned a Learn role.

To configure a load balanced (active/active) cluster of two Profense™ nodes do the following:

Node 1 (master) configuration

Create LOADBALANCE MASTER interfaces by doing the following:

  1. In Cluster virtual IP configuration enter the virtual IP address of the cluster in the the Virtual IP field.

  2. In Netmask enter the netmask specifying the subnet for the virtual ip.

  3. In the Type drop-down menu select LOADBALANCE MASTER.

  4. Click the Add virtual IP button.

This will create two Carp interfaces with types LOADBALANCE and FAILOVER and the same VIP (Virtual IP).

The LOADBALANCE interface with priority 254 and the FAILOVER interface with priority 154. Apart from the IP and Netmask, when changes are applied (the blinking message in the upper right corner of the window), your configuration should look like below:


Enable cluster synchronization and designate the role TEACH in the Synchronization configuration section:

  1. Select Enable proxy settings synchronization

  2. Select TEACH in the Mode drop-down.

  3. Enter a password for the cluster in the Password field.

  4. Click the Save button.

Node 2 (slave) configuration

Create LOADBALANCE SLAVE interfaces by doing the following:

  1. In Cluster virtual IP configuration enter the virtual IP address of the cluster in the the Virtual IP field.

  2. In Netmask enter the netmask specifying the subnet for the virtual ip.

  3. In the Type drop-down menu select LOADBALANCE SLAVE.

  4. Click the Add virtual IP button.

This will create two Carp interfaces with types LOADBALANCE and FAILOVER and the same VIP (Virtual IP).

The LOADBALANCE interface with priority 154 and the FAILOVER interface with priority 254. Note that the priority is opposite the carp interfaces on the master node ( node 1 ).

You now have two carp interfaces with the same VIP (Virtual IP) as the interfaces configured on node 1 like the example below. Remember to apply changes by clicking blinking link apply changes in the upper right window corner, otherwise the state of the interfaces will not be reported correctly.


Supposing there are no other or an equal amount of CARP interfaces configured on both nodes the VHID on the two nodes should be equal.

  1. On node 1 the LOADBALANCE interface should have the same VHID as the LOADBALANCE interface on node 2.

  2. On node 2 the FAILOVER interface should have the same VHID as the FAILOVER interface on node 1.

Otherwise configure the interfaces two achieve the above in CARP interfaces (Section 1.4, “CARP Interfaces”).

Enable cluster synchronization and designate the role LEARN in the Synchronization configuration section:

  1. Select Enable proxy settings synchronization

  2. Select LEARN in the Mode drop-down.

  3. Enter the same cluster password as for node 1for the cluster in the Password field.

  4. Click the Save button.

© 2007 Armorlogic