Integrate Apache and Web Safety
Finally run the 03_integrate.sh script by typing
/bin/sh 03_integrate.sh in pfsense console (again the /bin/sh is here important). It will adjust configuration files and expose Web Safety UI on port 8080 (as standard port 80 is already taken by pfSense UI).
#!/bin/sh # in order to correctly start up apache at boot time init script needs to be renamed cp /usr/local/etc/rc.d/apache24 /usr/local/etc/rc.d/apache24.sh # make apache autostart sed -i '' 's/apache24_enable=\"NO\"/apache24_enable=\"YES\"/' /usr/local/etc/rc.d/apache24.sh # load wsgi module sed -i '' 's/\#LoadModule wsgi_module libexec\/apache24\/mod_wsgi.so/LoadModule wsgi_module libexec\/apache24\/mod_wsgi.so/' /usr/local/etc/apache24/modules.d/270_mod_wsgi.conf # make apache listen on 8080 port sed -i '' 's/Listen 80$/Listen 8080/' /usr/local/etc/apache24/httpd.conf # and include the virtual hosts sed -i '' 's/\#Include etc\/apache24\/extra\/httpd-vhosts.conf/Include etc\/apache24\/extra\/httpd-vhosts.conf/' /usr/local/etc/apache24/httpd.conf # copy default apache virtual hosts file just in case cp -f /usr/local/etc/apache24/extra/httpd-vhosts.conf /usr/local/etc/apache24/extra/httpd-vhosts.conf.default # virtual hosts file needs to contaion only web safety virtual host echo "Include /usr/local/etc/apache24/extra/websafety_virtual_host" > /usr/local/etc/apache24/extra/httpd-vhosts.conf # restart apache /usr/local/etc/rc.d/apache24.sh restart
Now reboot your pfSense box and login to http://10.0.0.1:8080 using root and Passw0rd credentials to finally see the UI of Web Safety filter.