+# Getting pf rules file.
+if [ ! -f $PFCTL_RULES ]; then
+ echo "The pf rules file $PFCTL_RULES does not exist"
+ exit 1
+fi
+
+# Checking if ossec table is configured
+CHECKTABLE=`cat ${PFCTL_RULES} | $GREP $PFCTL_TABLE`
+if [ -z "$CHECKTABLE" ]; then
+ echo "Table $PFCTL_TABLE does not exist"
+ exit 1
+fi