]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
firewall: Make logging to ulogd the default.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Aug 2009 21:28:56 +0000 (23:28 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Aug 2009 21:28:56 +0000 (23:28 +0200)
src/firewall/functions.iptables

index 4ede215bc1799ce37774cb9a0a59650353e071a8..630bcce58a623d3b80f794be30c466ec48d0bfd2 100644 (file)
@@ -114,13 +114,13 @@ function iptables_LOG() {
        local prefix
        prefix=$1
 
-       if [ "$LOG_FACILITY" = "ulogd2" ]; then
+       if [ "$LOG_FACILITY" = "syslog" ]; then
+               echo -n "LOG"
+               [ -n "$prefix" ] && echo -n " --log-prefix \"$prefix\""
+       else
                echo -n "NFLOG"
                [ -n "$prefix" ] && echo -n " --nflog-prefix \"$prefix\""
                echo -n " --nflog-threshold 30"
-       else
-               echo -n "LOG"
-               [ -n "$prefix" ] && echo -n " --log-prefix \"$prefix\""
        fi
        echo
 }