Install web filter

To install the web filter run /bin/sh 02_websafety.sh script in the console of pfSense box as (please note the path to /bin/sh is important).

#!/bin/sh

# see if websafety group exists
echo "Searching for group websafety..."
getent group websafety >/dev/null

if [ $? -ne 0 ]; then
    echo "Group websafety is not found, please add it through pfSense Web UI."
    exit 1
else
    echo "Group websafety already exists, continuing..."
fi

# see if websafety user exists
echo "Searching for user websafety..."
getent passwd websafety >/dev/null

if [ $? -ne 0 ]; then
    echo "User websafety is not found, please add it through pfSense Web UI."
    exit 2
else
    echo "User websafety already exists, continuing..."
fi

# how to check user websafety is in websafety group???

# setup some configuration variables
ARCH=`uname -m`
DDWS_VERSION=7.0.0
DDWS_BUILD=8408

# get latest version of web safety
fetch http://packages.diladele.com/websafety/$DDWS_VERSION.$DDWS_BUILD/$ARCH/release/freebsd11/websafety-$DDWS_VERSION-$ARCH.txz

# and install it
pkg install -y websafety-$DDWS_VERSION-$ARCH.txz

Important

It may happen that at the time of installation the trial license that is built into the installer has already expired. In this case get the free trial license.pem file from support@diladele.com and install it as explained in article How to install the license key?