Skip to content

Commit c376cfd

Browse files
black-deskopsiff
authored andcommitted
docs: tproxy: fix formatting for nft code block
[ Upstream commit 149a133a548158586058d14963b4e3a699d0de70 ] 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 <[email protected]> Reviewed-by: Bagas Sanjaya <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]> [ Backport from v6.16 ] Signed-off-by: WangYuli <[email protected]>
1 parent 1117621 commit c376cfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/networking/tproxy.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ add rules like this to the iptables ruleset above::
6969
# iptables -t mangle -A PREROUTING -p tcp --dport 80 -j TPROXY \
7070
--tproxy-mark 0x1/0x1 --on-port 50080
7171

72-
Or the following rule to nft:
72+
Or the following rule to nft::
7373

74-
# nft add rule filter divert tcp dport 80 tproxy to :50080 meta mark set 1 accept
74+
# nft add rule filter divert tcp dport 80 tproxy to :50080 meta mark set 1 accept
7575

7676
Note that for this to work you'll have to modify the proxy to enable (SOL_IP,
7777
IP_TRANSPARENT) for the listening socket.

0 commit comments

Comments
 (0)