Script to setup application Samba AD authentication in squid for pfSense® software
pf2ad is a script for automating installation via NTLM authentication environment / AD in squid for pfSense® software. The script already does all the work required to leave the pfSense® software compatible with AD and adds it as a member in the AD tree.
The script is automatic, meaning you need not install anything, he will have to check the necessary dependencies and install the needed.
To make the application of change patches and NTLM authentication setting in pfSense® software, we will need version 2.3.4/2.4 of pfSense® software (amd64). Remember that this version is compatible (will install if you have not) with squid and SquidGuard package, you will need web access or console (recommend using the console via ssh to monitor the process).
To apply the patch, just run the following command:
See the all updates and extra documentations about the project at Github repository.
To apply the patch, run the command:
SAMBA 4 to 2.3.4 version:
fetch -q -o - https://raw.githubusercontent.com/pf2ad/pf2ad/2.3.4-SAMBA4/pf2ad.sh | sh
SAMBA 4 to 2.3.5 version:
fetch -q -o - https://raw.githubusercontent.com/pf2ad/pf2ad/2.3.5-SAMBA4/pf2ad.sh | sh
SAMBA 4 to 2.4.0 version:
fetch -q -o - https://raw.githubusercontent.com/pf2ad/pf2ad/2.4-SAMBA4/pf2ad.sh | sh
SAMBA 4 to 2.4.1 version:
fetch -q -o - https://raw.githubusercontent.com/pf2ad/pf2ad/2.4.1-SAMBA4/pf2ad.sh | sh
Questions ? Access the forum Mundounix
It will upgrade the system package, add a custom repository with samba version with AD support, will if necessary the installation of the dependent packages (squid3 and SquidGuard), apply changes to the Squid package code and the system menu to add configuration options of AD authentication.
If you still choose to use the web-based, use the option Diagnostics » command prompt as the image below:
Below, a screencast demonstrating how to apply the script via terminal (ssh)
Once the patch is applied, check the options, as follows:
Configure pfSense® software DNS to point to the AD server, with the options as follows
Configure the AD options
Once you apply the configuration, make sure the pfSense® software server was added in the tree Active Directory
Follow the procedure below a screencast
How to implement an LDAP filter in SquidGuard Optional
This script was written using hours of development, dedication and tests that came up to you. I will be very happy if my work this help you in something for your environment. Then I ask you to make a donation to the project so that I have resources to continue and maintain this and other projects.
Please contact me by email: email@example.com