Archive for the ‘firestarter’ Category

Firestarter and Moblock

Sunday, May 3rd, 2009

Firestarter is a firewall.  Moblock is an IP blocker.

To have both work together, I had to modify the firestarter script to restart Moblock.

After some digging, edit /etc/firestarter/firestarter.sh as sudo.

Find start_firewall function and modify it to this…

# Start the firewall, enforcing traffic policy
start_firewall () {
lock_firestarter
source /etc/firestarter/firewall 2>&1
retval=$?
if [ $retval -eq 0 ]; then
echo “Firewall started”
if [ -x /etc/init.d/blockcontrol ]; then
/etc/init.d/blockcontrol restart
fi

else
echo “Firewall not started”
unlock_firestarter
exit $retval
fi
}