haproxy: update to v2.6.10
[feed/packages.git] / net / v2raya / patches / 013-fix-we-should-skip-interface-ppp-to-avoid-to-break-net.patch
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
5
6 ---
7 service/core/iptables/tproxy.go | 6 +++++-
8 1 file changed, 5 insertions(+), 1 deletion(-)
9
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) {
14 // avoid duplication
15 t.RemoveIPWhitelist(cidr)
16 - pos := 5
17 + pos := 7
18 if configure.GetSettingNotNil().AntiPollution != configure.AntipollutionClosed {
19 pos += 3
20 }
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
27 `
28 if configure.GetSettingNotNil().AntiPollution != configure.AntipollutionClosed {
29 commands += `
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
36 `
37 if configure.GetSettingNotNil().AntiPollution != configure.AntipollutionClosed {
38 commands += `