pf2ad

Script to setup application Samba AD authentication in squid for pfSense® software

What is pf2ad ?

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.

How to Run

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:

Changelog

News with Samba4 version
  • 20171016001: pfSense® 2.4 compatible version
  • Enhancements in authentication (Now the default is kerberos, then NTLM and finally ldap as auth_basic)
  • Negotiate implementation
  • Finishing part of diagnostics in the gui (I still have to test and publish)

Script source

See the all updates and extra documentations about the project at Github repository.

Github

To apply the patch, run the command:

SAMBA 4 to 2.3.4 version:

Source: https://github.com/pf2ad/pf2ad/tree/2.3.4-SAMBA4

                          
  fetch -q -o - https://raw.githubusercontent.com/pf2ad/pf2ad/2.3.4-SAMBA4/pf2ad.sh | sh
                          
                      

SAMBA 4 to 2.3.5 version:

Source: https://github.com/pf2ad/pf2ad/tree/2.3.5-SAMBA4

                          
  fetch -q -o - https://raw.githubusercontent.com/pf2ad/pf2ad/2.3.5-SAMBA4/pf2ad.sh | sh
                          
                      

SAMBA 4 to 2.4.0 version:

Source: https://github.com/pf2ad/pf2ad/tree/2.4-SAMBA4

                          
  fetch -q -o - https://raw.githubusercontent.com/pf2ad/pf2ad/2.4-SAMBA4/pf2ad.sh | sh
                          
                      

SAMBA 4 to 2.4.1 version:

Source: https://github.com/pf2ad/pf2ad/tree/2.4.1-SAMBA4

                        
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:

Documentation

Screencasts

Below, a screencast demonstrating how to apply the script via terminal (ssh)

Once the patch is applied, check the options, as follows:

Procedure to add the pfSense® software in AD

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

Did You Like It? Make a donation!

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: me@luizgustavo.pro.br

Contact

Send suggestions, criticisms to my email:

luizgustavo@mundounix.com.br