summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-nft.8
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-07-05 20:53:17 +0200
committerFlorian Westphal <fw@strlen.de>2018-07-05 20:53:34 +0200
commit7b66fc22aca000440fd6d6fbce7ff35811edea5e (patch)
treecee61ea15cd307ed13428f187ab7124aeb0717a9 /iptables/xtables-nft.8
parentf7fec51277e4172d7d05db60e29b4c6cc9746c90 (diff)
man: clarify translate tools do not modify any state
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/xtables-nft.8')
-rw-r--r--iptables/xtables-nft.87
1 files changed, 7 insertions, 0 deletions
diff --git a/iptables/xtables-nft.8 b/iptables/xtables-nft.8
index 9c223eda..702bf954 100644
--- a/iptables/xtables-nft.8
+++ b/iptables/xtables-nft.8
@@ -178,7 +178,14 @@ you would use:
root@machine:~# iptables\-legacy\-save > myruleset # reads from x_tables
root@machine:~# iptables\-nft\-restore myruleset # writes to nf_tables
.fi
+or
+.nf
+ root@machine:~# iptables\-legacy\-save | iptables-translate-restore | less
+.fi
+to see how rules would look like in the nft
+\fBnft(8)\fP
+syntax.
.SH LIMITATIONS
You should use \fBLinux kernel >= 4.17\fP.