Table of Contents
A proxy can operate in one of four different modes:
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.
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).
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.
In block mode blocking and logging is performed according to the access policy.
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).
The operating mode can be changed in several places: In the list of configured proxies select the new operating mode in the Mode drop-down box for the proxy to be changed.
In the list of configured proxies shown when selecting -> the mode can be changed by selecting the new operating mode in the Mode drop-down box for the proxy to be changed.
In the
Learner
configuration and overview page (
->
->
->
) the mode can be changed by selecting the new
operating mode in the
Mode
drop-down
box.
In the Web application firewall configuration section ( -> -> -> ) the mode can also be changed via a Mode drop-down box.
If the Learner is configured
(default) to automatically build an access policy when information
sampling thresholds are reached the operating mode will
automatically be changed from Learn to
Detect by the Learner when
the sampled data is analyzed and a policy has been built.
Path: -> + .
Follow the steps below.
In the Virtual server section
Select HTTP as the protocol.
Enter the fully qualified domain name (e.g. www.mydomain.com) or IP address in the Virtualhost/IP field - that is: The public address of the web server you want to add a proxy for.
Select the port the TCP/IP port number assigned for the proxy. Default: <HTTP=80, HTTPS=443)
When the proxy is created virtual host aliases can be added in -> -> -> .
For more information see Section 10.3, “Virtual host aliases”
In the Real web server section
Select the protocol you want Profense™ to use for traffic between Profense™ and the web server. HTTP is the default selection but HTTPS is also possible if you want the traffic to be SSL-encrypted.
Enter the IP address or domain name of the web server domain name requires a name server to be configured for Profense™ - see page 41)
Enter the port number the web server is listening to.
Please refer to the proxy management section for details on configuring the proxy.
When the HTTP-proxy is configured click the save proxy button.
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”).
In the Virtual server section
Select HTTPS as the protocol.
Enter the fully qualified domain name (e.g. www.mydomain.com) or IP address in the Virtualhost/IP field - that is: The public address of the web server you want to add a proxy for.
Select the port the TCP/IP port number assigned for the proxy. Default: <HTTP=80, HTTPS=443)
Select the IP address for the SSL-proxy in the bind drop-down box. Be sure not to select an address which is bound to another SSL-proxy.
Initially the proxy will be created with a temporary "self signed" certificate. The real SSL certificate will be imported when the proxy is added to the system.
In the Real web server section
Select the protocol you want Profense™ to use for traffic between Profense™ and the web server. HTTP is the default selection but HTTPS is also possible if you want the traffic to be SSL-encrypted.
Enter the IP address or domain name of the web server domain name requires a name server to be configured for Profense™
Enter the port number the web server is listening to.
Please refer to the proxy management section for details on configuring the proxy.
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 button.
When creating a proxy for an existing HTTPS web server you need to move the SSL-certificate from the web server to Profense™. This is done by exporting the SSL-certificate from the web server and importing it into Profense™.
Profense™ supports importing of PKCS12 and PEM encoded server certificates.
To export a certificate from the web server please refer to the vendors guidelines:
Microsoft
Microsoft guidelines can be found on these addresses:
Export the certificate to a .PFX file (default) which is PKCS12 encoded.
Apache
For web servers running Apache:
Obtain the SSL-certificate file from the web servers file system. By default the file is PEM-encoded.
To import a certificate go to -> -> -> .
In the section Virtual web server select .
Depending on the format of the certificate select the appropriate action in the bullet list.
If the certicifate is in the PKCS12 format follow the guidelines below:
Enter the path to the certificate file in the PKCS12 file input field.
Enter Passphrase in the Passphrase input field.
Click in the lower button pane.
If the certificate is in the PEM format follow the guidelines below:
Open the .PEM file in a text-editor. Copy the public certificate section of the certificate.
The public key/certificate is the section of the certificate file between (and including) the certificate start and end tags. Example:
-----BEGIN CERTIFICATE----- Certificate characters -----END CERTIFICATE-----
Select Import SSL certificate In the Profense™ management interface
Paste the SSL public key/certificate into the SSL-certificate field.
Go back to the text editor and copy the (SSL) private key section of the certificate. The (SSL) private key is the section of the certificate file between (and including) the private key start and end tags. Example:
-----BEGIN RSA PRIVATE KEY----- Private key characters -----END RSA PRIVATE KEY-----
Enter the passphrase for the private key in the passphrase field (if the original private key was encrypted).
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:
This will create two Carp interfaces with
types The Enable cluster synchronization and designate the role TEACH in the Synchronization configuration section:
|
| Node 2 (slave) configuration |
Create LOADBALANCE SLAVE interfaces by doing the following:
This will create two Carp interfaces with
types The 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.
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:
|
To configure a fail-over (active/passive) cluster of two Profense™ nodes do the following:
| Node 1 configuration |
Create a FAILOVER-MASTER interface by doing the following:
Enable cluster synchronization and designate the role TEACH in the Synchronization configuration section:
|
| Node 2 configuration |
Create a FAILOVER-BACKUP interface for the same virtual IP by doing the following:
Enable cluster synchronization and designate the role LEARN in the Synchronization configuration section:
|