From cd296cdf337b4b7cc209b5c7c4e3e14caecb4a85 Mon Sep 17 00:00:00 2001 From: cubercsl <2014cais01@gmail.com> Date: Mon, 23 Jan 2023 15:41:32 +0800 Subject: [PATCH] fix(tproxy): gateway not work --- service/core/iptables/tproxy.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/core/iptables/tproxy.go b/service/core/iptables/tproxy.go index 7f35871d..047779ed 100644 --- a/service/core/iptables/tproxy.go +++ b/service/core/iptables/tproxy.go @@ -306,7 +306,8 @@ table inet v2raya { chain tp_pre { iifname "lo" mark & 0xc0 != 0x40 return meta l4proto { tcp, udp } fib saddr type != local fib daddr type != local jump tp_rule - meta l4proto { tcp, udp } mark & 0xc0 == 0x40 tproxy to :32345 + meta l4proto { tcp, udp } mark & 0xc0 == 0x40 tproxy ip to 127.0.0.1:32345 + meta l4proto { tcp, udp } mark & 0xc0 == 0x40 tproxy ip6 to [::1]:32345 } chain output {