Skip to contentSkip to conversation

doc: fix example of xt_cpu

PATCH Applied Victor Julien 2 participants 2 messages Aug 29, 2023 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: fix example of xt_cpu

REDIRECT uses --to-ports instead of --to-port.

Fixes 2d59208943a3 ("extension: add xt_cpu match")
---
 extensions/libxt_cpu.man | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
extensions/libxt_cpu.man +2 -2
index d9ea5c2f..c89ef08a 100644
@@ -7,9 +7,9 @@ multiqueue NICs to spread network traffic on different queues.
 Example:
 .PP
 iptables \-t nat \-A PREROUTING \-p tcp \-\-dport 80 \-m cpu \-\-cpu 0 
-\-j REDIRECT \-\-to\-port 8080
+\-j REDIRECT \-\-to\-ports 8080
 .PP
 iptables \-t nat \-A PREROUTING \-p tcp \-\-dport 80 \-m cpu \-\-cpu 1 
-\-j REDIRECT \-\-to\-port 8081
+\-j REDIRECT \-\-to\-ports 8081
 .PP
 Available since Linux 2.6.36.
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 1 line · Victor Julien

REDIRECT uses --to-ports instead of --to-port.

Applied, thanks Victor!