netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nftables: logging
@ 2009-07-29 21:49 Christoph A.
  2009-07-30 12:42 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph A. @ 2009-07-29 21:49 UTC (permalink / raw)
  To: Netfilter Developer Mailing List; +Cc: Christoph A.

[-- Attachment #1: Type: text/plain, Size: 712 bytes --]

Hi,

from iptables I'm used to see the logging output in the default syslog
files, with nftables this seams to be different.
My rule looks like this:

[...]
ct state new log prefix "start: " accept

but there are no log entries in the syslog file.
Where does nftables writes its logs?

The nft_log module is loaded:
lsmod|grep nft_l
nft_log                 1952  1
nf_tables              25540  43
nft_meta,nft_log,nft_payload,nft_ct,nft_rbtree,nft_hash,nf_tables_ipv4

For testing it would be very handy to have a working logging setup.

Is there already a way to dump the current rules from the kernel to
stdout (like iptables -vnL) - if this is even possible?

thanks,
Christoph A.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: nftables: logging
  2009-07-29 21:49 nftables: logging Christoph A.
@ 2009-07-30 12:42 ` Patrick McHardy
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2009-07-30 12:42 UTC (permalink / raw)
  To: Christoph A.; +Cc: Netfilter Developer Mailing List

Christoph A. wrote:
> from iptables I'm used to see the logging output in the default syslog
> files, with nftables this seams to be different.
> My rule looks like this:
> 
> [...]
> ct state new log prefix "start: " accept
> 
> but there are no log entries in the syslog file.
> Where does nftables writes its logs?
> 
> The nft_log module is loaded:
> lsmod|grep nft_l
> nft_log                 1952  1
> nf_tables              25540  43
> nft_meta,nft_log,nft_payload,nft_ct,nft_rbtree,nft_hash,nf_tables_ipv4
> 
> For testing it would be very handy to have a working logging setup.
> 
> Is there already a way to dump the current rules from the kernel to
> stdout (like iptables -vnL) - if this is even possible?

nftables uses the netfilter logging API, which needs a backend
to actually make something out of the entries. You can either
load ipt_LOG/ip6t_LOG or use nfnetlink_log.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-30 12:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-29 21:49 nftables: logging Christoph A.
2009-07-30 12:42 ` Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).