Table of Contents

PFSense - Squid - Setup completely

Step 1. Configuring the root Certificate Authority (rootCA)

Navigate to System → Cert Manager.

Click the green Add button.

Populate:

NOTE: Alternatively create the CA externally of pfSense.

openssl genrsa -out myProxyCA.key 2048

This will create an rsa key file named myProxyCA.key that we use to sign the pem file we will generate next.

Create a pem file signed with the key:

openssl req -x509 -new -nodes -key myProxyCA.key -sha256 -days 365 -out myProxyCA.pem

This will prompt you to answer some questions to generate the pem file:

Country Name (2 letter code) [AU]:**JE**
State or Province Name (full name) [Some-State]:**Jersey**
Locality Name (eg, city) []:**St. Helier**
Organization Name (eg, company) [Internet Widgits Pty Ltd]:**ShareWiz**
Organizational Unit Name (eg, section) []:**IT**
Common Name (e.g. server FQDN or YOUR name) []:**sharewiz.net**
Email Address []:

At this point you should have 2 files:

myProxyCA.pem
myProxyCA.key

Import this CA into pfSense:

  • Navigate to System → Cert Manager.
  • Click the green Add button.
  • Descriptive Name: SquidCA.
  • Method: Import an existing Certificate Authority.
  • Certificate data: Copy \ Paste the info from myProxyCA.pem file.
  • Certificate Private Key (optional): Copy \ Paste the info from myProxyCA.key file.
  • Serial for next certificate: 1.
  • Save and apply.


Step 2. Configuration of Squid

Navigate to Services → Squid Proxy Server.

On the General Settings tab:

Squid General Settings

Transparent Proxy Settings:

SSL Man In the Middle Filtering

Logging Settings

Advanced Features


On the Local Cache tab:

Squid Cache General Settings

Squid Hard Disk Cache Settings

Squid Memory Cache Settings

Dynamic and Update Content


On the Antivirus tab:

ClamAV Anti-Virus Integration Using C-ICAP


Step 3. Configuration of SquidGuard Proxy filter

Navigate to Services → SquidGuard Proxy filter.

On the General Settings tab:

General Options

LDAP Options

Logging Options

Miscellaneous

Blacklist options