2018-01-30 10:40:13 +00:00
|
|
|
===================
|
|
|
|
Setup Caching Proxy
|
|
|
|
===================
|
|
|
|
|
|
|
|
.. image:: images/proxy_basics.png
|
2018-07-31 14:51:11 +00:00
|
|
|
:width: 100%
|
2018-01-30 10:40:13 +00:00
|
|
|
|
|
|
|
----------------
|
|
|
|
Enable / Disable
|
|
|
|
----------------
|
|
|
|
The proxy is delivered with sane default settings for easy setup.
|
2019-03-06 17:27:21 +00:00
|
|
|
To enable the proxy just go to :menuselection:`Services --> Web Proxy --> Administration` and
|
2020-01-09 15:44:38 +00:00
|
|
|
check **Enable proxy** then click on **Apply**. The default will enable the proxy
|
2018-01-30 10:40:13 +00:00
|
|
|
with User Authentication based on the local user database and runs on port 3128
|
|
|
|
of the lan interface.
|
|
|
|
|
|
|
|
-----------------------
|
|
|
|
Change Proxy Interfaces
|
|
|
|
-----------------------
|
|
|
|
If you want to change the interfaces (subnets) the proxy will bind to then click
|
|
|
|
on the tab **Forward Proxy**. Now add/remove the interfaces in the **Proxy interfaces**
|
2020-01-09 15:47:23 +00:00
|
|
|
field.
|
2018-01-30 10:40:13 +00:00
|
|
|
|
|
|
|
---------------------------
|
|
|
|
Change Proxy Listening Port
|
|
|
|
---------------------------
|
|
|
|
By default the proxy will listen at port 3128, you can change this by clicking
|
2018-11-07 16:45:54 +00:00
|
|
|
on the tab **Forward Proxy** and fill in the port in the **Proxy port** field.
|
2018-01-30 10:40:13 +00:00
|
|
|
Don't forget to **Apply** your changes.
|
|
|
|
|
|
|
|
------------
|
|
|
|
Enable Cache
|
|
|
|
------------
|
|
|
|
To enable caching click on the arrow next to the **General Proxy Settings** to
|
|
|
|
see the dropdown menu and click on **Local Cache Settings**.
|
|
|
|
|
|
|
|
.. image:: images/proxy_cache.png
|
|
|
|
|
|
|
|
Check the **Enable local cache** and click **Apply**.
|
|
|
|
|
|
|
|
.. Important::
|
|
|
|
|
|
|
|
As the cache is not created by default you will need to stop and start the service
|
2020-06-15 18:00:31 +00:00
|
|
|
under :menuselection:`System --> Diagnostics --> Services`, this will ensure correct creation of the cache.
|
2018-01-30 10:40:13 +00:00
|
|
|
|
|
|
|
Advanced
|
|
|
|
--------
|
|
|
|
Under the advanced settings (see mode switch on left top of the form) you can
|
|
|
|
change the cache size, directory structure and max object size to keep in cache.
|
2018-11-07 16:45:54 +00:00
|
|
|
Again defaults are fine for normal browsing and creates a 100 MB cache with max 4 MB
|
2018-01-30 10:40:13 +00:00
|
|
|
object size.
|
|
|
|
|
|
|
|
|
|
|
|
----------------------------
|
|
|
|
Change Authentication Method
|
|
|
|
----------------------------
|
|
|
|
Click on the arrow next to the **Forward Proxy** tab to show the drop down menu.
|
|
|
|
Now select **Authentication Settings** and select the desired Authenticator(s) in
|
|
|
|
the field **Authentication method**. Click on **Clear All** if you do not want to
|
|
|
|
use any authentication.
|
|
|
|
|
2019-03-06 17:27:21 +00:00
|
|
|
Depending on the Authentication Servers you have setup under :menuselection:`System --> Access --> Servers`
|
2018-01-30 10:40:13 +00:00
|
|
|
You can select one or more of the following:
|
|
|
|
|
|
|
|
* No Authentication (leave field blank)
|
|
|
|
* Local User Database
|
|
|
|
* LDAP
|
|
|
|
* Radius
|
|
|
|
|
|
|
|
---------
|
|
|
|
FTP Proxy
|
|
|
|
---------
|
2020-01-09 15:49:14 +00:00
|
|
|
To enable the FTP Proxy click on the arrow next to the **Forward Proxy** tab to
|
2018-01-30 10:40:13 +00:00
|
|
|
show the drop down menu. Now select **FTP Proxy Settings** and select one or more
|
|
|
|
interfaces in the **FTP proxy interfaces** field and **Apply**.
|
|
|
|
|
|
|
|
.. Note::
|
|
|
|
The FTP proxy will only function if the Proxy Server itself is enabled.
|
|
|
|
And the proxy only works for non encrypted ftp traffic.
|
|
|
|
|
|
|
|
-------------------
|
|
|
|
Access Control List
|
|
|
|
-------------------
|
2018-11-08 19:59:18 +00:00
|
|
|
You can setup ACLs by clicking on the arrow next to **Forward Proxy** and select
|
2018-01-30 10:40:13 +00:00
|
|
|
**Access Control List**. Here you can:
|
|
|
|
|
|
|
|
* Setup Allowed Subnets (By default the proxy interfaces will be allowed)
|
2018-11-07 16:45:54 +00:00
|
|
|
* Add Unrestricted IP addresses (Unrestricted means just that, no authentication and no blacklisting for those IPs)
|
2018-01-30 10:40:13 +00:00
|
|
|
* Add Banned hosts IP address (A ban will stop this client from being able to use the proxy)
|
|
|
|
* Whitelist (Click on the (i) to see examples, whitelist prevail above blacklists)
|
|
|
|
* Blacklist (If not allowed by a whitelist, this will block traffic based upon a regular expression)
|
|
|
|
|
|
|
|
.. Warning::
|
|
|
|
Don't forget to press Enter or a comma after filling in a tag field as otherwise
|
|
|
|
the value will not be applied. It should look similar to:
|
|
|
|
|
|
|
|
.. image:: images/proxy_tag.png
|
|
|
|
|
|
|
|
-------------------------------
|
|
|
|
Remote Black List / Ad Blocking
|
|
|
|
-------------------------------
|
|
|
|
Use simple flat files to block ads.
|
|
|
|
For this sample we will use the ad list found here:
|
|
|
|
|
|
|
|
http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml
|
|
|
|
|
|
|
|
This list is a simple flat list that looks like this:
|
|
|
|
|
|
|
|
.. code-block:: guess
|
|
|
|
|
|
|
|
101com.com
|
|
|
|
101order.com
|
|
|
|
123found.com
|
|
|
|
180hits.de
|
|
|
|
180searchassistant.com
|
|
|
|
1x1rank.com
|
|
|
|
207.net
|
|
|
|
247media.com
|
|
|
|
|
2019-03-06 17:27:21 +00:00
|
|
|
Go to :menuselection:`Services --> Web Proxy --> Administration` and click on the tab **Remote
|
2018-01-30 10:40:13 +00:00
|
|
|
Access Control Lists**
|
|
|
|
|
|
|
|
Now click on the **+** at the bottom right corner of the form to add a new list.
|
|
|
|
|
|
|
|
Fill in:
|
|
|
|
|
|
|
|
================= ======================= ===========================================
|
|
|
|
**Enabled** Checked *Enable/Disable*
|
|
|
|
**Filename** yoyoads *Choose a unique filename*
|
|
|
|
**URL** (copy/paste the URL) *The URL of the blacklist*
|
|
|
|
**categories** (Leave blank) *Used for Category based web filtering*
|
|
|
|
**Description** Yoyo Ads Blacklist *Your description*
|
|
|
|
================= ======================= ===========================================
|
|
|
|
|
|
|
|
Looks like (screenshots of version 16.1.4):
|
|
|
|
|
|
|
|
.. image:: images/proxy_blacklist.png
|
2018-07-31 14:51:11 +00:00
|
|
|
:width: 100%
|
2018-01-30 10:40:13 +00:00
|
|
|
|
|
|
|
**Save changes**
|
|
|
|
|
|
|
|
Now click on **Download ACLSs & Apply** to enable the blacklist/ad blocker.
|
|
|
|
|
|
|
|
-----------------------------
|
|
|
|
Firewall Rule No Proxy Bypass
|
|
|
|
-----------------------------
|
|
|
|
To make sure no-one can bypass the proxy you need to add a firewall rule.
|
2019-03-06 17:27:21 +00:00
|
|
|
Go to :menuselection:`Firewall --> Rules` and add the following to the top of the list rule on the
|
2018-01-30 10:40:13 +00:00
|
|
|
LAN interface (if LAN is where your clients and proxy are on).
|
|
|
|
|
|
|
|
============================ =====================
|
|
|
|
**Action** Block
|
|
|
|
**Interface** LAN
|
|
|
|
**Protocol** TCP/UDP
|
|
|
|
**Source** LAN net
|
|
|
|
**Destination Port Range** HTTP
|
|
|
|
**Category** Block Proxy Bypass
|
2018-11-08 19:59:18 +00:00
|
|
|
**Description** Block HTTP bypass
|
2018-01-30 10:40:13 +00:00
|
|
|
============================ =====================
|
|
|
|
|
|
|
|
**Save**
|
|
|
|
|
|
|
|
And one more rule to block HTTPS access:
|
|
|
|
|
|
|
|
============================ =====================
|
|
|
|
**Action** Block
|
|
|
|
**Interface** LAN
|
|
|
|
**Protocol** TCP/UDP
|
|
|
|
**Source** LAN net
|
|
|
|
**Destination Port Range** HTTPS
|
|
|
|
**Category** Block Proxy Bypass
|
2018-11-08 19:59:18 +00:00
|
|
|
**Description** Block HTTPS bypass
|
2018-01-30 10:40:13 +00:00
|
|
|
============================ =====================
|
|
|
|
|
|
|
|
**Save** & **Apply changes**
|
|
|
|
|
|
|
|
.. image:: images/proxy_firewall.png
|
2018-07-31 14:51:11 +00:00
|
|
|
:width: 100%
|
2018-01-30 10:40:13 +00:00
|
|
|
|
|
|
|
-------------------------
|
|
|
|
Configure Browser/Firefox
|
|
|
|
-------------------------
|
|
|
|
To configure you browser for use with the proxy, just go to your network settings
|
|
|
|
and configure a proxy like this in firefox:
|
|
|
|
|
|
|
|
.. image:: images/proxy_firefox.png
|
2018-07-31 14:51:11 +00:00
|
|
|
:width: 100%
|
2018-01-30 10:40:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
For a set-for-step guide on full category based web filtering see :doc:`proxywebfilter`.
|