summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-08-21 19:18:38 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-09-08 20:10:13 +0200
commit882bb111285a3a4465995b4af03040a291145d7b (patch)
tree7b58c16d7bc1c6c29ed0a33f00c640748a98da51
parentdd73ceecdbe87b6ecf9e96643cd5326e520d7a1c (diff)
downloadconntrack-tools-882bb111285a3a4465995b4af03040a291145d7b.tar.gz
conntrack-tools-882bb111285a3a4465995b4af03040a291145d7b.zip
nfct: update syntax in documentation
Since dd73ceecdbe8 ("nfct: Update syntax to specify command before subsystem") the command comes before the object type. Update documentation accordingly. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--README.nfct6
-rw-r--r--doc/helper/conntrackd.conf2
-rw-r--r--doc/manual/conntrack-tools.tmpl4
-rw-r--r--nfct.82
4 files changed, 7 insertions, 7 deletions
diff --git a/README.nfct b/README.nfct
index 4d8e6cc..89dd328 100644
--- a/README.nfct
+++ b/README.nfct
@@ -9,11 +9,11 @@ more similar to `ip' and `nftables' tools (in the long run!).
The `nfct' command line tool allows you to define custom timeout
policies:
-# nfct timeout add custom-tcp-policy1 inet tcp established 100
+# nfct add timeout custom-tcp-policy1 inet tcp established 100
You can also retrieve the existing timeout policies with:
-# nfct timeout list
+# nfct list timeout
.tcp-policy = {
.l3proto = 2,
.l4proto = 6,
@@ -39,7 +39,7 @@ Then, you can use the timeout policy with iptables:
You can define policies for other protocols as well, eg:
-# nfct timeout add custom-udp-policy1 inet udp unreplied 10 replied 20
+# nfct add timeout custom-udp-policy1 inet udp unreplied 10 replied 20
And attach them via iptables:
diff --git a/doc/helper/conntrackd.conf b/doc/helper/conntrackd.conf
index d2d94a9..5c07509 100644
--- a/doc/helper/conntrackd.conf
+++ b/doc/helper/conntrackd.conf
@@ -6,7 +6,7 @@ Helper {
# Before this, you have to make sure you have registered the `ftp'
# user-space helper stub via:
#
- # nfct helper add ftp inet tcp
+ # nfct add helper ftp inet tcp
#
Type ftp inet tcp {
#
diff --git a/doc/manual/conntrack-tools.tmpl b/doc/manual/conntrack-tools.tmpl
index d23dec5..87a792e 100644
--- a/doc/manual/conntrack-tools.tmpl
+++ b/doc/manual/conntrack-tools.tmpl
@@ -899,8 +899,8 @@ maintainance.</para></listitem>
<listitem><para>Register user-space helper:
<programlisting>
-nfct helper add rpc inet udp
-nfct helper add rpc inet tcp
+nfct add helper rpc inet udp
+nfct add helper rpc inet tcp
</programlisting>
This registers the portmapper helper for both UDP and TCP (NFSv3 traffic goes both over TCP and UDP).
diff --git a/nfct.8 b/nfct.8
index 863fe12..336d9cd 100644
--- a/nfct.8
+++ b/nfct.8
@@ -40,7 +40,7 @@ Displays the version information.
Displays the help message.
.SH EXAMPLE
.TP
-.B nfct timeout add test-tcp inet tcp established 100 close 10 close_wait 10
+.B nfct add timeout test-tcp inet tcp established 100 close 10 close_wait 10
.TP
This creates a timeout policy for tcp using 100 seconds for the ESTABLISHED state, 10 seconds for CLOSE state and 10 seconds for the CLOSE_WAIT state.
.TP