Update 'firewall/firewall-add'
Added debug lines into files
This commit is contained in:
@@ -3,7 +3,9 @@
|
|||||||
# Debugging function
|
# Debugging function
|
||||||
debug() {
|
debug() {
|
||||||
if [ $DEBUG -eq 1 ]; then
|
if [ $DEBUG -eq 1 ]; then
|
||||||
echo "DEBUG: "$1 $2 $3
|
echo `date`" DEBUG: "$1 $2 $3
|
||||||
|
else
|
||||||
|
echo `date`" DEBUG: "$1 $2 $3 >> /var/log/iptables.log;
|
||||||
fi;
|
fi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user