v0.9.2
~添加局域网设备过滤功能
This commit is contained in:
Binary file not shown.
@@ -1 +1 @@
|
|||||||
versionsh=0.9.1
|
versionsh=0.9.2
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
# Copyright (C) Juewuy
|
# Copyright (C) Juewuy
|
||||||
|
|
||||||
getconfig(){
|
getconfig(){
|
||||||
#版本号
|
|
||||||
#versionsh_l=0.9.0
|
|
||||||
#服务器地址
|
#服务器地址
|
||||||
if [ -z "$update_url" ]; then
|
if [ -z "$update_url" ]; then
|
||||||
update_url=https://cdn.jsdelivr.net/gh/juewuy/clash-for-Miwifi/
|
update_url=https://cdn.jsdelivr.net/gh/juewuy/clash-for-Miwifi/
|
||||||
@@ -831,6 +829,8 @@ if [[ $num -le 9 ]] > /dev/null 2>&1; then
|
|||||||
iptables -t nat -L PREROUTING --line-numbers
|
iptables -t nat -L PREROUTING --line-numbers
|
||||||
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
iptables -t nat -L clash --line-numbers
|
iptables -t nat -L clash --line-numbers
|
||||||
|
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
iptables -t nat -L clash_dns --line-numbers
|
||||||
exit;
|
exit;
|
||||||
elif [[ $num == 5 ]]; then
|
elif [[ $num == 5 ]]; then
|
||||||
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
@@ -112,14 +112,14 @@ start_redir(){
|
|||||||
stop_iptables(){
|
stop_iptables(){
|
||||||
#重置iptables规则
|
#重置iptables规则
|
||||||
iptables -t nat -D PREROUTING -p tcp -j clash > /dev/null 2>&1
|
iptables -t nat -D PREROUTING -p tcp -j clash > /dev/null 2>&1
|
||||||
iptables -t nat -D PREROUTING -p tcp -j clash_dns > /dev/null 2>&1
|
iptables -t nat -D PREROUTING -p udp -j clash_dns > /dev/null 2>&1
|
||||||
iptables -t nat -F clash > /dev/null 2>&1
|
iptables -t nat -F clash > /dev/null 2>&1
|
||||||
iptables -t nat -X clash > /dev/null 2>&1
|
iptables -t nat -X clash > /dev/null 2>&1
|
||||||
iptables -t nat -F clash_dns > /dev/null 2>&1
|
iptables -t nat -F clash_dns > /dev/null 2>&1
|
||||||
iptables -t nat -X clash_dns > /dev/null 2>&1
|
iptables -t nat -X clash_dns > /dev/null 2>&1
|
||||||
#重置ipv6规则
|
#重置ipv6规则
|
||||||
ip6tables -t nat -D PREROUTING -p tcp -j clash > /dev/null 2>&1
|
ip6tables -t nat -D PREROUTING -p tcp -j clash > /dev/null 2>&1
|
||||||
ip6tables -t nat -D PREROUTING -p tcp -j clash_dns > /dev/null 2>&1
|
ip6tables -t nat -D PREROUTING -p udp -j clash_dns > /dev/null 2>&1
|
||||||
ip6tables -t nat -F clash > /dev/null 2>&1
|
ip6tables -t nat -F clash > /dev/null 2>&1
|
||||||
ip6tables -t nat -X clash > /dev/null 2>&1
|
ip6tables -t nat -X clash > /dev/null 2>&1
|
||||||
ip6tables -t nat -F clash_dns > /dev/null 2>&1
|
ip6tables -t nat -F clash_dns > /dev/null 2>&1
|
||||||
|
|||||||
Reference in New Issue
Block a user