summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Sennikovsky <mikhail.sennikovskii@cloud.ionos.com>2021-04-06 12:09:45 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-05-03 22:34:19 +0200
commit49eec760fde49fcd85b33f339c17c4d0fa2b8605 (patch)
treeaf2c302e9d708c3898d61ddb5e1f9f75be95c948
parent501ecbcee2ee3ad43d815a23bcdbb66a5edafb6b (diff)
conntrack.8: man update for --load-file support
Signed-off-by: Mikhail Sennikovsky <mikhail.sennikovskii@cloud.ionos.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--conntrack.88
1 files changed, 8 insertions, 0 deletions
diff --git a/conntrack.8 b/conntrack.8
index 898daae..a14cca6 100644
--- a/conntrack.8
+++ b/conntrack.8
@@ -23,6 +23,8 @@ conntrack \- command line interface for netfilter connection tracking
.BR "conntrack -C [table]"
.br
.BR "conntrack -S "
+.br
+.BR "conntrack -R file"
.SH DESCRIPTION
The \fBconntrack\fP utilty provides a full featured userspace interface to the
Netfilter connection tracking system that is intended to replace the old
@@ -102,6 +104,9 @@ Show the table counter.
.TP
.BI "-S, --stats "
Show the in-kernel connection tracking system statistics.
+.TP
+.BI "-R, --load-file "
+Load entries from a given file. To read from stdin, "\-" should be specified.
.SS PARAMETERS
.TP
@@ -394,6 +399,9 @@ Delete all flow whose source address is 1.2.3.4
.TP
.B conntrack \-U \-s 1.2.3.4 \-m 1
Set connmark to 1 of all the flows whose source address is 1.2.3.4
+.TP
+.B conntrack -L -w 11 -o save | sed "s/-w 11/-w 12/g" | conntrack --load-file -
+Copy all entries from ct zone 11 to ct zone 12
.SH BUGS
Please, report them to netfilter-devel@vger.kernel.org or file a bug in