~1.9.3beta4fix
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,4 @@
|
|||||||
meta_v=v1.19.17
|
meta_v=v1.19.17
|
||||||
singboxr_v=1.13.0-alpha.27
|
singboxr_v=1.13.0-alpha.27
|
||||||
versionsh=1.9.3beta4
|
versionsh=1.9.3beta4fix
|
||||||
GeoIP_v=20251205
|
GeoIP_v=20251205
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Copyright (C) Juewuy
|
# Copyright (C) Juewuy
|
||||||
|
|
||||||
version=1.9.3beta4
|
version=1.9.3beta4fix
|
||||||
|
|
||||||
setdir() {
|
setdir() {
|
||||||
dir_avail() {
|
dir_avail() {
|
||||||
|
|||||||
@@ -1034,7 +1034,7 @@ start_ipt_route() { #iptables-route通用工具
|
|||||||
[ "$3" = 'PREROUTING' ] && [ "$macfilter_type" != "白名单" ] && {
|
[ "$3" = 'PREROUTING' ] && [ "$macfilter_type" != "白名单" ] && {
|
||||||
[ -s "$CRASHDIR"/configs/mac ] &&
|
[ -s "$CRASHDIR"/configs/mac ] &&
|
||||||
for mac in $(cat "$CRASHDIR"/configs/mac); do
|
for mac in $(cat "$CRASHDIR"/configs/mac); do
|
||||||
$1 $w -t $2 -A $4 -m mac --mac-. $mac -j RETURN
|
$1 $w -t $2 -A $4 -m mac --mac-source $mac -j RETURN
|
||||||
done
|
done
|
||||||
[ -s "$CRASHDIR"/configs/ip_filter ] && [ "$1" = 'iptables' ] &&
|
[ -s "$CRASHDIR"/configs/ip_filter ] && [ "$1" = 'iptables' ] &&
|
||||||
for ip in $(cat "$CRASHDIR"/configs/ip_filter); do
|
for ip in $(cat "$CRASHDIR"/configs/ip_filter); do
|
||||||
@@ -1046,7 +1046,7 @@ start_ipt_route() { #iptables-route通用工具
|
|||||||
if [ "$3" = 'PREROUTING' ] && [ "$4" != 'shellcrash_vm' ] && [ "$macfilter_type" = "白名单" ] && [ -n "$(cat $CRASHDIR/configs/mac $CRASHDIR/configs/ip_filter 2>/dev/null)" ]; then
|
if [ "$3" = 'PREROUTING' ] && [ "$4" != 'shellcrash_vm' ] && [ "$macfilter_type" = "白名单" ] && [ -n "$(cat $CRASHDIR/configs/mac $CRASHDIR/configs/ip_filter 2>/dev/null)" ]; then
|
||||||
[ -s "$CRASHDIR"/configs/mac ] &&
|
[ -s "$CRASHDIR"/configs/mac ] &&
|
||||||
for mac in $(cat "$CRASHDIR"/configs/mac); do
|
for mac in $(cat "$CRASHDIR"/configs/mac); do
|
||||||
$1 $w -t $2 -A $4 -p $5 -m mac --mac-. $mac -j $JUMP
|
$1 $w -t $2 -A $4 -p $5 -m mac --mac-source $mac -j $JUMP
|
||||||
done
|
done
|
||||||
[ -s "$CRASHDIR"/configs/ip_filter ] && [ "$1" = 'iptables' ] &&
|
[ -s "$CRASHDIR"/configs/ip_filter ] && [ "$1" = 'iptables' ] &&
|
||||||
for ip in $(cat "$CRASHDIR"/configs/ip_filter); do
|
for ip in $(cat "$CRASHDIR"/configs/ip_filter); do
|
||||||
@@ -1092,7 +1092,7 @@ start_ipt_dns() { #iptables-dns通用工具
|
|||||||
[ "$2" = 'PREROUTING' ] && [ "$macfilter_type" != "白名单" ] && {
|
[ "$2" = 'PREROUTING' ] && [ "$macfilter_type" != "白名单" ] && {
|
||||||
[ -s "$CRASHDIR"/configs/mac ] &&
|
[ -s "$CRASHDIR"/configs/mac ] &&
|
||||||
for mac in $(cat "$CRASHDIR"/configs/mac); do
|
for mac in $(cat "$CRASHDIR"/configs/mac); do
|
||||||
$1 $w -t nat -A $3 -m mac --mac-. $mac -j RETURN
|
$1 $w -t nat -A $3 -m mac --mac-source $mac -j RETURN
|
||||||
done
|
done
|
||||||
[ -s "$CRASHDIR"/configs/ip_filter ] && [ "$1" = 'iptables' ] &&
|
[ -s "$CRASHDIR"/configs/ip_filter ] && [ "$1" = 'iptables' ] &&
|
||||||
for ip in $(cat "$CRASHDIR"/configs/ip_filter); do
|
for ip in $(cat "$CRASHDIR"/configs/ip_filter); do
|
||||||
@@ -1102,8 +1102,8 @@ start_ipt_dns() { #iptables-dns通用工具
|
|||||||
if [ "$2" = 'PREROUTING' ] && [ "$3" != 'shellcrash_vm_dns' ] && [ "$macfilter_type" = "白名单" ] && [ -n "$(cat $CRASHDIR/configs/mac $CRASHDIR/configs/ip_filter 2>/dev/null)" ]; then
|
if [ "$2" = 'PREROUTING' ] && [ "$3" != 'shellcrash_vm_dns' ] && [ "$macfilter_type" = "白名单" ] && [ -n "$(cat $CRASHDIR/configs/mac $CRASHDIR/configs/ip_filter 2>/dev/null)" ]; then
|
||||||
[ -s "$CRASHDIR"/configs/mac ] &&
|
[ -s "$CRASHDIR"/configs/mac ] &&
|
||||||
for mac in $(cat "$CRASHDIR"/configs/mac); do
|
for mac in $(cat "$CRASHDIR"/configs/mac); do
|
||||||
$1 $w -t nat -A $3 -p tcp -m mac --mac-. $mac -j REDIRECT --to-ports $dns_port
|
$1 $w -t nat -A $3 -p tcp -m mac --mac-source $mac -j REDIRECT --to-ports $dns_port
|
||||||
$1 $w -t nat -A $3 -p udp -m mac --mac-. $mac -j REDIRECT --to-ports $dns_port
|
$1 $w -t nat -A $3 -p udp -m mac --mac-source $mac -j REDIRECT --to-ports $dns_port
|
||||||
done
|
done
|
||||||
[ -s "$CRASHDIR"/configs/ip_filter ] && [ "$1" = 'iptables' ] &&
|
[ -s "$CRASHDIR"/configs/ip_filter ] && [ "$1" = 'iptables' ] &&
|
||||||
for ip in $(cat "$CRASHDIR"/configs/ip_filter); do
|
for ip in $(cat "$CRASHDIR"/configs/ip_filter); do
|
||||||
|
|||||||
Reference in New Issue
Block a user