2018-01-30 10:40:13 +00:00
|
|
|
===========================
|
|
|
|
Setup Anti Virus Protection
|
|
|
|
===========================
|
2018-11-08 19:59:18 +00:00
|
|
|
OPNsense can offer HTTP and HTTPS protection by utilizing its highly flexible
|
2018-01-30 10:40:13 +00:00
|
|
|
proxy and the industry standard ICAP. An external engine from one of the known
|
|
|
|
vendors is used to offer maximum protection against malware, such as ransomware,
|
2018-11-07 16:45:54 +00:00
|
|
|
trojans and viruses. This protection can be further enhanced by the built-in Intrusion
|
2018-01-30 10:40:13 +00:00
|
|
|
Prevention System and Category Based Web filtering.
|
|
|
|
|
|
|
|
This How To will utilize Symantec's Protection Engine, but any other vendor that
|
|
|
|
support ICAP will work just as well.
|
|
|
|
|
|
|
|
.. Note::
|
|
|
|
The Anti Virus Engine can protect you against malicious websites and infected
|
|
|
|
file downloads, it does not protect the local clients. Therefore it is always
|
|
|
|
a good idea to install a client based solution as well to protect against other
|
|
|
|
forms of infection such as through emails or usb stick.
|
|
|
|
|
|
|
|
.. image:: images/SPE_home.png
|
2018-07-31 14:51:11 +00:00
|
|
|
:width: 100%
|
2018-01-30 10:40:13 +00:00
|
|
|
|
|
|
|
Step 1 - Setup the Proxy
|
|
|
|
------------------------
|
|
|
|
Start with setting up the proxy with its basic configuration, see :doc:`cachingproxy`.
|
|
|
|
|
|
|
|
Step 2 - Setup Transparent Mode
|
|
|
|
-------------------------------
|
|
|
|
To setup the transparent mode, see: :doc:`proxytransparent`.
|
|
|
|
|
|
|
|
Step 3 - Configure the Engine
|
|
|
|
-----------------------------
|
|
|
|
For this example we have used Symantecs Protection Engine.
|
|
|
|
The installation is straight forward, please refer to Symantecs documentation for
|
|
|
|
full installation and configuration instructions.
|
|
|
|
|
|
|
|
We installed the Engine for Web Proxy purpose and enabled ICAP with its default settings.
|
|
|
|
|
|
|
|
.. image:: images/SPE_ICAP.png
|
2018-07-31 14:51:11 +00:00
|
|
|
:width: 100%
|
2018-01-30 10:40:13 +00:00
|
|
|
|
|
|
|
Step 4 - Connect the Engine
|
|
|
|
---------------------------
|
|
|
|
Now connect the server that the engine is installed on to OPNsense trough either
|
|
|
|
a switch or a direct cable connection. Preferable use a separate network for this
|
2018-11-08 19:59:18 +00:00
|
|
|
traffic to make sure the unencrypted ICAP traffic can't be tapped.
|
2018-01-30 10:40:13 +00:00
|
|
|
|
|
|
|
.. Note::
|
|
|
|
ICAP traffic is not encrypted, meaning you have to make sure the traffic is not
|
2018-11-08 19:59:18 +00:00
|
|
|
visible to anyone else. When using transparent HTTPS mode it is best to configure
|
2018-01-30 10:40:13 +00:00
|
|
|
a separate interface for ICAP traffic and connect the Server (Engine) directly
|
|
|
|
with a crosslink cable. Alternatively one may use a VLAN for this purpose.
|
|
|
|
|
|
|
|
Step 5 - Configure ICAP
|
|
|
|
-----------------------
|
2019-03-06 17:27:21 +00:00
|
|
|
To configure ICAP go to :menuselection:`Services --> Proxy --> Administration` and select **ICAP Settings**
|
2018-01-30 10:40:13 +00:00
|
|
|
for the **Forward Proxy** tab.
|
|
|
|
|
2018-11-09 12:52:31 +00:00
|
|
|
Select enable ICAP and filling the Request and Response URLs.
|
|
|
|
For Symantecs Protection Engine they look like this:
|
2018-01-30 10:40:13 +00:00
|
|
|
|
|
|
|
======================== ===================================
|
|
|
|
**Request Modify URL** icap://192.168.2.1:1344/avscanreq
|
|
|
|
**Response Modify URL** icap://191.168.2.1:1344/avscan
|
|
|
|
======================== ===================================
|
|
|
|
|
|
|
|
Now click on **Apply**
|
|
|
|
|
|
|
|
Step 6 - Test using EICAR
|
|
|
|
-------------------------
|
2019-10-29 16:28:48 +00:00
|
|
|
To test if the engine is operational and functional go to http://www.eicar.org/?page_id=3950
|
2018-01-30 10:40:13 +00:00
|
|
|
on this page you will find several files you can test.
|
|
|
|
|
2020-10-16 18:52:14 +00:00
|
|
|
First test the HTTP protocol version. If that works, test the HTTPS version if you
|
2018-11-08 19:59:18 +00:00
|
|
|
have also configured the transparent SSL proxy mode.
|
2018-01-30 10:40:13 +00:00
|
|
|
|
|
|
|
.. Warning::
|
|
|
|
**IMPORTANT NOTE** :
|
|
|
|
YOU DOWNLOAD THESE FILES AT YOUR OWN RISK!
|
|
|
|
|
|
|
|
|
|
|
|
If everything went well you should see something similar to this in you browser:
|
|
|
|
|
|
|
|
.. code-block:: guess
|
|
|
|
|
|
|
|
The content you just requested contains EICAR Test String and was blocked by the
|
|
|
|
Symantec Protection Engine based on local administrator settings. Contact your
|
|
|
|
local administrator for further information.
|
|
|
|
|
|
|
|
**DONE**
|