From 9bf56ad0d2ff498f746573f4a1339e23ef954dd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=A6=BB?= <30458572+XiaoliChan@users.noreply.github.com> Date: Fri, 27 Aug 2021 02:15:47 +0800 Subject: [PATCH] Update pptpd.include (#7758) If not return PPPoE traffic, it will make flow-offload rules has no effect. --- .../luci-app-pptp-server/root/etc/pptpd.include | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/package/lean/luci-app-pptp-server/root/etc/pptpd.include b/package/lean/luci-app-pptp-server/root/etc/pptpd.include index e59a7b7ea..2b628c572 100755 --- a/package/lean/luci-app-pptp-server/root/etc/pptpd.include +++ b/package/lean/luci-app-pptp-server/root/etc/pptpd.include @@ -1,6 +1,11 @@ -iptables -D forwarding_rule -i ppp+ -j ACCEPT 2>/dev/null -iptables -D forwarding_rule -o ppp+ -j ACCEPT 2>/dev/null +iptables -D forwarding_rule -i pppoe+ -j RETURN 2>/dev/null +iptables -D forwarding_rule -o pppoe+ -j RETURN 2>/dev/null +iptables -D forwarding_rule -i ppp+ -m conntrack --ctstate NEW -j ACCEPT 2>/dev/null +iptables -D forwarding_rule -o ppp+ -m conntrack --ctstate NEW -j ACCEPT 2>/dev/null + +iptables -A forwarding_rule -i pppoe+ -j RETURN +iptables -A forwarding_rule -o pppoe+ -j RETURN +iptables -A forwarding_rule -i ppp+ -m conntrack --ctstate NEW -j ACCEPT +iptables -A forwarding_rule -o ppp+ -m conntrack --ctstate NEW -j ACCEPT -iptables -A forwarding_rule -i ppp+ -j ACCEPT -iptables -A forwarding_rule -o ppp+ -j ACCEPT echo 1 > /proc/sys/net/ipv4/conf/br-lan/proxy_arp