From: Michael Tremer Date: Sun, 16 Aug 2009 21:28:56 +0000 (+0200) Subject: firewall: Make logging to ulogd the default. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c10ee854f4525aa06b3b48023c5762341f92e99f;p=ipfire-3.x.git firewall: Make logging to ulogd the default. --- diff --git a/src/firewall/functions.iptables b/src/firewall/functions.iptables index 4ede215bc..630bcce58 100644 --- a/src/firewall/functions.iptables +++ b/src/firewall/functions.iptables @@ -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 }