diff options
author | Phil Sutter <phil@nwl.cc> | 2022-01-28 15:32:10 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-02-04 09:49:23 +0100 |
commit | 17ed253f9dd401d7b83b81f5db93411bee592a40 (patch) | |
tree | 2b953d3422b0d705678746b329b2c7765176ba6e /iptables/iptables-restore.8.in | |
parent | a761a026c60d4ce4e8f9a79b6e51ddc57fe97e1a (diff) |
iptables-restore: Support for extra debug output
Treat --verbose just like iptables itself, increasing debug level with
number of invocations.
To propagate the level into do_command() callback, insert virtual '-v'
flags into rule lines.
The only downside of this is that simple verbose output is changed and
now also prints the rules as they are added - which would be useful if
the lines contained the chain they apply to.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/iptables-restore.8.in')
-rw-r--r-- | iptables/iptables-restore.8.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/iptables-restore.8.in b/iptables/iptables-restore.8.in index b4b62f92..883da998 100644 --- a/iptables/iptables-restore.8.in +++ b/iptables/iptables-restore.8.in @@ -54,6 +54,7 @@ Only parse and construct the ruleset, but do not commit it. .TP \fB\-v\fP, \fB\-\-verbose\fP Print additional debug info during ruleset processing. +Specify multiple times to increase debug level. .TP \fB\-V\fP, \fB\-\-version\fP Print the program version number. |