Skip to content

Commit 0b2c9a4

Browse files
committed
fix: add missing --on-ip equivalence in nft tproxy rules
1 parent 2159f39 commit 0b2c9a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nftables.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ table inet cgproxy {
3838
chain tproxy_ent {
3939
# core
4040
socket wildcard 0 mark set $fwmark_tproxy accept
41-
meta l4proto { tcp, udp } tproxy to :$port meta mark set $fwmark_tproxy
41+
meta l4proto { tcp, udp } tproxy ip to 127.0.0.1:$port meta mark set $fwmark_tproxy
42+
meta l4proto { tcp, udp } tproxy ip6 to [::1]:$port meta mark set $fwmark_tproxy
4243
}
4344
4445
chain tproxy_pre {

0 commit comments

Comments
 (0)