1 From ca6a05273284daa04856a840e64f3936f700b7c3 Mon Sep 17 00:00:00 2001
2 From: mzz2017 <mzz@tuta.io>
3 Date: Fri, 16 Sep 2022 15:13:11 +0800
4 Subject: [PATCH] fix: we should skip interface ppp+ to avoid to break net
7 service/core/iptables/tproxy.go | 6 +++++-
8 1 file changed, 5 insertions(+), 1 deletion(-)
10 --- a/core/iptables/tproxy.go
11 +++ b/core/iptables/tproxy.go
12 @@ -16,7 +16,7 @@ var Tproxy tproxy
13 func (t *tproxy) AddIPWhitelist(cidr string) {
15 t.RemoveIPWhitelist(cidr)
18 if configure.GetSettingNotNil().AntiPollution != configure.AntipollutionClosed {
21 @@ -67,6 +67,8 @@ iptables -w 2 -t mangle -A TP_RULE -j CO
22 iptables -w 2 -t mangle -A TP_RULE -m mark --mark 0x40/0xc0 -j RETURN
23 iptables -w 2 -t mangle -A TP_RULE -i docker+ -j RETURN
24 iptables -w 2 -t mangle -A TP_RULE -i veth+ -j RETURN
25 +iptables -w 2 -t mangle -A TP_RULE -i ppp+ -j RETURN
26 +iptables -w 2 -t mangle -A TP_RULE -i dn42-+ -j RETURN
28 if configure.GetSettingNotNil().AntiPollution != configure.AntipollutionClosed {
30 @@ -125,6 +127,8 @@ ip6tables -w 2 -t mangle -A TP_RULE -j C
31 ip6tables -w 2 -t mangle -A TP_RULE -m mark --mark 0x40/0xc0 -j RETURN
32 ip6tables -w 2 -t mangle -A TP_RULE -i docker+ -j RETURN
33 ip6tables -w 2 -t mangle -A TP_RULE -i veth+ -j RETURN
34 +ip6tables -w 2 -t mangle -A TP_RULE -i ppp+ -j RETURN
35 +ip6tables -w 2 -t mangle -A TP_RULE -i dn42-+ -j RETURN
37 if configure.GetSettingNotNil().AntiPollution != configure.AntipollutionClosed {