From 0a6d9412cbf1dcd2fe694daf390955bda1b49c95 Mon Sep 17 00:00:00 2001 From: juewuy Date: Thu, 23 Jul 2020 09:59:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A9=BA=E6=A0=BC=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clash_redir_config/clashservice | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/clash_redir_config/clashservice b/clash_redir_config/clashservice index 31c72ad..193166d 100644 --- a/clash_redir_config/clashservice +++ b/clash_redir_config/clashservice @@ -7,14 +7,14 @@ START=99 start_service() { #创建clash后台进程 - procd_open_instance - procd_set_param respawn - procd_set_param stderr 1 - procd_set_param stdout 1 - procd_set_param command /etc/clash/clash -d /etc/clash - procd_close_instance + procd_open_instance + procd_set_param respawn + procd_set_param stderr 1 + procd_set_param stdout 1 + procd_set_param command /etc/clash/clash -d /etc/clash + procd_close_instance #修改iptables规则使流量进入clash - iptables -t nat -N clash - iptables -t nat -A clash -p tcp -j REDIRECT --to-ports 7892 - iptables -t nat -A PREROUTING -p tcp -j clash + iptables -t nat -N clash + iptables -t nat -A clash -p tcp -j REDIRECT --to-ports 7892 + iptables -t nat -A PREROUTING -p tcp -j clash } \ No newline at end of file