mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 03:32:34 +08:00
修复空格格式错误
This commit is contained in:
parent
2c407bd91d
commit
0a6d9412cb
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user