From aa05e3515973d8fbd1dd7cf925db0b36858541e4 Mon Sep 17 00:00:00 2001 From: ZeroChaos <71016736+zerolabnet@users.noreply.github.com> Date: Wed, 30 Oct 2024 15:48:56 +0300 Subject: [PATCH] Replenishment of the iptables rules to resolve DNAT issues --- Makefile | 2 +- rootfs/opt/clash/bin/clash-rules | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 78e5cd4..4730914 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-ssclash -PKG_VERSION:=1.8 +PKG_VERSION:=1.8.1 PKG_RELEASE:=1 PKG_MAINTAINER:=ZeroChaos diff --git a/rootfs/opt/clash/bin/clash-rules b/rootfs/opt/clash/bin/clash-rules index 794185a..41562c2 100644 --- a/rootfs/opt/clash/bin/clash-rules +++ b/rootfs/opt/clash/bin/clash-rules @@ -19,7 +19,7 @@ start() { done # Exclude interfaces in CLASH - for intf in wg+ ppp+ veth+ docker+; do + for intf in wan+ ppp+ tun+ tap+ wg+ lxc+ veth+ vnet+ docker+ dummy+; do iptables -t mangle -A CLASH -i $intf -j RETURN iptables -t mangle -A CLASH -o $intf -j RETURN done @@ -36,7 +36,7 @@ start() { done # Exclude interfaces in CLASH_LOCAL - for intf in wg+ ppp+ veth+ docker+; do + for intf in wan+ ppp+ tun+ tap+ wg+ lxc+ veth+ vnet+ docker+ dummy+; do iptables -t mangle -A CLASH_LOCAL -i $intf -j RETURN iptables -t mangle -A CLASH_LOCAL -o $intf -j RETURN done