#!/bin/sh # Script to be run at boot to re-enable all existing firewall blocks # Gets automatically added to by Abacus Sentry # # Dominic J. Eidson, Wed Mar 17 15:53:04 CST 1999 # Flush the chains /usr/sbin/iptables -F INPUT /usr/sbin/iptables -F OUTPUT /usr/sbin/iptables -F DROPANDLOG /usr/sbin/iptables -X DROPANDLOG /usr/sbin/iptables -N DROPANDLOG # Add rules to DROPANDLOG /usr/sbin/iptables -A DROPANDLOG -j LOG --log-tcp-sequence /usr/sbin/iptables -A DROPANDLOG -j DROP # Below come the commands to re-enable the ipchains rules after a # reboot - these get removed after 2 weeks automagically.