pfSense

Setup

Install pfSense on your device, connect Ethernet cable to LAN port and navigate to http://192.168.1.1/

Login with username “admin” and password “pfsense” you will get to the setup wizard:

General information:

Follow the wizard to:

That’s it. pfSense will reload to get an ISP provided IP on the WAN interface via DHCP and provides IP address on the LAN interface via DHCP server.

DNS and DHCP

This is the basic DNS and DHCP configuration steps to setup pfSense systems for my home network.

*** System – General ***

*** Services – DNS Resolver ***

*** Services – DHCP Server ***

That’s it. Basic configuration steps for DNS and DHCP.

IPSec VPN

This is an walk through how to setup IPSec VPN on pfSense 2.3.3.

Go to VPN -> IPsec.

Go to Mobile Clients tab:

Create Phase 1:

Phase 2 Settings:

System – User Manager:

Firewall Rules:

That’s it, IPSec VPN should be up and running!

pfBlocker NG

Install “pfBlockerNG” package via System -> Package Manager -> Available Packages.

Got to Firewall -> pfBlockerNG.

General

NOTE: As it says you would not need to block any if you have no ports open in your firewall but as soon as you start opening ports for example for a web server it’s a good idea to have these blocks in place!

GeoIP

Reputation

IPv4 & IPv6:

Done!

Squid Proxy

Install “squid” package via System -> Package Manager -> Available Packages

Services -> Squid Proxy Server

General

Local Cache

Antivirus

That’s it. Squid should be up and running. It will take a while until the ClamAV DB are downloaded until then there will be errors on the Real Time tab but that will resolve eventually.

SquidGuard

Install  SquidGuard from packages repository.

Services -> SquidGuard Proxy Filter

Blacklist

Target categories

Common ACL

General settings

In order to have automatic Blacklist updates via cron do the following:

That’s it, SquidGuard should be up and running!

Snort

Install the Snort package via System -> Package Manager -> Available Packages.

Go to Services -> Snort -> Snort Interfaces -> WAN Settings:

Services -> Snort -> Global Settings

Updates

Now the fun begins to carefully monitor your logs as Snort will block a lot of things and you need to add suppression lists to get rid of the false positives.

Tags: