aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
authorChen Linxuan <chenlinxuan@uniontech.com>2025-04-08 15:35:50 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2025-04-29 00:00:26 +0200
commit149a133a548158586058d14963b4e3a699d0de70 (patch)
tree68a66fdd6417b46ad20364ac4097b60787757d11 /Documentation
parenteaa2b34db021c304697b964505cd2477c7c77eb6 (diff)
downloadath-149a133a548158586058d14963b4e3a699d0de70.tar.gz
docs: tproxy: fix formatting for nft code block
The nft command snippet for redirecting traffic isn't formatted in a literal code block like the rest of snippets. Fix the formatting inconsistency. Signed-off-by: Chen Linxuan <chenlinxuan@uniontech.com> Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/networking/tproxy.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/networking/tproxy.rst b/Documentation/networking/tproxy.rst
index 7f7c1ff6f159e..75e4990cc3db1 100644
--- a/Documentation/networking/tproxy.rst
+++ b/Documentation/networking/tproxy.rst
@@ -69,9 +69,9 @@ add rules like this to the iptables ruleset above::
# iptables -t mangle -A PREROUTING -p tcp --dport 80 -j TPROXY \
--tproxy-mark 0x1/0x1 --on-port 50080
-Or the following rule to nft:
+Or the following rule to nft::
-# nft add rule filter divert tcp dport 80 tproxy to :50080 meta mark set 1 accept
+ # nft add rule filter divert tcp dport 80 tproxy to :50080 meta mark set 1 accept
Note that for this to work you'll have to modify the proxy to enable (SOL_IP,
IP_TRANSPARENT) for the listening socket.