From c36d772a909950dc53d11c1e78ad4772715943f1 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 28 May 2021 00:33:41 +0200 Subject: doc: manual: Document userspace helper configuration at daemon startup Describe how to configure conntrackd using the new simple setup approach. Signed-off-by: Pablo Neira Ayuso --- doc/manual/conntrack-tools.tmpl | 42 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'doc/manual/conntrack-tools.tmpl') diff --git a/doc/manual/conntrack-tools.tmpl b/doc/manual/conntrack-tools.tmpl index 64ac5dd..822dd49 100644 --- a/doc/manual/conntrack-tools.tmpl +++ b/doc/manual/conntrack-tools.tmpl @@ -905,32 +905,13 @@ maintainance. The following steps describe how to enable the RPC portmapper helper for NFSv3 (this is similar for other helpers): -Register user-space helper: - - -nfct add helper rpc inet udp -nfct add helper rpc inet tcp - - -This registers the portmapper helper for both UDP and TCP (NFSv3 traffic goes both over TCP and UDP). - - -Add iptables rule using the CT target: - - -# iptables -I OUTPUT -t raw -p udp --dport 111 -j CT --helper rpc -# iptables -I OUTPUT -t raw -p tcp --dport 111 -j CT --helper rpc - - -With this, packets matching port TCP/UDP/111 are passed to user-space for -inspection. If there is no instance of conntrackd configured to support -user-space helpers, no inspection happens and packets are not sent to -user-space. Add configuration to conntrackd.conf: Helper { + Setup yes + Type rpc inet udp { QueueNum 1 QueueLen 10240 @@ -962,6 +943,25 @@ for inspection to user-space +Run conntrackd: + +# conntrackd -d -C /path/to/conntrackd.conf + + + + +Add iptables rule using the CT target: + + +# iptables -I OUTPUT -t raw -p udp --dport 111 -j CT --helper rpc +# iptables -I OUTPUT -t raw -p tcp --dport 111 -j CT --helper rpc + + +With this, packets matching port TCP/UDP/111 are passed to user-space for +inspection. If there is no instance of conntrackd configured to support +user-space helpers, no inspection happens and packets are not sent to +user-space. + Now you can test this (assuming you have some working NFSv3 setup) with: -- cgit v1.2.3