Commit 149a133a authored by Chen Linxuan's avatar Chen Linxuan Committed by Pablo Neira Ayuso
Browse files

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: default avatarChen Linxuan <chenlinxuan@uniontech.com>
Reviewed-by: default avatarBagas Sanjaya <bagasdotme@gmail.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent eaa2b34d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ 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