From d26c538b9a549082c1696221282c007692261a35 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 9 May 2018 01:15:10 +0200 Subject: xtables: add xtables-monitor This is a partial revert of commit 7462e4aa757dc28e74b4a731b3ee13079b04ef23 ("iptables-compat: Keep xtables-config and xtables-events out from tree") and re-adds xtables-events under a new name, with a few enhancements, this is --trace mode, which replaces printk-based tracing, and an imroved event mode which will now also display pid/name and new generation id at the end of a batch. Example output of xtables-monitor --event --trace PACKET: 10 fa6b77e1 IN=wlan0 MACSRC=51:14:31:51:XX:XX MACDST=1c:b6:b0:ac:XX:XX MACPROTO=86dd SRC=2a00:3a0:2::1 DST=2b00:bf0:c001::1 LEN=1440 TC=18 HOPLIMIT=61 FLOWLBL=1921 SPORT=22 DPORT=13024 ACK PSH TRACE: 10 fa6b77e1 raw:PREROUTING:return: TRACE: 10 fa6b77e1 raw:PREROUTING:policy:DROP EVENT: -6 -t mangle -A PREROUTING -j DNPT --src-pfx dead::/64 --dst-pfx 1c3::/64 NEWGEN: GENID=6581 PID=15601 NAME=xtables-multi Signed-off-by: Florian Westphal --- iptables/.gitignore | 1 + 1 file changed, 1 insertion(+) (limited to 'iptables/.gitignore') diff --git a/iptables/.gitignore b/iptables/.gitignore index 7438ad12..5ca54adc 100644 --- a/iptables/.gitignore +++ b/iptables/.gitignore @@ -17,5 +17,6 @@ /xtables-config-parser.c /xtables-config-parser.h /xtables-config-syntax.c +/xtables-monitor.8 /xtables.pc -- cgit v1.2.3