Received: from smtp2.outgoing.loopia.se (smtp2.outgoing.loopia.se [93.188.3.37]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 0CFEA78177F for <~alpine/users@lists.alpinelinux.org>; Mon, 16 Sep 2019 20:46:42 +0000 (UTC) Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 7387B2E3AD69 for <~alpine/users@lists.alpinelinux.org>; Mon, 16 Sep 2019 22:46:41 +0200 (CEST) Received: from s645.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 5496C2E2F265 for <~alpine/users@lists.alpinelinux.org>; Mon, 16 Sep 2019 22:46:41 +0200 (CEST) Received: from s476.loopia.se (unknown [172.22.191.5]) by s645.loopia.se (Postfix) with ESMTP id 3E968156E4C6 for <~alpine/users@lists.alpinelinux.org>; Mon, 16 Sep 2019 22:46:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s498.loopia.se ([172.22.191.5]) by s476.loopia.se (s476.loopia.se [172.22.190.16]) (amavisd-new, port 10024) with LMTP id GZ_LjUg3mICr for <~alpine/users@lists.alpinelinux.org>; Mon, 16 Sep 2019 22:46:40 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: peter@libassi.se X-Loopia-Originating-IP: 78.82.163.229 Received: from [10.0.1.4] (c-e5a3524e.03-77-73746f30.bbcust.telenor.se [78.82.163.229]) (Authenticated sender: peter@libassi.se) by s498.loopia.se (Postfix) with ESMTPSA id D7A684707A2 for <~alpine/users@lists.alpinelinux.org>; Mon, 16 Sep 2019 22:46:40 +0200 (CEST) From: Peter Libassi Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: iptables log via busybox syslog to a file Message-Id: <2B706E47-843E-4C47-BE9B-17F62BC655AA@libassi.se> Date: Mon, 16 Sep 2019 22:46:40 +0200 To: ~alpine/users@lists.alpinelinux.org X-Mailer: Apple Mail (2.3445.104.11) Hi, = =20 = =20 I cant get iptables to LOG to a file via busybox syslog: = =20 = =20 mordor:/var/log# uname -a = =20 Linux mordor 4.19.72-0-vanilla #1-Alpine SMP Wed Sep 11 12:44:45 UTC = 2019 x86_64 = =20 mordor:/var/log# cat /etc/syslog.conf = =20 kern.warning /var/log/iptables.log = =20 = =20 mordor:/var/log# rc-service syslog restart = =20 * WARNING: you are stopping a boot service = =20 * Stopping busybox crond ... = [ ok ]=20 * Stopping busybox syslog ... = [ ok ]=20 * Starting busybox syslog ... = =20 = =20 mordor:/var/log# logger -p kern.warning hello = =20 mordor:/var/log# cat iptables.log = =20 Sep 16 22:30:38 mordor kern.warn root: hello = =20 = =20 mordor:/var/log# iptables -A FORWARD -j LOG --log-level 4 = =20 mordor:/var/log# iptables -A INPUT -j LOG --log-level 4 = =20 = =20 mordor:/var/log# iptables -L -v = =20 Chain INPUT (policy ACCEPT 129 packets, 8595 bytes) = =20 pkts bytes target prot opt in out source = destination =20 744 51353 LOG all -- any any anywhere = anywhere =20 = =20 Chain FORWARD (policy ACCEPT 981 packets, 391K bytes) = =20 pkts bytes target prot opt in out source = destination =20 981 391K LOG all -- any any anywhere = anywhere =20 = =20 Chain OUTPUT (policy ACCEPT 87 packets, 10796 bytes) = =20 pkts bytes target prot opt in out source = destination =20 = =20 mordor:/var/log# cat iptables.log = =20 Sep 16 22:30:38 mordor kern.warn root: hello = =20 = =20 = =20 What am I missing? = =20 Thanks =20 Peter =20=