Merge branch 'master' of https://github.com/juewuy/ShellCrash into master
This commit is contained in:
50
.github/workflows/docker.yaml
vendored
Normal file
50
.github/workflows/docker.yaml
vendored
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
name: Build Docker image for ShellCrash
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
|
- name: Read version
|
||||||
|
id: read_version
|
||||||
|
run: echo "VERSION=$(cat version)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push (multi-arch)
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
platforms: |
|
||||||
|
linux/386
|
||||||
|
linux/amd64
|
||||||
|
linux/arm64
|
||||||
|
linux/arm/v7
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
${{ secrets.DOCKERHUB_USERNAME }}/shellcrash:latest
|
||||||
|
${{ secrets.DOCKERHUB_USERNAME }}/shellcrash:${{ env.VERSION }}
|
||||||
24
.github/workflows/docker_readme_push.yaml
vendored
Normal file
24
.github/workflows/docker_readme_push.yaml
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
name: Update Docker Hub Description
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'docker/README.md'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-readme:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout。
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
|
- name: Docker Hub Description
|
||||||
|
uses: peter-evans/dockerhub-description@v4
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
repository: ${{ secrets.DOCKERHUB_USERNAME }}/shellcrash
|
||||||
|
readme-filepath: ./docker/README.md
|
||||||
2
.github/workflows/update_meta_core.yaml
vendored
2
.github/workflows/update_meta_core.yaml
vendored
@@ -176,7 +176,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Zip core by tar
|
- name: Zip core by tar
|
||||||
run: |
|
run: |
|
||||||
for arch in amd64 armv5 armv7 arm64 mips-softfloat mipsle-hardfloat mipsle-softfloat;do
|
for arch in amd64 armv5 armv7 arm64 386 mips-softfloat mipsle-hardfloat mipsle-softfloat;do
|
||||||
[ ! -f ./tmp/linux-${arch}/meta ] && continue
|
[ ! -f ./tmp/linux-${arch}/meta ] && continue
|
||||||
mv -f ./tmp/linux-${arch}/meta ./tmp/CrashCore
|
mv -f ./tmp/linux-${arch}/meta ./tmp/CrashCore
|
||||||
chmod +x ./tmp/CrashCore
|
chmod +x ./tmp/CrashCore
|
||||||
|
|||||||
2
.github/workflows/update_singbox_core.yaml
vendored
2
.github/workflows/update_singbox_core.yaml
vendored
@@ -196,7 +196,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Zip core by tar
|
- name: Zip core by tar
|
||||||
run: |
|
run: |
|
||||||
for arch in amd64 armv5 armv7 arm64 mips-softfloat mipsel-hardfloat mipsel-softfloat;do
|
for arch in amd64 armv5 armv7 arm64 386 mips-softfloat mipsel-hardfloat mipsel-softfloat;do
|
||||||
[ ! -f ./tmp/linux-${arch}/sing-box ] && continue
|
[ ! -f ./tmp/linux-${arch}/sing-box ] && continue
|
||||||
mv -f ./tmp/linux-${arch}/sing-box ./tmp/CrashCore
|
mv -f ./tmp/linux-${arch}/sing-box ./tmp/CrashCore
|
||||||
chmod +x ./tmp/CrashCore
|
chmod +x ./tmp/CrashCore
|
||||||
|
|||||||
81
Dockerfile
Normal file
81
Dockerfile
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
############################
|
||||||
|
# Stage 1: builder
|
||||||
|
############################
|
||||||
|
FROM alpine:latest AS builder
|
||||||
|
|
||||||
|
ARG TARGETPLATFORM
|
||||||
|
ARG TZ=Asia/Shanghai
|
||||||
|
ARG S6_OVERLAY_V=v3.2.1.0
|
||||||
|
|
||||||
|
RUN apk add --no-cache curl tzdata
|
||||||
|
|
||||||
|
# 时区
|
||||||
|
RUN ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime && \
|
||||||
|
echo "${TZ}" > /etc/timezone
|
||||||
|
|
||||||
|
WORKDIR /build
|
||||||
|
|
||||||
|
#安装脚本相关文件
|
||||||
|
COPY ShellCrash.tar.gz /tmp/ShellCrash.tar.gz
|
||||||
|
RUN set -eux; \
|
||||||
|
mkdir -p /tmp/SC_tmp; \
|
||||||
|
tar -zxf /tmp/ShellCrash.tar.gz -C /tmp/SC_tmp; \
|
||||||
|
export systype=container; \
|
||||||
|
export CRASHDIR=/etc/ShellCrash; \
|
||||||
|
/bin/sh /tmp/SC_tmp/init.sh
|
||||||
|
|
||||||
|
#获取内核及s6文件
|
||||||
|
RUN set -eux; \
|
||||||
|
case "$TARGETPLATFORM" in \
|
||||||
|
linux/amd64) K=amd64 S=x86_64;; \
|
||||||
|
linux/arm64) K=arm64 S=aarch64;; \
|
||||||
|
linux/arm/v7) K=armv7 S=arm;; \
|
||||||
|
linux/386) K=386 S=i486;; \
|
||||||
|
*) echo "unsupported $TARGETPLATFORM" && exit 1 ;; \
|
||||||
|
esac; \
|
||||||
|
curl -fsSL "https://github.com/juewuy/ShellCrash/raw/update/bin/meta/clash-linux-${K}.tar.gz" -o /tmp/CrashCore.tar.gz; \
|
||||||
|
curl -fsSL "https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_V}/s6-overlay-${S}.tar.xz" -o /tmp/s6_arch.tar.xz; \
|
||||||
|
curl -fsSL "https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_V}/s6-overlay-noarch.tar.xz" -o /tmp/s6_noarch.tar.xz && ls -l /tmp
|
||||||
|
|
||||||
|
#安装面板文件
|
||||||
|
RUN set -eux; \
|
||||||
|
mkdir -p /etc/ShellCrash/ruleset /etc/ShellCrash/ui; \
|
||||||
|
curl -fsSL "https://github.com/juewuy/ShellCrash/raw/update/bin/geodata/mrs.tar.gz" | tar -zxf - -C /etc/ShellCrash/ruleset; \
|
||||||
|
curl -fsSL "https://github.com/juewuy/ShellCrash/raw/update/bin/dashboard/zashboard.tar.gz" | tar -zxf - -C /etc/ShellCrash/ui
|
||||||
|
|
||||||
|
############################
|
||||||
|
# Stage 2: runtime
|
||||||
|
############################
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
ARG TZ=Asia/Shanghai
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.source="https://github.com/juewuy/ShellCrash"
|
||||||
|
#安装依赖
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
wget \
|
||||||
|
ca-certificates \
|
||||||
|
tzdata \
|
||||||
|
nftables \
|
||||||
|
iproute2 \
|
||||||
|
dcron
|
||||||
|
|
||||||
|
RUN ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime && \
|
||||||
|
echo "${TZ}" > /etc/timezone
|
||||||
|
|
||||||
|
#复制文件
|
||||||
|
COPY --from=builder /etc/ShellCrash /etc/ShellCrash
|
||||||
|
COPY --from=builder /tmp/CrashCore.tar.gz /etc/ShellCrash/CrashCore.tar.gz
|
||||||
|
COPY --from=builder /etc/profile /etc/profile
|
||||||
|
COPY --from=builder /usr/bin/crash /usr/bin/crash
|
||||||
|
|
||||||
|
#安装s6
|
||||||
|
COPY --from=builder /tmp/s6_arch.tar.xz /tmp/s6_arch.tar.xz
|
||||||
|
COPY --from=builder /tmp/s6_noarch.tar.xz /tmp/s6_noarch.tar.xz
|
||||||
|
RUN tar -xJf /tmp/s6_noarch.tar.xz -C / && rm -rf /tmp/s6_noarch.tar.xz
|
||||||
|
RUN tar -xJf /tmp/s6_arch.tar.xz -C / && rm -rf /tmp/s6_arch.tar.xz
|
||||||
|
COPY docker/s6-rc.d /etc/s6-overlay/s6-rc.d
|
||||||
|
ENV S6_CMD_WAIT_FOR_SERVICES=1
|
||||||
|
|
||||||
|
ENTRYPOINT ["/init"]
|
||||||
|
|
||||||
674
LICENSE.txt
Normal file
674
LICENSE.txt
Normal file
@@ -0,0 +1,674 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||||
21
README_CN.md
21
README_CN.md
@@ -99,26 +99,20 @@ export url='https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master' && wget
|
|||||||
export url='http://t.jwsc.eu.org' && wget -q -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null
|
export url='http://t.jwsc.eu.org' && wget -q -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null
|
||||||
```
|
```
|
||||||
|
|
||||||
~**虚拟机/Docker环境安装:**<br>
|
##### ~**虚拟机安装:**<br>
|
||||||
|
|
||||||
虚拟机或Docker环境推荐使用Alpine镜像安装<br>
|
虚拟机环境强烈建议使用Alpine镜像安装<br>
|
||||||
|
|
||||||
这里以Docker为例(其他虚拟机请自行查找安装Alpine镜像安装教程)<br>
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
#注意,以下命令请分步执行!
|
|
||||||
#Docker一键启动Alpine镜像
|
|
||||||
docker run -d --name ShellCrash alpine sleep infinity
|
|
||||||
#进入容器内sh环境
|
|
||||||
docker exec -it ShellCrash sh
|
|
||||||
#安装必要依赖
|
#安装必要依赖
|
||||||
apk add curl
|
apk add --no-cache wget openrc ca-certificates tzdata nftables iproute2 dcron
|
||||||
apk add nftables
|
|
||||||
#执行安装命令
|
#执行安装命令
|
||||||
export url='https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
|
export url='https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null
|
||||||
```
|
```
|
||||||
|
|
||||||
|
##### ~Docker安装:<br>
|
||||||
|
|
||||||
|
请前往[ShellCrash官方Docker镜像](https://hub.docker.com/r/juewuy/shellcrash)
|
||||||
|
|
||||||
### **本地安装:**<br>
|
### **本地安装:**<br>
|
||||||
|
|
||||||
@@ -158,4 +152,7 @@ ubus/iproute-doc 极低 缺少时无法正常获取本机host地址
|
|||||||
|
|
||||||
机场推荐:
|
机场推荐:
|
||||||
--
|
--
|
||||||
|
|
||||||
|
#### [Dler-墙洞,多年稳定运行,功能齐全](https://dler.pro/auth/register?affid=89698)<br>
|
||||||
|
|
||||||
#### [大米-群友力荐,流媒体解锁,月付推荐](https://1s.bigmeok.me/user#/register?code=2PuWY9I7)<br>
|
#### [大米-群友力荐,流媒体解锁,月付推荐](https://1s.bigmeok.me/user#/register?code=2PuWY9I7)<br>
|
||||||
|
|||||||
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.3beta7fix
|
versionsh=1.9.3pre2
|
||||||
GeoIP_v=20251205
|
GeoIP_v=20251205
|
||||||
|
|||||||
133
docker/README.md
Normal file
133
docker/README.md
Normal file
@@ -0,0 +1,133 @@
|
|||||||
|
# ShellCrash (Official Docker Image)
|
||||||
|
|
||||||
|
**ShellCrash 官方 Docker 镜像**,用于在容器环境中运行 ShellCrash,支持 **HTTP / SOCKS 代理** 与 **旁路由透明代理** 两种部署模式。
|
||||||
|
|
||||||
|
该镜像由 **ShellCrash 官方维护**,基于原项目脚本构建,并通过 Docker 多架构机制发布。
|
||||||
|
|
||||||
|
------
|
||||||
|
|
||||||
|
## Quick Start(最小化运行)
|
||||||
|
|
||||||
|
仅启用 HTTP(S) / SOCKS5 代理功能,适用于基础代理需求,Mix代理端口:7890,面板管理端口:9999。
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker run -d \
|
||||||
|
--name shellcrash \
|
||||||
|
-p 7890:7890 \
|
||||||
|
-p 9999:9999 \
|
||||||
|
shellcrash:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
------
|
||||||
|
|
||||||
|
## Container Management(容器管理)
|
||||||
|
|
||||||
|
首次部署完成后,请务必使用以下命令进入容器完成设置(导入配置文件,允许开机启动,及启动内核服务),之后也可用此命令进入容器sh环境进行管理:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker exec -it shellcrash sh -l
|
||||||
|
```
|
||||||
|
|
||||||
|
------
|
||||||
|
|
||||||
|
## Advanced Usage(旁路由 / 透明代理)
|
||||||
|
|
||||||
|
适用于旁路由、软路由或需要透明代理的部署场景,需提前创建macvlan,这里不推荐使用容器的host模式。
|
||||||
|
|
||||||
|
### 1. 创建 macvlan 网络
|
||||||
|
|
||||||
|
此处请根据实际网络环境调整参数,如之前已创建可忽略。
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker network create \
|
||||||
|
--driver macvlan \
|
||||||
|
--subnet 192.168.31.0/24 \
|
||||||
|
--gateway 192.168.31.1 \
|
||||||
|
-o parent=eth0 \
|
||||||
|
macvlan_lan
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. 启动容器(旁路由模式)
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker run -d \
|
||||||
|
--name shellcrash \
|
||||||
|
--network macvlan_lan \
|
||||||
|
--ip 192.168.31.222 \
|
||||||
|
--cap-add NET_ADMIN \
|
||||||
|
--cap-add NET_RAW \
|
||||||
|
--cap-add SYS_ADMIN \
|
||||||
|
--device /dev/net/tun:/dev/net/tun \
|
||||||
|
--restart unless-stopped \
|
||||||
|
shellcrash:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. 配置需要路由的设备
|
||||||
|
|
||||||
|
将需要路由的设备IPV4网关与DNS均指向启动容器时指定的IP地址如:192.168.31.222
|
||||||
|
|
||||||
|
注意,旁路由模式必须禁用子设备的IPV6地址,或主路由的IPV6功能,否则流量可能会经由IPV6直连而不会进入旁路由转发
|
||||||
|
|
||||||
|
------
|
||||||
|
|
||||||
|
## Persistent Configuration(持久化配置,可选)
|
||||||
|
|
||||||
|
推荐使用 volume 挂载以持久化 ShellCrash 配置。
|
||||||
|
|
||||||
|
### 1. 创建宿主机目录
|
||||||
|
|
||||||
|
```shell
|
||||||
|
mkdir -p /root/ShellCrash
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. 启用持久化
|
||||||
|
|
||||||
|
将命令粘贴到你的实际容器启动命令中间,例如:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker run -d \
|
||||||
|
………………
|
||||||
|
-v /root/ShellCrash:/etc/ShellCrash \
|
||||||
|
………………
|
||||||
|
```
|
||||||
|
|
||||||
|
------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
------
|
||||||
|
|
||||||
|
## Compose Deployment(Compose部署)
|
||||||
|
|
||||||
|
### 1. 创建宿主机目录并进入目录
|
||||||
|
|
||||||
|
```shell
|
||||||
|
mkdir -p /root/ShellCrash
|
||||||
|
cd /root/ShellCrash
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. 下载Compose模版
|
||||||
|
|
||||||
|
```shell
|
||||||
|
curl -sSL https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@dev/docker/compose.yml -O
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. 根据本地环境修改Compose模版
|
||||||
|
|
||||||
|
```shell
|
||||||
|
vi compose.yml #或者使用其他文本编辑器
|
||||||
|
```
|
||||||
|
|
||||||
|
### 4. 运行服务
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
------
|
||||||
|
|
||||||
|
### Notes
|
||||||
|
|
||||||
|
- 旁路由模式需要宿主机支持 `TUN`
|
||||||
|
- macvlan 网络下宿主机默认无法直接访问容器 IP
|
||||||
|
- 透明代理场景可能需要额外的网络规划
|
||||||
31
docker/compose.yml
Normal file
31
docker/compose.yml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
version: "3.9"
|
||||||
|
|
||||||
|
services:
|
||||||
|
shellclash:
|
||||||
|
image: shellclash:latest
|
||||||
|
container_name: shellclash
|
||||||
|
networks:
|
||||||
|
macvlan_lan:
|
||||||
|
ipv4_address: 192.168.31.222
|
||||||
|
cap_add:
|
||||||
|
- SYS_ADMIN
|
||||||
|
- NET_ADMIN
|
||||||
|
- NET_RAW
|
||||||
|
devices:
|
||||||
|
- "/dev/net/tun:/dev/net/tun"
|
||||||
|
sysctls:
|
||||||
|
net.ipv4.ip_forward: 1
|
||||||
|
volumes:
|
||||||
|
- /etc/ShellCrash:/root/ShellCrash
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
networks:
|
||||||
|
macvlan_lan:
|
||||||
|
name: macvlan_lan
|
||||||
|
driver: macvlan
|
||||||
|
driver_opts:
|
||||||
|
parent: eth0
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: 192.168.31.0/24
|
||||||
|
gateway: 192.168.31.1
|
||||||
0
docker/s6-rc.d/afstart/dependencies.d/shellcrash
Normal file
0
docker/s6-rc.d/afstart/dependencies.d/shellcrash
Normal file
1
docker/s6-rc.d/afstart/type
Normal file
1
docker/s6-rc.d/afstart/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
oneshot
|
||||||
2
docker/s6-rc.d/afstart/up
Normal file
2
docker/s6-rc.d/afstart/up
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/command/execlineb -P
|
||||||
|
/etc/ShellCrash/start.sh afstart
|
||||||
1
docker/s6-rc.d/bfstart/type
Normal file
1
docker/s6-rc.d/bfstart/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
oneshot
|
||||||
2
docker/s6-rc.d/bfstart/up
Normal file
2
docker/s6-rc.d/bfstart/up
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/command/execlineb -P
|
||||||
|
/etc/ShellCrash/start.sh bfstart
|
||||||
3
docker/s6-rc.d/crond/run
Normal file
3
docker/s6-rc.d/crond/run
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/command/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
exec crond -f -l 8
|
||||||
1
docker/s6-rc.d/crond/type
Normal file
1
docker/s6-rc.d/crond/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
||||||
0
docker/s6-rc.d/shellcrash/dependencies.d/bfstart
Normal file
0
docker/s6-rc.d/shellcrash/dependencies.d/bfstart
Normal file
6
docker/s6-rc.d/shellcrash/run
Normal file
6
docker/s6-rc.d/shellcrash/run
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
. /etc/ShellCrash/configs/command.env
|
||||||
|
|
||||||
|
exec /bin/sh -c "${COMMAND} > /dev/null"
|
||||||
1
docker/s6-rc.d/shellcrash/type
Normal file
1
docker/s6-rc.d/shellcrash/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
||||||
0
docker/s6-rc.d/user/contents.d/crond
Normal file
0
docker/s6-rc.d/user/contents.d/crond
Normal file
85
install.sh
85
install.sh
@@ -43,14 +43,14 @@ error_down() {
|
|||||||
}
|
}
|
||||||
#安装及初始化
|
#安装及初始化
|
||||||
set_alias() {
|
set_alias() {
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
$echo "\033[36m请选择一个别名,或使用自定义别名:\033[0m"
|
$echo "\033[36m请选择一个别名,或使用自定义别名:\033[0m"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
$echo " 1 【\033[32mcrash\033[0m】"
|
$echo " 1 【\033[32mcrash\033[0m】"
|
||||||
$echo " 2 【\033[32m sc \033[0m】"
|
$echo " 2 【\033[32m sc \033[0m】"
|
||||||
$echo " 3 【\033[32m mm \033[0m】"
|
$echo " 3 【\033[32m mm \033[0m】"
|
||||||
$echo " 0 退出安装"
|
$echo " 0 退出安装"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
read -p "请输入相应数字或自定义别名 > " res
|
read -p "请输入相应数字或自定义别名 > " res
|
||||||
case "$res" in
|
case "$res" in
|
||||||
1) my_alias=crash ;;
|
1) my_alias=crash ;;
|
||||||
@@ -74,7 +74,7 @@ gettar() {
|
|||||||
else
|
else
|
||||||
$CRASHDIR/start.sh stop 2>/dev/null
|
$CRASHDIR/start.sh stop 2>/dev/null
|
||||||
#解压
|
#解压
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo 开始解压文件!
|
echo 开始解压文件!
|
||||||
mkdir -p $CRASHDIR >/dev/null
|
mkdir -p $CRASHDIR >/dev/null
|
||||||
tar -zxf '/tmp/ShellCrash.tar.gz' -C $CRASHDIR/ || tar -zxf '/tmp/ShellCrash.tar.gz' --no-same-owner -C $CRASHDIR/
|
tar -zxf '/tmp/ShellCrash.tar.gz' -C $CRASHDIR/ || tar -zxf '/tmp/ShellCrash.tar.gz' --no-same-owner -C $CRASHDIR/
|
||||||
@@ -112,7 +112,7 @@ setdir() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
set_cust_dir() {
|
set_cust_dir() {
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo '可用路径 剩余空间:'
|
echo '可用路径 剩余空间:'
|
||||||
df -h | awk '{print $6,$4}' | sed 1d
|
df -h | awk '{print $6,$4}' | sed 1d
|
||||||
echo '路径是必须带 / 的格式,注意写入虚拟内存(/tmp,/opt,/sys...)的文件会在重启后消失!!!'
|
echo '路径是必须带 / 的格式,注意写入虚拟内存(/tmp,/opt,/sys...)的文件会在重启后消失!!!'
|
||||||
@@ -122,7 +122,7 @@ setdir() {
|
|||||||
set_cust_dir
|
set_cust_dir
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
$echo "\033[33m注意:安装ShellCrash至少需要预留约1MB的磁盘空间\033[0m"
|
$echo "\033[33m注意:安装ShellCrash至少需要预留约1MB的磁盘空间\033[0m"
|
||||||
if [ -n "$systype" ]; then
|
if [ -n "$systype" ]; then
|
||||||
[ "$systype" = "Padavan" ] && dir=/etc/storage
|
[ "$systype" = "Padavan" ] && dir=/etc/storage
|
||||||
@@ -133,7 +133,7 @@ setdir() {
|
|||||||
[ -d /data/other_vol ] && $echo " 3 安装到 /data/other_vol 目录,剩余空间:$(dir_avail /data/other_vol -h)(支持软固化功能)"
|
[ -d /data/other_vol ] && $echo " 3 安装到 /data/other_vol 目录,剩余空间:$(dir_avail /data/other_vol -h)(支持软固化功能)"
|
||||||
$echo " 4 安装到自定义目录(不推荐,不明勿用!)"
|
$echo " 4 安装到自定义目录(不推荐,不明勿用!)"
|
||||||
$echo " 0 退出安装"
|
$echo " 0 退出安装"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
read -p "请输入相应数字 > " num
|
read -p "请输入相应数字 > " num
|
||||||
case "$num" in
|
case "$num" in
|
||||||
1)
|
1)
|
||||||
@@ -159,7 +159,7 @@ setdir() {
|
|||||||
$echo " 2 基于自启脚本安装(仅支持梅林及部分非koolshare官改固件)"
|
$echo " 2 基于自启脚本安装(仅支持梅林及部分非koolshare官改固件)"
|
||||||
$echo " 3 基于U盘+下载大师安装(支持所有固件,限ARM设备,须插入U盘或移动硬盘)"
|
$echo " 3 基于U盘+下载大师安装(支持所有固件,限ARM设备,须插入U盘或移动硬盘)"
|
||||||
$echo " 0 退出安装"
|
$echo " 0 退出安装"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
read -p "请输入相应数字 > " num
|
read -p "请输入相应数字 > " num
|
||||||
case "$num" in
|
case "$num" in
|
||||||
1)
|
1)
|
||||||
@@ -190,27 +190,31 @@ setdir() {
|
|||||||
$echo " 4 在\033[32m外置存储\033[0m中安装"
|
$echo " 4 在\033[32m外置存储\033[0m中安装"
|
||||||
$echo " 5 手动设置安装目录"
|
$echo " 5 手动设置安装目录"
|
||||||
$echo " 0 退出安装"
|
$echo " 0 退出安装"
|
||||||
echo -----------------------------------------------
|
echo "----------------------------------------------"
|
||||||
read -p "请输入相应数字 > " num
|
read -p "请输入相应数字 > " num
|
||||||
#设置目录
|
#设置目录
|
||||||
if [ -z $num ]; then
|
case "$num" in
|
||||||
echo 安装已取消
|
1)
|
||||||
exit 1
|
|
||||||
elif [ "$num" = "1" ]; then
|
|
||||||
dir=/etc
|
dir=/etc
|
||||||
elif [ "$num" = "2" ]; then
|
;;
|
||||||
|
2)
|
||||||
dir=/usr/share
|
dir=/usr/share
|
||||||
elif [ "$num" = "3" ]; then
|
;;
|
||||||
|
3)
|
||||||
dir=~/.local/share
|
dir=~/.local/share
|
||||||
mkdir -p ~/.config/systemd/user
|
mkdir -p ~/.config/systemd/user
|
||||||
elif [ "$num" = "4" ]; then
|
;;
|
||||||
|
4)
|
||||||
set_usb_dir
|
set_usb_dir
|
||||||
elif [ "$num" = "5" ]; then
|
;;
|
||||||
|
5)
|
||||||
set_cust_dir
|
set_cust_dir
|
||||||
else
|
;;
|
||||||
echo 安装已取消!!!
|
*)
|
||||||
|
echo "安装已取消"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -w $dir ]; then
|
if [ ! -w $dir ]; then
|
||||||
@@ -222,25 +226,25 @@ setdir() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
install() {
|
install() {
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo 开始从服务器获取安装文件!
|
echo 开始从服务器获取安装文件!
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
gettar
|
gettar
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo ShellCrash 已经安装成功!
|
echo "ShellCrash 已经安装成功!"
|
||||||
[ "$profile" = "~/.bashrc" ] && echo "请执行【. ~/.bashrc > /dev/null】命令以加载环境变量!"
|
[ "$profile" = "~/.bashrc" ] && echo "请执行【. ~/.bashrc > /dev/null】命令以加载环境变量!"
|
||||||
[ -n "$(ls -l /bin/sh | grep -oE 'zsh')" ] && echo "请执行【. ~/.zshrc > /dev/null】命令以加载环境变量!"
|
[ -n "$(ls -l /bin/sh | grep -oE 'zsh')" ] && echo "请执行【. ~/.zshrc > /dev/null】命令以加载环境变量!"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
$echo "\033[33m输入\033[30;47m $my_alias \033[0;33m命令即可管理!!!\033[0m"
|
$echo "\033[33m输入\033[30;47m $my_alias \033[0;33m命令即可管理!!!\033[0m"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
}
|
}
|
||||||
setversion() {
|
setversion() {
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
$echo "\033[33m请选择想要安装的版本:\033[0m"
|
$echo "\033[33m请选择想要安装的版本:\033[0m"
|
||||||
$echo " 1 \033[32m公测版(推荐)\033[0m"
|
$echo " 1 \033[32m公测版(推荐)\033[0m"
|
||||||
$echo " 2 \033[36m稳定版\033[0m"
|
$echo " 2 \033[36m稳定版\033[0m"
|
||||||
$echo " 3 \033[31m开发版\033[0m"
|
$echo " 3 \033[31m开发版\033[0m"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
read -p "请输入相应数字 > " num
|
read -p "请输入相应数字 > " num
|
||||||
case "$num" in
|
case "$num" in
|
||||||
2)
|
2)
|
||||||
@@ -269,7 +273,7 @@ setversion() {
|
|||||||
if [ "$USER" != "root" -a -z "$systype" ]; then
|
if [ "$USER" != "root" -a -z "$systype" ]; then
|
||||||
echo 当前用户:$USER
|
echo 当前用户:$USER
|
||||||
$echo "\033[31m请尽量使用root用户(不要直接使用sudo命令!)执行安装!\033[0m"
|
$echo "\033[31m请尽量使用root用户(不要直接使用sudo命令!)执行安装!\033[0m"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
read -p "仍要安装?可能会产生未知错误!(1/0) > " res
|
read -p "仍要安装?可能会产生未知错误!(1/0) > " res
|
||||||
[ "$res" != "1" ] && exit 1
|
[ "$res" != "1" ] && exit 1
|
||||||
fi
|
fi
|
||||||
@@ -284,32 +288,37 @@ rm -rf /tmp/version
|
|||||||
|
|
||||||
#输出
|
#输出
|
||||||
$echo "最新版本:\033[32m$versionsh\033[0m"
|
$echo "最新版本:\033[32m$versionsh\033[0m"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
$echo "\033[44m如遇问题请加TG群反馈:\033[42;30m t.me/ShellClash \033[0m"
|
$echo "\033[44m如遇问题请加TG群反馈:\033[42;30m t.me/ShellClash \033[0m"
|
||||||
$echo "\033[37m支持各种基于openwrt的路由器设备"
|
$echo "\033[37m支持各种基于openwrt的路由器设备"
|
||||||
$echo "\033[33m支持Debian、Centos等标准Linux系统\033[0m"
|
$echo "\033[33m支持Debian、Centos等标准Linux系统\033[0m"
|
||||||
|
|
||||||
if [ -n "$CRASHDIR" ]; then
|
if [ -n "$CRASHDIR" ]; then
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
$echo "检测到旧的安装目录\033[36m$CRASHDIR\033[0m,是否覆盖安装?"
|
$echo "检测到旧的安装目录\033[36m$CRASHDIR\033[0m,是否覆盖安装?"
|
||||||
$echo "\033[32m覆盖安装时不会移除配置文件!\033[0m"
|
$echo "\033[32m覆盖安装时不会移除配置文件!\033[0m"
|
||||||
read -p "覆盖安装/卸载旧版本?(1/0) > " res
|
read -p "覆盖安装/卸载旧版本?(1/0) > " res
|
||||||
if [ "$res" = "1" ]; then
|
case "$res" in
|
||||||
|
1)
|
||||||
install
|
install
|
||||||
elif [ "$res" = "0" ]; then
|
;;
|
||||||
|
0)
|
||||||
rm -rf $CRASHDIR
|
rm -rf $CRASHDIR
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
$echo "\033[31m 旧版本文件已卸载!\033[0m"
|
$echo "\033[31m 旧版本文件已卸载!\033[0m"
|
||||||
setdir
|
setdir
|
||||||
install
|
install
|
||||||
elif [ "$res" = "9" ]; then
|
;;
|
||||||
echo 测试模式,变更安装位置
|
9)
|
||||||
|
echo "测试模式,变更安装位置"
|
||||||
setdir
|
setdir
|
||||||
install
|
install
|
||||||
else
|
;;
|
||||||
|
*)
|
||||||
$echo "\033[31m输入错误!已取消安装!\033[0m"
|
$echo "\033[31m输入错误!已取消安装!\033[0m"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
else
|
else
|
||||||
setdir
|
setdir
|
||||||
install
|
install
|
||||||
|
|||||||
@@ -114,8 +114,6 @@ swdist.apple.com
|
|||||||
#Google
|
#Google
|
||||||
lens.l.google.com
|
lens.l.google.com
|
||||||
na.b.g-tun.com
|
na.b.g-tun.com
|
||||||
#Netflix
|
|
||||||
+.nflxvideo.net
|
|
||||||
#FinalFantasy XIV Worldwide Server & CN Server
|
#FinalFantasy XIV Worldwide Server & CN Server
|
||||||
*.square-enix.com
|
*.square-enix.com
|
||||||
*.finalfantasyxiv.com
|
*.finalfantasyxiv.com
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#任务ID#任务命令#任务说明(#号隔开,任务命令和说明中都不允许包含#号)
|
#任务ID#任务命令#任务说明(#号隔开,任务命令和说明中都不允许包含#号)
|
||||||
|
|
||||||
101#$CRASHDIR/start.sh start#启动clash服务
|
101#$CRASHDIR/start.sh start#启动ShellCrash服务
|
||||||
102#$CRASHDIR/start.sh stop#停止clash服务
|
102#$CRASHDIR/start.sh stop#停止ShellCrash服务
|
||||||
103#$CRASHDIR/start.sh restart#重启clash服务
|
103#$CRASHDIR/start.sh restart#重启ShellCrash服务
|
||||||
104#$CRASHDIR/start.sh update_config#更新订阅并重启服务
|
104#$CRASHDIR/start.sh update_config#更新在线订阅并重启服务
|
||||||
105#$CRASHDIR/start.sh hotupdate#热更新订阅-不推荐
|
105#$CRASHDIR/start.sh hotupdate#热更新在线订阅(不重启)
|
||||||
106#$CRASHDIR/start.sh web_save#自动保存面板配置
|
106#$CRASHDIR/start.sh web_save#自动保存面板配置
|
||||||
107#$CRASHDIR/task/task.sh ntp#自动同步ntp时间
|
107#$CRASHDIR/task/task.sh ntp#自动同步ntp时间
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#DustinWin-GeoSite全分组规则
|
#DustinWin-geosite全分组规则+去广告
|
||||||
proxy-groups:
|
proxy-groups:
|
||||||
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 👉 手动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点]}
|
- {name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点]}
|
||||||
- {name: 📋 Trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
- {name: 📋 Trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
||||||
@@ -21,14 +21,15 @@ proxy-groups:
|
|||||||
- {name: 🟢 全球绕过, type: select, proxies: [PASS], hidden: true}
|
- {name: 🟢 全球绕过, type: select, proxies: [PASS], hidden: true}
|
||||||
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
||||||
|
|
||||||
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
||||||
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
||||||
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all-providers: true}
|
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all: true}
|
||||||
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
- {name: 👉 手动选择, type: select, include-all: true}
|
||||||
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
||||||
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
||||||
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
||||||
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
||||||
|
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- GEOSITE,private,🔒 私有网络
|
- GEOSITE,private,🔒 私有网络
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#DustinWin-GeoSite无广告规则
|
#DustinWin-geosite全分组规则
|
||||||
proxy-groups:
|
proxy-groups:
|
||||||
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 👉 手动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点]}
|
- {name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点]}
|
||||||
- {name: 📋 Trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
- {name: 📋 Trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
||||||
@@ -18,14 +18,15 @@ proxy-groups:
|
|||||||
- {name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}, 🎯 全球直连]}
|
- {name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}, 🎯 全球直连]}
|
||||||
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
||||||
|
|
||||||
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
||||||
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
||||||
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all-providers: true}
|
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all: true}
|
||||||
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
- {name: 👉 手动选择, type: select, include-all: true}
|
||||||
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
||||||
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
||||||
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
||||||
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
||||||
|
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- GEOSITE,private,🔒 私有网络
|
- GEOSITE,private,🔒 私有网络
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#DustinWin-GeoSite轻量规则
|
#DustinWin-gesite轻量规则
|
||||||
proxy-groups:
|
proxy-groups:
|
||||||
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 👉 手动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 🀄️ 直连 IP, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
- {name: 🀄️ 直连 IP, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
||||||
- {name: 🧱 代理域名, type: select, proxies: [🚀 节点选择, 🎯 全球直连]}
|
- {name: 🧱 代理域名, type: select, proxies: [🚀 节点选择, 🎯 全球直连]}
|
||||||
- {name: 📲 电报消息, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 📲 电报消息, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
@@ -8,14 +8,15 @@ proxy-groups:
|
|||||||
- {name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}, 🎯 全球直连]}
|
- {name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}, 🎯 全球直连]}
|
||||||
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
||||||
|
|
||||||
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
||||||
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
||||||
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all-providers: true}
|
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all: true}
|
||||||
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
- {name: 👉 手动选择, type: select, include-all: true}
|
||||||
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
||||||
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
||||||
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
||||||
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
||||||
|
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- GEOSITE,private,🔒 私有网络
|
- GEOSITE,private,🔒 私有网络
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#DustinWin-GeoSite精简规则
|
#DustinWin-geosite标准规则+去广告
|
||||||
proxy-groups:
|
proxy-groups:
|
||||||
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 👉 手动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点]}
|
- {name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点]}
|
||||||
- {name: 📋 Trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
- {name: 📋 Trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
||||||
@@ -19,14 +19,15 @@ proxy-groups:
|
|||||||
- {name: 🟢 全球绕过, type: select, proxies: [PASS], hidden: true}
|
- {name: 🟢 全球绕过, type: select, proxies: [PASS], hidden: true}
|
||||||
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
||||||
|
|
||||||
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
||||||
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
||||||
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all-providers: true}
|
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all: true}
|
||||||
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
- {name: 👉 手动选择, type: select, include-all: true}
|
||||||
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
||||||
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
||||||
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
||||||
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
||||||
|
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- GEOSITE,private,🔒 私有网络
|
- GEOSITE,private,🔒 私有网络
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#DustinWin-GeoSite无广告精简规则
|
#DustinWin-geosite标准规则
|
||||||
proxy-groups:
|
proxy-groups:
|
||||||
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 👉 手动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点]}
|
- {name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点]}
|
||||||
- {name: 📋 Trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
- {name: 📋 Trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
||||||
@@ -16,14 +16,15 @@ proxy-groups:
|
|||||||
- {name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}, 🎯 全球直连]}
|
- {name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}, 🎯 全球直连]}
|
||||||
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
||||||
|
|
||||||
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
||||||
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
||||||
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all-providers: true}
|
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all: true}
|
||||||
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
- {name: 👉 手动选择, type: select, include-all: true}
|
||||||
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
||||||
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
||||||
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
||||||
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
||||||
|
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- GEOSITE,private,🔒 私有网络
|
- GEOSITE,private,🔒 私有网络
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#DustinWin-ruleset全分组去广告规则
|
#DustinWin-ruleset全分组规则+去广告
|
||||||
proxy-groups:
|
proxy-groups:
|
||||||
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 👉 手动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点]}
|
- {name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点]}
|
||||||
- {name: 📋 Trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
- {name: 📋 Trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
||||||
@@ -21,14 +21,15 @@ proxy-groups:
|
|||||||
- {name: 🟢 全球绕过, type: select, proxies: [PASS], hidden: true}
|
- {name: 🟢 全球绕过, type: select, proxies: [PASS], hidden: true}
|
||||||
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
||||||
|
|
||||||
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
||||||
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
||||||
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all-providers: true}
|
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all: true}
|
||||||
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
- {name: 👉 手动选择, type: select, include-all: true}
|
||||||
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
||||||
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
||||||
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
||||||
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
||||||
|
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
||||||
|
|
||||||
rule-providers:
|
rule-providers:
|
||||||
private:
|
private:
|
||||||
@@ -36,7 +37,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/private.mrs
|
path: ./ruleset/private.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/private.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/private.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
ads:
|
ads:
|
||||||
@@ -44,7 +45,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/ads.mrs
|
path: ./ruleset/ads.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/ads.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/ads.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
trackerslist:
|
trackerslist:
|
||||||
@@ -52,7 +53,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/trackerslist.mrs
|
path: ./ruleset/trackerslist.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/trackerslist.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/trackerslist.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
microsoft-cn:
|
microsoft-cn:
|
||||||
@@ -60,7 +61,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/microsoft-cn.mrs
|
path: ./ruleset/microsoft-cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/microsoft-cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/microsoft-cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
apple-cn:
|
apple-cn:
|
||||||
@@ -68,7 +69,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/apple-cn.mrs
|
path: ./ruleset/apple-cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/apple-cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/apple-cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
google-cn:
|
google-cn:
|
||||||
@@ -76,7 +77,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/google-cn.mrs
|
path: ./ruleset/google-cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/google-cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/google-cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
games-cn:
|
games-cn:
|
||||||
@@ -84,7 +85,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/games-cn.mrs
|
path: ./ruleset/games-cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/games-cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/games-cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
media:
|
media:
|
||||||
@@ -92,7 +93,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/media.mrs
|
path: ./ruleset/media.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/media.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/media.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
games:
|
games:
|
||||||
@@ -100,7 +101,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/games.mrs
|
path: ./ruleset/games.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/games.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/games.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
ai:
|
ai:
|
||||||
@@ -108,7 +109,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/ai.mrs
|
path: ./ruleset/ai.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/ai.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/ai.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
networktest:
|
networktest:
|
||||||
@@ -116,7 +117,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/networktest.mrs
|
path: ./ruleset/networktest.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/networktest.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/networktest.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
@@ -124,7 +125,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/proxy.mrs
|
path: ./ruleset/proxy.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/proxy.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/proxy.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
cn:
|
cn:
|
||||||
@@ -132,7 +133,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/cn.mrs
|
path: ./ruleset/cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
privateip:
|
privateip:
|
||||||
@@ -140,7 +141,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/privateip.mrs
|
path: ./ruleset/privateip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/privateip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/privateip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
cnip:
|
cnip:
|
||||||
@@ -148,7 +149,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/cnip.mrs
|
path: ./ruleset/cnip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cnip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/cnip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
mediaip:
|
mediaip:
|
||||||
@@ -156,7 +157,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/mediaip.mrs
|
path: ./ruleset/mediaip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/mediaip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/mediaip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
gamesip:
|
gamesip:
|
||||||
@@ -164,7 +165,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/gamesip.mrs
|
path: ./ruleset/gamesip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/gamesip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/gamesip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
telegramip:
|
telegramip:
|
||||||
@@ -172,7 +173,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/telegramip.mrs
|
path: ./ruleset/telegramip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/telegramip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/telegramip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#DustinWin-ruleset全分组规则
|
#DustinWin-ruleset全分组规则
|
||||||
proxy-groups:
|
proxy-groups:
|
||||||
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 👉 手动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点]}
|
- {name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点]}
|
||||||
- {name: 📋 Trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
- {name: 📋 Trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
||||||
@@ -18,14 +18,15 @@ proxy-groups:
|
|||||||
- {name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}, 🎯 全球直连]}
|
- {name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}, 🎯 全球直连]}
|
||||||
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
||||||
|
|
||||||
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
||||||
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
||||||
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all-providers: true}
|
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all: true}
|
||||||
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
- {name: 👉 手动选择, type: select, include-all: true}
|
||||||
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
||||||
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
||||||
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
||||||
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
||||||
|
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
||||||
|
|
||||||
rule-providers:
|
rule-providers:
|
||||||
private:
|
private:
|
||||||
@@ -33,7 +34,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/private.mrs
|
path: ./ruleset/private.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/private.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/private.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
trackerslist:
|
trackerslist:
|
||||||
@@ -41,7 +42,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/trackerslist.mrs
|
path: ./ruleset/trackerslist.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/trackerslist.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/trackerslist.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
microsoft-cn:
|
microsoft-cn:
|
||||||
@@ -49,7 +50,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/microsoft-cn.mrs
|
path: ./ruleset/microsoft-cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/microsoft-cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/microsoft-cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
apple-cn:
|
apple-cn:
|
||||||
@@ -57,7 +58,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/apple-cn.mrs
|
path: ./ruleset/apple-cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/apple-cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/apple-cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
google-cn:
|
google-cn:
|
||||||
@@ -65,7 +66,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/google-cn.mrs
|
path: ./ruleset/google-cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/google-cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/google-cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
games-cn:
|
games-cn:
|
||||||
@@ -73,7 +74,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/games-cn.mrs
|
path: ./ruleset/games-cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/games-cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/games-cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
media:
|
media:
|
||||||
@@ -81,7 +82,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/media.mrs
|
path: ./ruleset/media.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/media.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/media.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
games:
|
games:
|
||||||
@@ -89,7 +90,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/games.mrs
|
path: ./ruleset/games.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/games.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/games.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
ai:
|
ai:
|
||||||
@@ -97,7 +98,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/ai.mrs
|
path: ./ruleset/ai.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/ai.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/ai.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
networktest:
|
networktest:
|
||||||
@@ -105,7 +106,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/networktest.mrs
|
path: ./ruleset/networktest.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/networktest.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/networktest.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
@@ -113,7 +114,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/proxy.mrs
|
path: ./ruleset/proxy.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/proxy.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/proxy.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
cn:
|
cn:
|
||||||
@@ -121,7 +122,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/cn.mrs
|
path: ./ruleset/cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
privateip:
|
privateip:
|
||||||
@@ -129,7 +130,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/privateip.mrs
|
path: ./ruleset/privateip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/privateip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/privateip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
cnip:
|
cnip:
|
||||||
@@ -137,7 +138,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/cnip.mrs
|
path: ./ruleset/cnip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cnip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/cnip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
mediaip:
|
mediaip:
|
||||||
@@ -145,7 +146,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/mediaip.mrs
|
path: ./ruleset/mediaip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/mediaip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/mediaip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
gamesip:
|
gamesip:
|
||||||
@@ -153,7 +154,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/gamesip.mrs
|
path: ./ruleset/gamesip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/gamesip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/gamesip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
telegramip:
|
telegramip:
|
||||||
@@ -161,7 +162,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/telegramip.mrs
|
path: ./ruleset/telegramip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/telegramip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/telegramip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,19 +1,20 @@
|
|||||||
#DustinWin-ruleset轻量规则
|
#DustinWin-ruleset轻量规则
|
||||||
proxy-groups:
|
proxy-groups:
|
||||||
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 👉 手动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 🎯 全球直连, type: select, proxies: [DIRECT, 🚀 节点选择]}
|
- {name: 🎯 全球直连, type: select, proxies: [DIRECT, 🚀 节点选择]}
|
||||||
- {name: 🧱 代理域名, type: select, proxies: [🚀 节点选择, DIRECT]}
|
- {name: 🧱 代理域名, type: select, proxies: [🚀 节点选择, DIRECT]}
|
||||||
- {name: 📲 电报消息, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 📲 电报消息, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}, 🎯 全球直连]}
|
- {name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}, 🎯 全球直连]}
|
||||||
|
|
||||||
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
||||||
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
||||||
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all-providers: true}
|
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all: true}
|
||||||
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
- {name: 👉 手动选择, type: select, include-all: true}
|
||||||
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
||||||
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
||||||
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
||||||
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
||||||
|
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
||||||
|
|
||||||
rule-providers:
|
rule-providers:
|
||||||
cn:
|
cn:
|
||||||
@@ -21,7 +22,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/cn.mrs
|
path: ./ruleset/cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -29,7 +30,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/private.mrs
|
path: ./ruleset/private.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/private.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/private.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
tld-proxy:
|
tld-proxy:
|
||||||
@@ -37,7 +38,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/tld-proxy.mrs
|
path: ./ruleset/tld-proxy.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/tld-proxy.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/tld-proxy.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
@@ -45,7 +46,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/proxy.mrs
|
path: ./ruleset/proxy.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/proxy.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/proxy.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
privateip:
|
privateip:
|
||||||
@@ -53,7 +54,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/privateip.mrs
|
path: ./ruleset/privateip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/privateip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/privateip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
cnip:
|
cnip:
|
||||||
@@ -61,7 +62,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/cnip.mrs
|
path: ./ruleset/cnip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cnip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/cnip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
telegramip:
|
telegramip:
|
||||||
@@ -69,7 +70,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/telegramip.mrs
|
path: ./ruleset/telegramip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/telegramip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/telegramip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#DustinWin-ruleset标准规则+去广告
|
#DustinWin-ruleset标准规则+去广告
|
||||||
proxy-groups:
|
proxy-groups:
|
||||||
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 👉 手动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点]}
|
- {name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点]}
|
||||||
- {name: 📋 Trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
- {name: 📋 Trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
||||||
@@ -19,14 +19,15 @@ proxy-groups:
|
|||||||
- {name: 🟢 全球绕过, type: select, proxies: [PASS], hidden: true}
|
- {name: 🟢 全球绕过, type: select, proxies: [PASS], hidden: true}
|
||||||
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
||||||
|
|
||||||
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
||||||
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
||||||
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all-providers: true}
|
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all: true}
|
||||||
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
- {name: 👉 手动选择, type: select, include-all: true}
|
||||||
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
||||||
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
||||||
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
||||||
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
||||||
|
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
||||||
|
|
||||||
rule-providers:
|
rule-providers:
|
||||||
private:
|
private:
|
||||||
@@ -34,7 +35,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/private.mrs
|
path: ./ruleset/private.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/private.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/private.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
ads:
|
ads:
|
||||||
@@ -42,7 +43,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/ads.mrs
|
path: ./ruleset/ads.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/ads.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/ads.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
trackerslist:
|
trackerslist:
|
||||||
@@ -50,7 +51,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/trackerslist.mrs
|
path: ./ruleset/trackerslist.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/trackerslist.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/trackerslist.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
microsoft-cn:
|
microsoft-cn:
|
||||||
@@ -58,7 +59,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/microsoft-cn.mrs
|
path: ./ruleset/microsoft-cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/microsoft-cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/microsoft-cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
apple-cn:
|
apple-cn:
|
||||||
@@ -66,7 +67,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/apple-cn.mrs
|
path: ./ruleset/apple-cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/apple-cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/apple-cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
google-cn:
|
google-cn:
|
||||||
@@ -74,7 +75,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/google-cn.mrs
|
path: ./ruleset/google-cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/google-cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/google-cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
games-cn:
|
games-cn:
|
||||||
@@ -82,7 +83,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/games-cn.mrs
|
path: ./ruleset/games-cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/games-cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/games-cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
ai:
|
ai:
|
||||||
@@ -90,7 +91,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/ai.mrs
|
path: ./ruleset/ai.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/ai.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/ai.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
networktest:
|
networktest:
|
||||||
@@ -98,7 +99,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/networktest.mrs
|
path: ./ruleset/networktest.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/networktest.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/networktest.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
@@ -106,7 +107,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/proxy.mrs
|
path: ./ruleset/proxy.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/proxy.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/proxy.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
cn:
|
cn:
|
||||||
@@ -114,7 +115,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/cn.mrs
|
path: ./ruleset/cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
privateip:
|
privateip:
|
||||||
@@ -122,7 +123,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/privateip.mrs
|
path: ./ruleset/privateip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/privateip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/privateip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
cnip:
|
cnip:
|
||||||
@@ -130,7 +131,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/cnip.mrs
|
path: ./ruleset/cnip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cnip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/cnip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
telegramip:
|
telegramip:
|
||||||
@@ -138,7 +139,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/telegramip.mrs
|
path: ./ruleset/telegramip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/telegramip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/telegramip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#DustinWin-ruleset标准规则
|
#DustinWin-ruleset标准规则
|
||||||
proxy-groups:
|
proxy-groups:
|
||||||
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, 👉 手动选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
- {name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}]}
|
||||||
- {name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点]}
|
- {name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点]}
|
||||||
- {name: 📋 Trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
- {name: 📋 Trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
|
||||||
@@ -16,14 +16,15 @@ proxy-groups:
|
|||||||
- {name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}, 🎯 全球直连]}
|
- {name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇯🇵 日本节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 👑 高级节点, 📉 省流节点, {providers_tags}, 🎯 全球直连]}
|
||||||
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
- {name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true}
|
||||||
|
|
||||||
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
- {name: 👑 高级节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)"}
|
||||||
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
- {name: 📉 省流节点, type: url-test, tolerance: 100, include-all: true, filter: "(0\\.[1-5]|低倍率|省流|大流量)"}
|
||||||
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all-providers: true}
|
- {name: ♻️ 自动选择, type: url-test, tolerance: 100, include-all: true}
|
||||||
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
- {name: 👉 手动选择, type: select, include-all: true}
|
||||||
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
- {name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)"}
|
||||||
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
- {name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)"}
|
||||||
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all-providers: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
- {name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇯🇵|日|jp|japan)"}
|
||||||
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all-providers: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
- {name: 🇸🇬 新加坡节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇸🇬|新|sg|singapore)"}
|
||||||
|
- {name: 🇺🇸 美国节点, type: url-test, tolerance: 100, include-all: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)"}
|
||||||
|
|
||||||
rule-providers:
|
rule-providers:
|
||||||
private:
|
private:
|
||||||
@@ -31,7 +32,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/private.mrs
|
path: ./ruleset/private.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/private.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/private.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
trackerslist:
|
trackerslist:
|
||||||
@@ -39,7 +40,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/trackerslist.mrs
|
path: ./ruleset/trackerslist.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/trackerslist.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/trackerslist.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
microsoft-cn:
|
microsoft-cn:
|
||||||
@@ -47,7 +48,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/microsoft-cn.mrs
|
path: ./ruleset/microsoft-cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/microsoft-cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/microsoft-cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
apple-cn:
|
apple-cn:
|
||||||
@@ -55,7 +56,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/apple-cn.mrs
|
path: ./ruleset/apple-cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/apple-cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/apple-cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
google-cn:
|
google-cn:
|
||||||
@@ -63,7 +64,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/google-cn.mrs
|
path: ./ruleset/google-cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/google-cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/google-cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
games-cn:
|
games-cn:
|
||||||
@@ -71,7 +72,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/games-cn.mrs
|
path: ./ruleset/games-cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/games-cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/games-cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
ai:
|
ai:
|
||||||
@@ -79,7 +80,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/ai.mrs
|
path: ./ruleset/ai.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/ai.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/ai.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
networktest:
|
networktest:
|
||||||
@@ -87,7 +88,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/networktest.mrs
|
path: ./ruleset/networktest.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/networktest.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/networktest.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
@@ -95,7 +96,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/proxy.mrs
|
path: ./ruleset/proxy.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/proxy.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/proxy.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
cn:
|
cn:
|
||||||
@@ -103,7 +104,7 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/cn.mrs
|
path: ./ruleset/cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cn-lite.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/cn-lite.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
privateip:
|
privateip:
|
||||||
@@ -111,7 +112,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/privateip.mrs
|
path: ./ruleset/privateip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/privateip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/privateip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
cnip:
|
cnip:
|
||||||
@@ -119,7 +120,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/cnip.mrs
|
path: ./ruleset/cnip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cnip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/cnip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
telegramip:
|
telegramip:
|
||||||
@@ -127,7 +128,7 @@ rule-providers:
|
|||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/telegramip.mrs
|
path: ./ruleset/telegramip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/telegramip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/telegramip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#ShellCrash-GeoIP极简规则
|
#ShellCrash-geosite极简规则
|
||||||
proxy-groups:
|
proxy-groups:
|
||||||
- {name: 🚀 节点选择, type: select, proxies: [{providers_tags}], include-all-providers: true}
|
- {name: 🚀 节点选择, type: select, proxies: [{providers_tags}], include-all: true}
|
||||||
- {name: 🎯 全球直连, type: select, proxies: [DIRECT, 🚀 节点选择]}
|
- {name: 🎯 全球直连, type: select, proxies: [DIRECT, 🚀 节点选择]}
|
||||||
rules:
|
rules:
|
||||||
- GEOIP,cn,🎯 全球直连
|
- GEOIP,cn,🎯 全球直连
|
||||||
|
|||||||
243
rules/clash_providers/ShellCrash_RS_Full_BanAds.yaml
Normal file
243
rules/clash_providers/ShellCrash_RS_Full_BanAds.yaml
Normal file
@@ -0,0 +1,243 @@
|
|||||||
|
#ShellCrash-ruleset全分组规则+去广告
|
||||||
|
|
||||||
|
#此版本为Maozai根据ACL4SSR规则修改优化而来,尽量在保持原有的基础上进行优化。
|
||||||
|
#数据源采用了DustinWin/ruleset_geodata和MetaCubeX/meta-rules-dat两个开源项目的规则,感谢原作者的辛勤付出。
|
||||||
|
|
||||||
|
#请在充分理解代码其原理及可能产生的副作用后再进行修改,否则可能导致功能异常
|
||||||
|
#参考资料:https://wiki.metacubex.one/config/ & https://sing-box.sagernet.org/zh/configuration/
|
||||||
|
|
||||||
|
#代理组
|
||||||
|
proxy-groups:
|
||||||
|
- { name: 🚀 节点选择, type: select, proxies: [♻️ 自动选择, ✨ 自动选择(去高倍率), 🛠️ 手动切换, ⚖️ 负载均衡, 🚑 故障转移, 🎯 全球直连, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇸🇬 狮城节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇺🇸 美国节点, 🇪🇺 欧洲节点, 👑 高级节点, 📉 省流节点, {providers_tags}] }
|
||||||
|
- { name: 🛠️ 手动切换, type: select, include-all: true, exclude-type: direct }
|
||||||
|
- { name: ♻️ 自动选择, type: url-test, interval: 600, tolerance: 50, include-all: true, exclude-type: direct }
|
||||||
|
- { name: ✨ 自动选择(去高倍率), type: url-test, interval: 600, tolerance: 50, include-all: true, exclude-type: direct, filter: "(?i)^(?!.*(专线|专用|高级|高速|高倍率|IEPL|IPLC|x([2-9]|\\d{2,}))).*" }
|
||||||
|
- { name: ⚖️ 负载均衡, type: load-balance, interval: 600, include-all: true, exclude-type: direct, hidden: true }
|
||||||
|
- { name: 🚑 故障转移, type: fallback, interval: 600, include-all: true, exclude-type: direct, hidden: true }
|
||||||
|
|
||||||
|
- { name: 🤖 AI 平台, type: select, proxies: [🚀 节点选择, 🤖 AI节点(过滤港澳), 🎯 全球直连, ♻️ 自动选择, 🛠️ 手动切换, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇸🇬 狮城节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇺🇸 美国节点, 🇪🇺 欧洲节点, 👑 高级节点, 📉 省流节点, {providers_tags}] }
|
||||||
|
- { name: 🤖 AI节点(过滤港澳), type: url-test, interval: 1800, tolerance: 50, include-all: true, filter: "(?i)^(?!.*(🇭🇰|港|🇲🇴|澳门|hk|hongkong|hong kong)).*", hidden: true }
|
||||||
|
- { name: 📢 谷歌FCM, type: select, proxies: [🚀 节点选择, 🎯 全球直连, ♻️ 自动选择, 🛠️ 手动切换, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇸🇬 狮城节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇺🇸 美国节点, 🇪🇺 欧洲节点, 👑 高级节点, 📉 省流节点, {providers_tags}] }
|
||||||
|
- { name: 🎥 奈飞视频, type: select, proxies: [🚀 节点选择, 🎥 奈飞节点, 🎯 全球直连, ♻️ 自动选择, 🛠️ 手动切换, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇸🇬 狮城节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇺🇸 美国节点, 🇪🇺 欧洲节点, 👑 高级节点, 📉 省流节点, {providers_tags}] }
|
||||||
|
- { name: 🎥 奈飞节点, type: url-test, interval: 1800, tolerance: 50, include-all: true, filter: "(?i)(NF|奈飞|解锁|Netflix|NETFLIX|Media)", hidden: true }
|
||||||
|
- { name: 📹 油管视频, type: select, proxies: [🚀 节点选择, 🎯 全球直连, ♻️ 自动选择, 🛠️ 手动切换, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇸🇬 狮城节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇺🇸 美国节点, 🇪🇺 欧洲节点, 👑 高级节点, 📉 省流节点, {providers_tags}] }
|
||||||
|
- { name: 📲 电报消息, type: select, proxies: [🚀 节点选择, 🎯 全球直连, ♻️ 自动选择, 🛠️ 手动切换, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇸🇬 狮城节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇺🇸 美国节点, 🇪🇺 欧洲节点, 👑 高级节点, 📉 省流节点, {providers_tags}] }
|
||||||
|
- { name: 🌍 国外媒体, type: select, proxies: [🚀 节点选择, 🎯 全球直连, ♻️ 自动选择, 🛠️ 手动切换, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇸🇬 狮城节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇺🇸 美国节点, 🇪🇺 欧洲节点, 👑 高级节点, 📉 省流节点, {providers_tags}] }
|
||||||
|
- { name: 🧱 代理域名, type: select, proxies: [🚀 节点选择, 🎯 全球直连, ♻️ 自动选择, 🛠️ 手动切换, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇸🇬 狮城节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇺🇸 美国节点, 🇪🇺 欧洲节点, 👑 高级节点, 📉 省流节点, {providers_tags}] }
|
||||||
|
- { name: 🎮 国外游戏, type: select, proxies: [🚀 节点选择, 🎯 全球直连, ♻️ 自动选择, 🛠️ 手动切换, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇸🇬 狮城节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇺🇸 美国节点, 🇪🇺 欧洲节点, 👑 高级节点, 📉 省流节点, {providers_tags}] }
|
||||||
|
|
||||||
|
- { name: 🕹 国内游戏, type: select, proxies: [🎯 全球直连, 🚀 节点选择, ♻️ 自动选择, 🛠️ 手动切换, {providers_tags}] }
|
||||||
|
- { name: 🪟 微软服务, type: select, proxies: [🎯 全球直连, 🚀 节点选择, ♻️ 自动选择, 🛠️ 手动切换, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇸🇬 狮城节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇺🇸 美国节点, 🇪🇺 欧洲节点, 👑 高级节点, 📉 省流节点, {providers_tags}] }
|
||||||
|
- { name: 🍎 苹果服务, type: select, proxies: [🎯 全球直连, 🚀 节点选择, ♻️ 自动选择, 🛠️ 手动切换, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇸🇬 狮城节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇺🇸 美国节点, 🇪🇺 欧洲节点, 👑 高级节点, 📉 省流节点, {providers_tags}] }
|
||||||
|
- { name: 💾 trackerslist, type: select, proxies: [🎯 全球直连, 🚀 节点选择, ♻️ 自动选择, 🛠️ 手动切换, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇸🇬 狮城节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇺🇸 美国节点, 🇪🇺 欧洲节点, 👑 高级节点, 📉 省流节点, {providers_tags}] }
|
||||||
|
- { name: 📈 网络测试, type: select, proxies: [🎯 全球直连, 🚀 节点选择, ♻️ 自动选择, 🛠️ 手动切换, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇸🇬 狮城节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇺🇸 美国节点, 🇪🇺 欧洲节点, 👑 高级节点, 📉 省流节点, {providers_tags}] }
|
||||||
|
- { name: ↔️ 国外直连, type: select, proxies: [🎯 全球直连, 🚀 节点选择, ♻️ 自动选择, 🛠️ 手动切换, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇸🇬 狮城节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇺🇸 美国节点, 🇪🇺 欧洲节点, 👑 高级节点, 📉 省流节点, {providers_tags}] }
|
||||||
|
- { name: 🀄️ 国内直连, type: select, proxies: [🎯 全球直连, 🚀 节点选择, ♻️ 自动选择, 🛠️ 手动切换, {providers_tags}] }
|
||||||
|
|
||||||
|
- { name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🎯 全球直连, ♻️ 自动选择, 🛠️ 手动切换, 🇭🇰 香港节点, 🇹🇼 台湾节点, 🇸🇬 狮城节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇺🇸 美国节点, 🇪🇺 欧洲节点, 👑 高级节点, 📉 省流节点, {providers_tags}] }
|
||||||
|
|
||||||
|
- { name: 🛑 广告拦截, type: select, proxies: [🔴 全球拦截, 🎯 全球直连] }
|
||||||
|
- { name: 🔒 私有网络, type: select, proxies: [DIRECT], hidden: true }
|
||||||
|
- { name: 🔴 全球拦截, type: select, proxies: [REJECT], hidden: true }
|
||||||
|
- { name: 🎯 全球直连, type: select, proxies: [DIRECT], hidden: true }
|
||||||
|
|
||||||
|
- { name: 🇭🇰 香港节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇭🇰|港|hk|hongkong|hong kong)" }
|
||||||
|
- { name: 🇹🇼 台湾节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇹🇼|台|tw|taiwan|tai wan)" }
|
||||||
|
- { name: 🇸🇬 狮城节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇸🇬|新|坡|狮城|sg|singapore)" }
|
||||||
|
- { name: 🇯🇵 日本节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇯🇵|日|东京|大阪|泉日|埼玉|jp|japan)" }
|
||||||
|
- { name: 🇰🇷 韩国节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(KR|首尔|韩|韓|kor)" }
|
||||||
|
- { name: 🇺🇸 美国节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇺🇸|美|us|unitedstates|united states)" }
|
||||||
|
- { name: 🇪🇺 欧洲节点, type: url-test, tolerance: 50, include-all: true, filter: "(?i)(🇪🇺|欧|欧洲|eu|eur|德|英|瑞|法|荷|土耳|意大利|西班牙)" }
|
||||||
|
|
||||||
|
- { name: 👑 高级节点, type: url-test, interval: 1800, tolerance: 50, include-all: true, filter: "(?i)(专线|专用|高级|直连|急速|高速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)" }
|
||||||
|
- { name: 📉 省流节点, type: url-test, interval: 1800, tolerance: 50, include-all: true, filter: "(0\\.[1-6]|低倍率|省流|大流量)" }
|
||||||
|
|
||||||
|
#规则提供者(更新mrs格式)
|
||||||
|
rule-providers:
|
||||||
|
ai:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/ai.mrs"
|
||||||
|
youtube:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/youtube.mrs"
|
||||||
|
netflix:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/netflix.mrs"
|
||||||
|
telegram:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@refs/heads/meta/geo/geosite/telegram.mrs"
|
||||||
|
telegramip:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: ipcidr
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/telegramip.mrs"
|
||||||
|
trackerslist:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/trackerslist.mrs"
|
||||||
|
private:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/private.mrs"
|
||||||
|
privateip:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: ipcidr
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/privateip.mrs"
|
||||||
|
networktest:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/networktest.mrs"
|
||||||
|
apple-cn:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/apple-cn.mrs"
|
||||||
|
google-cn:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/google-cn.mrs"
|
||||||
|
googlefcm:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@refs/heads/meta/geo/geosite/googlefcm.mrs"
|
||||||
|
steamcn:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@refs/heads/meta/geo/geosite/steam@cn.mrs"
|
||||||
|
microsoft-cn:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/microsoft-cn.mrs"
|
||||||
|
games-cn:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/games-cn.mrs"
|
||||||
|
games:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/games.mrs"
|
||||||
|
gamesip:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: ipcidr
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/gamesip.mrs"
|
||||||
|
tld-proxy:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/tld-proxy.mrs"
|
||||||
|
cn-lite:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/cn-lite.mrs"
|
||||||
|
mediaip:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: ipcidr
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/mediaip.mrs"
|
||||||
|
media:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/media.mrs"
|
||||||
|
gfw:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/gfw.mrs"
|
||||||
|
cnip:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: ipcidr
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/cnip.mrs"
|
||||||
|
proxy:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/proxy.mrs"
|
||||||
|
cn:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/cn.mrs"
|
||||||
|
ads:
|
||||||
|
type: http
|
||||||
|
format: mrs
|
||||||
|
interval: 86400
|
||||||
|
behavior: domain
|
||||||
|
url: "https://fastly.jsdelivr.net/gh/DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/ads.mrs"
|
||||||
|
|
||||||
|
#规则顺序
|
||||||
|
rules:
|
||||||
|
- RULE-SET,privateip,🔒 私有网络,no-resolve
|
||||||
|
- RULE-SET,private,🔒 私有网络
|
||||||
|
- RULE-SET,ads,🛑 广告拦截
|
||||||
|
- RULE-SET,networktest,📈 网络测试
|
||||||
|
- RULE-SET,trackerslist,💾 trackerslist
|
||||||
|
- RULE-SET,googlefcm,📢 谷歌FCM
|
||||||
|
- RULE-SET,google-cn,↔️ 国外直连
|
||||||
|
- RULE-SET,steamcn,↔️ 国外直连
|
||||||
|
- RULE-SET,microsoft-cn,🪟 微软服务
|
||||||
|
- RULE-SET,apple-cn,🍎 苹果服务
|
||||||
|
- RULE-SET,telegramip,📲 电报消息,no-resolve
|
||||||
|
- RULE-SET,telegram,📲 电报消息
|
||||||
|
- RULE-SET,netflix,🎥 奈飞视频
|
||||||
|
- RULE-SET,youtube,📹 油管视频
|
||||||
|
- RULE-SET,ai,🤖 AI 平台
|
||||||
|
|
||||||
|
- RULE-SET,games-cn,🕹 国内游戏
|
||||||
|
- RULE-SET,gamesip,🎮 国外游戏
|
||||||
|
- RULE-SET,games,🎮 国外游戏
|
||||||
|
- RULE-SET,mediaip,🌍 国外媒体
|
||||||
|
- RULE-SET,media,🌍 国外媒体
|
||||||
|
- RULE-SET,tld-proxy,🧱 代理域名
|
||||||
|
- RULE-SET,cn-lite,🀄️ 国内直连
|
||||||
|
- RULE-SET,gfw,🧱 代理域名
|
||||||
|
- RULE-SET,cnip,🀄️ 国内直连
|
||||||
|
- RULE-SET,proxy,🧱 代理域名
|
||||||
|
- RULE-SET,cn,🀄️ 国内直连
|
||||||
|
- MATCH,🐟 漏网之鱼
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#Ruleset极简规则
|
#ShellCrash-ruleset极简规则
|
||||||
proxy-groups:
|
proxy-groups:
|
||||||
- {name: 🚀 节点选择, type: select, proxies: [{providers_tags}], include-all-providers: true}
|
- {name: 🚀 节点选择, type: select, proxies: [{providers_tags}], include-all: true}
|
||||||
- {name: 🎯 全球直连, type: select, proxies: [DIRECT, 🚀 节点选择]}
|
- {name: 🎯 全球直连, type: select, proxies: [DIRECT, 🚀 节点选择]}
|
||||||
rule-providers:
|
rule-providers:
|
||||||
cn:
|
cn:
|
||||||
@@ -8,21 +8,21 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/cn.mrs
|
path: ./ruleset/cn.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cn.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/cn.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
privateip:
|
privateip:
|
||||||
type: http
|
type: http
|
||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/privateip.mrs
|
path: ./ruleset/privateip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/privateip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/privateip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
cnip:
|
cnip:
|
||||||
type: http
|
type: http
|
||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
path: ./ruleset/cnip.mrs
|
path: ./ruleset/cnip.mrs
|
||||||
url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cnip.mrs"
|
url: "https://testingcf.jsdelivr.net/gh//DustinWin/ruleset_geodata@refs/heads/mihomo-ruleset/cnip.mrs"
|
||||||
interval: 86400
|
interval: 86400
|
||||||
rules:
|
rules:
|
||||||
- RULE-SET,privateip,🎯 全球直连,no-resolve
|
- RULE-SET,privateip,🎯 全球直连,no-resolve
|
||||||
|
|||||||
@@ -4,3 +4,9 @@ DustinWin-ruleset标准规则 DustinWin_RS_Lite_NoAds.yaml
|
|||||||
DustinWin-ruleset标准规则+去广告 DustinWin_RS_Lite.yaml
|
DustinWin-ruleset标准规则+去广告 DustinWin_RS_Lite.yaml
|
||||||
DustinWin-ruleset全分组规则 DustinWin_RS_Full_NoAds.yaml
|
DustinWin-ruleset全分组规则 DustinWin_RS_Full_NoAds.yaml
|
||||||
DustinWin-ruleset全分组规则+去广告 DustinWin_RS_Full.yaml
|
DustinWin-ruleset全分组规则+去广告 DustinWin_RS_Full.yaml
|
||||||
|
ShellCrash-geosite极简规则 ShellCrash_Geo_Nano.yaml
|
||||||
|
DustinWin-geosite轻量规则 DustinWin_Geo_Light.yaml
|
||||||
|
DustinWin-geosite标准规则 DustinWin_Geo_Lite_NoAds.yaml
|
||||||
|
DustinWin-geosite标准规则+去广告 DustinWin_Geo_Lite.yaml
|
||||||
|
DustinWin-geosite全分组规则 DustinWin_Geo_Full_NoAds.yaml
|
||||||
|
DustinWin-geosite全分组规则+去广告 DustinWin_Geo_Full.yaml
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//DustinWin-ruleset全分组规则+去广告
|
//DustinWin-ruleset全分组规则+去广告
|
||||||
{
|
{
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
{ "tag": "🚀 节点选择", "type": "selector", "outbounds": [ "♻️ 自动选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", "🎯 全球直连", {providers_tags} ] },
|
{ "tag": "🚀 节点选择", "type": "selector", "outbounds": [ "♻️ 自动选择", "👉 手动选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", "🎯 全球直连", {providers_tags} ] },
|
||||||
{ "tag": "📈 网络测试", "type": "selector", "outbounds": [ "🎯 全球直连", "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", {providers_tags} ] },
|
{ "tag": "📈 网络测试", "type": "selector", "outbounds": [ "🎯 全球直连", "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", {providers_tags} ] },
|
||||||
{ "tag": "🤖 AI 平台", "type": "selector", "outbounds": [ "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点" ] },
|
{ "tag": "🤖 AI 平台", "type": "selector", "outbounds": [ "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点" ] },
|
||||||
{ "tag": "📋 Trackerslist", "type": "selector", "outbounds": [ "🎯 全球直连", "🚀 节点选择" ] },
|
{ "tag": "📋 Trackerslist", "type": "selector", "outbounds": [ "🎯 全球直连", "🚀 节点选择" ] },
|
||||||
@@ -21,6 +21,7 @@
|
|||||||
{ "tag": "👑 高级节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)" },
|
{ "tag": "👑 高级节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)" },
|
||||||
{ "tag": "📉 省流节点", "type": "urltest", "tolerance": 100, "use_all_providers": true, "include": "0\\.[1-5]|低倍率|省流|大流量" },
|
{ "tag": "📉 省流节点", "type": "urltest", "tolerance": 100, "use_all_providers": true, "include": "0\\.[1-5]|低倍率|省流|大流量" },
|
||||||
{ "tag": "♻️ 自动选择", "type": "urltest", "tolerance": 100, "use_all_providers": true },
|
{ "tag": "♻️ 自动选择", "type": "urltest", "tolerance": 100, "use_all_providers": true },
|
||||||
|
{ "tag": "👉 手动选择", "type": "selector", "use_all_providers": true },
|
||||||
{ "tag": "🇭🇰 香港节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇭🇰|港|hk|hongkong|hong kong)" },
|
{ "tag": "🇭🇰 香港节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇭🇰|港|hk|hongkong|hong kong)" },
|
||||||
{ "tag": "🇹🇼 台湾节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇹🇼|台|tw|taiwan|tai wan)" },
|
{ "tag": "🇹🇼 台湾节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇹🇼|台|tw|taiwan|tai wan)" },
|
||||||
{ "tag": "🇯🇵 日本节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇯🇵|日|jp|japan)" },
|
{ "tag": "🇯🇵 日本节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇯🇵|日|jp|japan)" },
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//DustinWin-ruleset全分组规则
|
//DustinWin-ruleset全分组规则
|
||||||
{
|
{
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
{ "tag": "🚀 节点选择", "type": "selector", "outbounds": [ "♻️ 自动选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", "🎯 全球直连", {providers_tags} ] },
|
{ "tag": "🚀 节点选择", "type": "selector", "outbounds": [ "♻️ 自动选择", "👉 手动选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", "🎯 全球直连", {providers_tags} ] },
|
||||||
{ "tag": "📈 网络测试", "type": "selector", "outbounds": [ "🎯 全球直连", "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", {providers_tags} ] },
|
{ "tag": "📈 网络测试", "type": "selector", "outbounds": [ "🎯 全球直连", "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", {providers_tags} ] },
|
||||||
{ "tag": "🤖 AI 平台", "type": "selector", "outbounds": [ "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点" ] },
|
{ "tag": "🤖 AI 平台", "type": "selector", "outbounds": [ "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点" ] },
|
||||||
{ "tag": "📋 Trackerslist", "type": "selector", "outbounds": [ "🎯 全球直连", "🚀 节点选择" ] },
|
{ "tag": "📋 Trackerslist", "type": "selector", "outbounds": [ "🎯 全球直连", "🚀 节点选择" ] },
|
||||||
@@ -21,6 +21,7 @@
|
|||||||
{ "tag": "👑 高级节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)" },
|
{ "tag": "👑 高级节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)" },
|
||||||
{ "tag": "📉 省流节点", "type": "urltest", "tolerance": 100, "use_all_providers": true, "include": "0\\.[1-5]|低倍率|省流|大流量" },
|
{ "tag": "📉 省流节点", "type": "urltest", "tolerance": 100, "use_all_providers": true, "include": "0\\.[1-5]|低倍率|省流|大流量" },
|
||||||
{ "tag": "♻️ 自动选择", "type": "urltest", "tolerance": 100, "use_all_providers": true },
|
{ "tag": "♻️ 自动选择", "type": "urltest", "tolerance": 100, "use_all_providers": true },
|
||||||
|
{ "tag": "👉 手动选择", "type": "selector", "use_all_providers": true },
|
||||||
{ "tag": "🇭🇰 香港节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇭🇰|港|hk|hongkong|hong kong)" },
|
{ "tag": "🇭🇰 香港节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇭🇰|港|hk|hongkong|hong kong)" },
|
||||||
{ "tag": "🇹🇼 台湾节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇹🇼|台|tw|taiwan|tai wan)" },
|
{ "tag": "🇹🇼 台湾节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇹🇼|台|tw|taiwan|tai wan)" },
|
||||||
{ "tag": "🇯🇵 日本节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇯🇵|日|jp|japan)" },
|
{ "tag": "🇯🇵 日本节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇯🇵|日|jp|japan)" },
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//DustinWin-ruleset轻量规则
|
//DustinWin-ruleset轻量规则
|
||||||
{
|
{
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
{ "tag": "🚀 节点选择", "type": "selector", "outbounds": [ "♻️ 自动选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", "🎯 全球直连", {providers_tags} ] },
|
{ "tag": "🚀 节点选择", "type": "selector", "outbounds": [ "♻️ 自动选择", "👉 手动选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", "🎯 全球直连", {providers_tags} ] },
|
||||||
{ "tag": "🧱 代理域名", "type": "selector", "outbounds": [ "🚀 节点选择", "🎯 全球直连" ] },
|
{ "tag": "🧱 代理域名", "type": "selector", "outbounds": [ "🚀 节点选择", "🎯 全球直连" ] },
|
||||||
{ "tag": "📲 电报消息", "type": "selector", "outbounds": [ "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", {providers_tags} ] },
|
{ "tag": "📲 电报消息", "type": "selector", "outbounds": [ "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", {providers_tags} ] },
|
||||||
{ "tag": "🐟 漏网之鱼", "type": "selector", "outbounds": [ "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", {providers_tags}, "🎯 全球直连" ] },
|
{ "tag": "🐟 漏网之鱼", "type": "selector", "outbounds": [ "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", {providers_tags}, "🎯 全球直连" ] },
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
{ "tag": "👑 高级节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)" },
|
{ "tag": "👑 高级节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)" },
|
||||||
{ "tag": "📉 省流节点", "type": "urltest", "tolerance": 100, "use_all_providers": true, "include": "0\\.[1-5]|低倍率|省流|大流量" },
|
{ "tag": "📉 省流节点", "type": "urltest", "tolerance": 100, "use_all_providers": true, "include": "0\\.[1-5]|低倍率|省流|大流量" },
|
||||||
{ "tag": "♻️ 自动选择", "type": "urltest", "tolerance": 100, "use_all_providers": true },
|
{ "tag": "♻️ 自动选择", "type": "urltest", "tolerance": 100, "use_all_providers": true },
|
||||||
|
{ "tag": "👉 手动选择", "type": "selector", "use_all_providers": true },
|
||||||
{ "tag": "🇭🇰 香港节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇭🇰|港|hk|hongkong|hong kong)" },
|
{ "tag": "🇭🇰 香港节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇭🇰|港|hk|hongkong|hong kong)" },
|
||||||
{ "tag": "🇹🇼 台湾节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇹🇼|台|tw|taiwan|tai wan)" },
|
{ "tag": "🇹🇼 台湾节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇹🇼|台|tw|taiwan|tai wan)" },
|
||||||
{ "tag": "🇯🇵 日本节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇯🇵|日|jp|japan)" },
|
{ "tag": "🇯🇵 日本节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇯🇵|日|jp|japan)" },
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//DustinWin-ruleset标准规则+去广告
|
//DustinWin-ruleset标准规则+去广告
|
||||||
{
|
{
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
{ "tag": "🚀 节点选择", "type": "selector", "outbounds": [ "♻️ 自动选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", "🎯 全球直连", {providers_tags} ] },
|
{ "tag": "🚀 节点选择", "type": "selector", "outbounds": [ "♻️ 自动选择", "👉 手动选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", "🎯 全球直连", {providers_tags} ] },
|
||||||
{ "tag": "📈 网络测试", "type": "selector", "outbounds": [ "🎯 全球直连", "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", {providers_tags} ] },
|
{ "tag": "📈 网络测试", "type": "selector", "outbounds": [ "🎯 全球直连", "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", {providers_tags} ] },
|
||||||
{ "tag": "🤖 AI 平台", "type": "selector", "outbounds": [ "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点" ] },
|
{ "tag": "🤖 AI 平台", "type": "selector", "outbounds": [ "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点" ] },
|
||||||
{ "tag": "📋 Trackerslist", "type": "selector", "outbounds": [ "🎯 全球直连", "🚀 节点选择" ] },
|
{ "tag": "📋 Trackerslist", "type": "selector", "outbounds": [ "🎯 全球直连", "🚀 节点选择" ] },
|
||||||
@@ -19,6 +19,7 @@
|
|||||||
{ "tag": "👑 高级节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)" },
|
{ "tag": "👑 高级节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)" },
|
||||||
{ "tag": "📉 省流节点", "type": "urltest", "tolerance": 100, "use_all_providers": true, "include": "0\\.[1-5]|低倍率|省流|大流量" },
|
{ "tag": "📉 省流节点", "type": "urltest", "tolerance": 100, "use_all_providers": true, "include": "0\\.[1-5]|低倍率|省流|大流量" },
|
||||||
{ "tag": "♻️ 自动选择", "type": "urltest", "tolerance": 100, "use_all_providers": true },
|
{ "tag": "♻️ 自动选择", "type": "urltest", "tolerance": 100, "use_all_providers": true },
|
||||||
|
{ "tag": "👉 手动选择", "type": "selector", "use_all_providers": true },
|
||||||
{ "tag": "🇭🇰 香港节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇭🇰|港|hk|hongkong|hong kong)" },
|
{ "tag": "🇭🇰 香港节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇭🇰|港|hk|hongkong|hong kong)" },
|
||||||
{ "tag": "🇹🇼 台湾节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇹🇼|台|tw|taiwan|tai wan)" },
|
{ "tag": "🇹🇼 台湾节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇹🇼|台|tw|taiwan|tai wan)" },
|
||||||
{ "tag": "🇯🇵 日本节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇯🇵|日|jp|japan)" },
|
{ "tag": "🇯🇵 日本节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇯🇵|日|jp|japan)" },
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//DustinWin-ruleset标准规则
|
//DustinWin-ruleset标准规则
|
||||||
{
|
{
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
{ "tag": "🚀 节点选择", "type": "selector", "outbounds": [ "♻️ 自动选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", "🎯 全球直连", {providers_tags} ] },
|
{ "tag": "🚀 节点选择", "type": "selector", "outbounds": [ "♻️ 自动选择", "👉 手动选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", "🎯 全球直连", {providers_tags} ] },
|
||||||
{ "tag": "📈 网络测试", "type": "selector", "outbounds": [ "🎯 全球直连", "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", {providers_tags} ] },
|
{ "tag": "📈 网络测试", "type": "selector", "outbounds": [ "🎯 全球直连", "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点", "👑 高级节点", "📉 省流节点", {providers_tags} ] },
|
||||||
{ "tag": "🤖 AI 平台", "type": "selector", "outbounds": [ "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点" ] },
|
{ "tag": "🤖 AI 平台", "type": "selector", "outbounds": [ "🚀 节点选择", "🇭🇰 香港节点", "🇹🇼 台湾节点", "🇯🇵 日本节点", "🇸🇬 新加坡节点", "🇺🇸 美国节点" ] },
|
||||||
{ "tag": "📋 Trackerslist", "type": "selector", "outbounds": [ "🎯 全球直连", "🚀 节点选择" ] },
|
{ "tag": "📋 Trackerslist", "type": "selector", "outbounds": [ "🎯 全球直连", "🚀 节点选择" ] },
|
||||||
@@ -19,6 +19,7 @@
|
|||||||
{ "tag": "👑 高级节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)" },
|
{ "tag": "👑 高级节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(专线|专用|高级|直连|急速|高倍率|游戏|game|IEPL|IPLC|AIA|CTM|CC|AC)" },
|
||||||
{ "tag": "📉 省流节点", "type": "urltest", "tolerance": 100, "use_all_providers": true, "include": "0\\.[1-5]|低倍率|省流|大流量" },
|
{ "tag": "📉 省流节点", "type": "urltest", "tolerance": 100, "use_all_providers": true, "include": "0\\.[1-5]|低倍率|省流|大流量" },
|
||||||
{ "tag": "♻️ 自动选择", "type": "urltest", "tolerance": 100, "use_all_providers": true },
|
{ "tag": "♻️ 自动选择", "type": "urltest", "tolerance": 100, "use_all_providers": true },
|
||||||
|
{ "tag": "👉 手动选择", "type": "selector", "use_all_providers": true },
|
||||||
{ "tag": "🇭🇰 香港节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇭🇰|港|hk|hongkong|hong kong)" },
|
{ "tag": "🇭🇰 香港节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇭🇰|港|hk|hongkong|hong kong)" },
|
||||||
{ "tag": "🇹🇼 台湾节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇹🇼|台|tw|taiwan|tai wan)" },
|
{ "tag": "🇹🇼 台湾节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇹🇼|台|tw|taiwan|tai wan)" },
|
||||||
{ "tag": "🇯🇵 日本节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇯🇵|日|jp|japan)" },
|
{ "tag": "🇯🇵 日本节点", "type": "urltest", "use_all_providers": true, "include": "(?i)(🇯🇵|日|jp|japan)" },
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//Ruleset极简规则
|
//ShellCrash-ruleset极简规则
|
||||||
{
|
{
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
{ "tag": "🚀 节点选择", "type": "selector", "outbounds": [ {providers_tags}, "DIRECT" ], "use_all_providers": true },
|
{ "tag": "🚀 节点选择", "type": "selector", "outbounds": [ {providers_tags}, "DIRECT" ], "use_all_providers": true },
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Copyright (C) Juewuy
|
# Copyright (C) Juewuy
|
||||||
|
|
||||||
version=1.9.3beta7fix
|
version=1.9.3pre2
|
||||||
|
|
||||||
setdir() {
|
setdir() {
|
||||||
dir_avail() {
|
dir_avail() {
|
||||||
@@ -28,17 +28,17 @@ setdir() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
set_cust_dir() {
|
set_cust_dir() {
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo '可用路径 剩余空间:'
|
echo "可用路径 剩余空间:"
|
||||||
df -h | awk '{print $6,$4}' | sed 1d
|
df -h | awk '{print $6,$4}' | sed 1d
|
||||||
echo '路径是必须带 / 的格式,注意写入虚拟内存(/tmp,/opt,/sys...)的文件会在重启后消失!!!'
|
echo "路径是必须带 / 的格式,注意写入虚拟内存(/tmp,/opt,/sys...)的文件会在重启后消失!!!"
|
||||||
read -p "请输入自定义路径 > " dir
|
read -p "请输入自定义路径 > " dir
|
||||||
if [ "$(dir_avail $dir)" = 0 ] || [ -n "$(echo $dir | grep -E 'tmp|opt|sys')" ]; then
|
if [ "$(dir_avail $dir)" = 0 ] || [ -n "$(echo $dir | grep -E 'tmp|opt|sys')" ]; then
|
||||||
echo "\033[31m路径错误!请重新设置!\033[0m"
|
echo "\033[31m路径错误!请重新设置!\033[0m"
|
||||||
set_cust_dir
|
set_cust_dir
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
if [ -n "$systype" ]; then
|
if [ -n "$systype" ]; then
|
||||||
[ "$systype" = "Padavan" ] && dir=/etc/storage
|
[ "$systype" = "Padavan" ] && dir=/etc/storage
|
||||||
[ "$systype" = "mi_snapshot" ] && {
|
[ "$systype" = "mi_snapshot" ] && {
|
||||||
@@ -48,7 +48,7 @@ setdir() {
|
|||||||
[ -d /data/other_vol ] && $echo " 3 安装到 /data/other_vol 目录,剩余空间:$(dir_avail /data/other_vol -h)(支持软固化功能)"
|
[ -d /data/other_vol ] && $echo " 3 安装到 /data/other_vol 目录,剩余空间:$(dir_avail /data/other_vol -h)(支持软固化功能)"
|
||||||
$echo " 4 安装到自定义目录(不推荐,不明勿用!)"
|
$echo " 4 安装到自定义目录(不推荐,不明勿用!)"
|
||||||
echo " 0 退出安装"
|
echo " 0 退出安装"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
read -p "请输入相应数字 > " num
|
read -p "请输入相应数字 > " num
|
||||||
case "$num" in
|
case "$num" in
|
||||||
1)
|
1)
|
||||||
@@ -74,7 +74,7 @@ setdir() {
|
|||||||
echo -e " 2 基于自启脚本安装(仅支持梅林及部分非koolshare官改固件)"
|
echo -e " 2 基于自启脚本安装(仅支持梅林及部分非koolshare官改固件)"
|
||||||
echo -e " 3 基于U盘+下载大师安装(支持所有固件,限ARM设备,须插入U盘或移动硬盘)"
|
echo -e " 3 基于U盘+下载大师安装(支持所有固件,限ARM设备,须插入U盘或移动硬盘)"
|
||||||
echo -e " 0 退出安装"
|
echo -e " 0 退出安装"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
read -p "请输入相应数字 > " num
|
read -p "请输入相应数字 > " num
|
||||||
case "$num" in
|
case "$num" in
|
||||||
1)
|
1)
|
||||||
@@ -106,35 +106,39 @@ setdir() {
|
|||||||
echo -e " 4 在\033[32m外置存储\033[0m中安装"
|
echo -e " 4 在\033[32m外置存储\033[0m中安装"
|
||||||
echo -e " 5 手动设置安装目录"
|
echo -e " 5 手动设置安装目录"
|
||||||
echo -e " 0 退出安装"
|
echo -e " 0 退出安装"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
read -p "请输入相应数字 > " num
|
read -p "请输入相应数字 > " num
|
||||||
#设置目录
|
#设置目录
|
||||||
if [ -z $num ]; then
|
case "$num" in
|
||||||
echo 安装已取消
|
1)
|
||||||
exit 1
|
|
||||||
elif [ "$num" = "1" ]; then
|
|
||||||
dir=/etc
|
dir=/etc
|
||||||
elif [ "$num" = "2" ]; then
|
;;
|
||||||
|
2)
|
||||||
dir=/usr/share
|
dir=/usr/share
|
||||||
elif [ "$num" = "3" ]; then
|
;;
|
||||||
|
3)
|
||||||
dir=~/.local/share
|
dir=~/.local/share
|
||||||
mkdir -p ~/.config/systemd/user
|
mkdir -p ~/.config/systemd/user
|
||||||
elif [ "$num" = "4" ]; then
|
;;
|
||||||
|
4)
|
||||||
set_usb_dir
|
set_usb_dir
|
||||||
elif [ "$num" = "5" ]; then
|
;;
|
||||||
echo -----------------------------------------------
|
5)
|
||||||
echo '可用路径 剩余空间:'
|
echo "-----------------------------------------------"
|
||||||
|
echo "可用路径 剩余空间:"
|
||||||
df -h | awk '{print $6,$4}' | sed 1d
|
df -h | awk '{print $6,$4}' | sed 1d
|
||||||
echo '路径是必须带 / 的格式,注意写入虚拟内存(/tmp,/opt,/sys...)的文件会在重启后消失!!!'
|
echo "路径是必须带 / 的格式,注意写入虚拟内存(/tmp,/opt,/sys...)的文件会在重启后消失!!!"
|
||||||
read -p "请输入自定义路径 > " dir
|
read -p "请输入自定义路径 > " dir
|
||||||
if [ -z "$dir" ]; then
|
if [ -z "$dir" ]; then
|
||||||
echo -e "\033[31m路径错误!请重新设置!\033[0m"
|
echo -e "\033[31m路径错误!请重新设置!\033[0m"
|
||||||
setdir
|
setdir
|
||||||
fi
|
fi
|
||||||
else
|
;;
|
||||||
echo 安装已取消!!!
|
*)
|
||||||
|
echo "安装已取消"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -w $dir ]; then
|
if [ ! -w $dir ]; then
|
||||||
@@ -149,18 +153,18 @@ setconfig() { #脚本配置工具
|
|||||||
#参数1代表变量名,参数2代表变量值,参数3即文件路径
|
#参数1代表变量名,参数2代表变量值,参数3即文件路径
|
||||||
[ -z "$3" ] && configpath="$CRASHDIR"/configs/ShellCrash.cfg || configpath="${3}"
|
[ -z "$3" ] && configpath="$CRASHDIR"/configs/ShellCrash.cfg || configpath="${3}"
|
||||||
if grep -q "^${1}=" "$configpath"; then
|
if grep -q "^${1}=" "$configpath"; then
|
||||||
sed -i "s#${1}=.*#${1}=${2}#g" "$configpath"
|
sed -i "s#^${1}=.*#${1}=${2}#g" "$configpath"
|
||||||
else
|
else
|
||||||
printf '%s=%s\n' "$1" "$2" >>"$configpath"
|
printf '%s=%s\n' "$1" "$2" >>"$configpath"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
#特殊固件识别及标记
|
#特殊固件识别及标记
|
||||||
[ -f "/etc/storage/started_script.sh" ] && {
|
[ -f "/etc/storage/started_script.sh" ] && { #老毛子固件
|
||||||
systype=Padavan #老毛子固件
|
systype=Padavan
|
||||||
initdir='/etc/storage/started_script.sh'
|
initdir='/etc/storage/started_script.sh'
|
||||||
}
|
}
|
||||||
[ -d "/jffs" ] && {
|
[ -d "/jffs" ] && { #华硕固件
|
||||||
systype=asusrouter #华硕固件
|
systype=asusrouter
|
||||||
[ -f "/jffs/.asusrouter" ] && initdir='/jffs/.asusrouter'
|
[ -f "/jffs/.asusrouter" ] && initdir='/jffs/.asusrouter'
|
||||||
[ -d "/jffs/scripts" ] && initdir='/jffs/scripts/nat-start'
|
[ -d "/jffs/scripts" ] && initdir='/jffs/scripts/nat-start'
|
||||||
#华硕启用jffs
|
#华硕启用jffs
|
||||||
@@ -169,10 +173,12 @@ setconfig() { #脚本配置工具
|
|||||||
}
|
}
|
||||||
[ -f "/data/etc/crontabs/root" ] && systype=mi_snapshot #小米设备
|
[ -f "/data/etc/crontabs/root" ] && systype=mi_snapshot #小米设备
|
||||||
[ -w "/var/mnt/cfg/firewall" ] && systype=ng_snapshot #NETGEAR设备
|
[ -w "/var/mnt/cfg/firewall" ] && systype=ng_snapshot #NETGEAR设备
|
||||||
|
#容器内环境
|
||||||
|
grep -qE '/(docker|lxc|kubepods|crio|containerd)/' /proc/1/cgroup || [ -f /run/.containerenv ] || [ -f /.dockerenv ] && systype='container'
|
||||||
#检查环境变量
|
#检查环境变量
|
||||||
[ -z "$CRASHDIR" -a -n "$clashdir" ] && CRASHDIR=$clashdir
|
[ "$systype" = 'container' ] && CRASHDIR='/etc/ShellCrash'
|
||||||
[ -z "$CRASHDIR" -a -d /tmp/SC_tmp ] && setdir
|
[ -z "$CRASHDIR" ] && [ -n "$clashdir" ] && CRASHDIR="$clashdir"
|
||||||
|
[ -z "$CRASHDIR" ] && [ -d /tmp/SC_tmp ] && setdir
|
||||||
#移动文件
|
#移动文件
|
||||||
mkdir -p ${CRASHDIR}
|
mkdir -p ${CRASHDIR}
|
||||||
mv -f /tmp/SC_tmp/* ${CRASHDIR} 2>/dev/null
|
mv -f /tmp/SC_tmp/* ${CRASHDIR} 2>/dev/null
|
||||||
@@ -250,8 +256,7 @@ grep -q 'firewall_mod' "$CRASHDIR/configs/ShellClash.cfg" 2>/dev/null || {
|
|||||||
[ -w /etc/profile ] && profile=/etc/profile
|
[ -w /etc/profile ] && profile=/etc/profile
|
||||||
set_profile() {
|
set_profile() {
|
||||||
[ -z "$my_alias" ] && my_alias=crash
|
[ -z "$my_alias" ] && my_alias=crash
|
||||||
sed -i "/alias crash=*/"d "$1"
|
sed -i "/ShellCrash\/menu.sh/"d "$profile"
|
||||||
sed -i "/alias ${my_alias}=*/"d "$1"
|
|
||||||
echo "alias ${my_alias}=\"$shtype $CRASHDIR/menu.sh\"" >>"$1" #设置快捷命令环境变量
|
echo "alias ${my_alias}=\"$shtype $CRASHDIR/menu.sh\"" >>"$1" #设置快捷命令环境变量
|
||||||
sed -i '/export CRASHDIR=*/'d "$1"
|
sed -i '/export CRASHDIR=*/'d "$1"
|
||||||
echo "export CRASHDIR=\"$CRASHDIR\"" >>"$1" #设置路径环境变量
|
echo "export CRASHDIR=\"$CRASHDIR\"" >>"$1" #设置路径环境变量
|
||||||
@@ -286,7 +291,6 @@ if [ "$systype" = "mi_snapshot" -o "$systype" = "ng_snapshot" ]; then
|
|||||||
uci set firewall.ShellCrash.path="$CRASHDIR/misnap_init.sh"
|
uci set firewall.ShellCrash.path="$CRASHDIR/misnap_init.sh"
|
||||||
uci set firewall.ShellCrash.enabled='1'
|
uci set firewall.ShellCrash.enabled='1'
|
||||||
uci commit firewall
|
uci commit firewall
|
||||||
setconfig systype $systype
|
|
||||||
else
|
else
|
||||||
rm -rf ${CRASHDIR}/misnap_init.sh
|
rm -rf ${CRASHDIR}/misnap_init.sh
|
||||||
fi
|
fi
|
||||||
@@ -299,6 +303,25 @@ fi
|
|||||||
#华硕下载大师启动额外设置
|
#华硕下载大师启动额外设置
|
||||||
[ -f "$dir/asusware.arm/etc/init.d/S50downloadmaster" ] && [ -z "$(grep 'ShellCrash' $dir/asusware.arm/etc/init.d/S50downloadmaster)" ] &&
|
[ -f "$dir/asusware.arm/etc/init.d/S50downloadmaster" ] && [ -z "$(grep 'ShellCrash' $dir/asusware.arm/etc/init.d/S50downloadmaster)" ] &&
|
||||||
sed -i "/^PATH=/a\\$CRASHDIR/start.sh init & #ShellCrash初始化脚本" "$dir/asusware.arm/etc/init.d/S50downloadmaster"
|
sed -i "/^PATH=/a\\$CRASHDIR/start.sh init & #ShellCrash初始化脚本" "$dir/asusware.arm/etc/init.d/S50downloadmaster"
|
||||||
|
#容器环境额外设置
|
||||||
|
[ "$systype" = 'container' ] && {
|
||||||
|
setconfig userguide '1'
|
||||||
|
setconfig crashcore 'meta'
|
||||||
|
setconfig dns_mod 'mix'
|
||||||
|
setconfig firewall_area '1'
|
||||||
|
setconfig firewall_mod 'nftables'
|
||||||
|
setconfig release_type 'master'
|
||||||
|
setconfig start_old '未开启'
|
||||||
|
echo "$CRASHDIR/menu.sh" >> /etc/profile
|
||||||
|
cat > /usr/bin/crash <<'EOF'
|
||||||
|
#!/bin/sh
|
||||||
|
CRASHDIR=${CRASHDIR:-/etc/ShellCrash}
|
||||||
|
export CRASHDIR
|
||||||
|
exec "$CRASHDIR/menu.sh" "$@"
|
||||||
|
EOF
|
||||||
|
chmod 755 /usr/bin/crash
|
||||||
|
}
|
||||||
|
setconfig systype $systype
|
||||||
#删除临时文件
|
#删除临时文件
|
||||||
rm -rf /tmp/*rash*gz
|
rm -rf /tmp/*rash*gz
|
||||||
rm -rf /tmp/SC_tmp
|
rm -rf /tmp/SC_tmp
|
||||||
@@ -356,7 +379,4 @@ sed -i "s/redir_mod=Nft混合/redir_mod=Tproxy模式/g" $configpath
|
|||||||
sed -i "s/redir_mod=Tproxy混合/redir_mod=Tproxy模式/g" $configpath
|
sed -i "s/redir_mod=Tproxy混合/redir_mod=Tproxy模式/g" $configpath
|
||||||
sed -i "s/redir_mod=纯净模式/firewall_area=4/g" $configpath
|
sed -i "s/redir_mod=纯净模式/firewall_area=4/g" $configpath
|
||||||
|
|
||||||
#清理路由器空间
|
|
||||||
[ -d /data/etc_bak ] && rm -rf /data/etc_bak
|
|
||||||
|
|
||||||
echo -e "\033[32m脚本初始化完成,请输入\033[30;47m crash \033[0;33m命令开始使用!\033[0m"
|
echo -e "\033[32m脚本初始化完成,请输入\033[30;47m crash \033[0;33m命令开始使用!\033[0m"
|
||||||
|
|||||||
456
scripts/menu.sh
456
scripts/menu.sh
File diff suppressed because it is too large
Load Diff
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
CRASHDIR="$(uci get firewall.ShellCrash.path | sed 's/\/misnap_init.sh//')"
|
CRASHDIR="$(uci get firewall.ShellCrash.path | sed 's/\/misnap_init.sh//')"
|
||||||
profile=/etc/profile
|
profile=/etc/profile
|
||||||
|
. "$CRASHDIR"/configs/ShellCrash.cfg
|
||||||
|
|
||||||
autoSSH(){
|
autoSSH(){
|
||||||
#自动开启SSH
|
#自动开启SSH
|
||||||
@@ -55,12 +56,11 @@ init(){
|
|||||||
done
|
done
|
||||||
sleep 20
|
sleep 20
|
||||||
#初始化环境变量
|
#初始化环境变量
|
||||||
sed -i "/alias crash/d" $profile
|
[ -z "$my_alias" ] && my_alias=crash
|
||||||
sed -i "/alias clash/d" $profile
|
sed -i "/ShellCrash\/menu.sh/"d "$profile"
|
||||||
sed -i "/export CRASHDIR/d" $profile
|
echo "alias ${my_alias}=\"sh $CRASHDIR/menu.sh\"" >>"$profile"
|
||||||
echo "alias crash=\"sh $CRASHDIR/menu.sh\"" >>$profile
|
sed -i "/export CRASHDIR/d" "$profile"
|
||||||
echo "alias clash=\"sh $CRASHDIR/menu.sh\"" >>$profile
|
echo "export CRASHDIR=\"$CRASHDIR\"" >>"$profile"
|
||||||
echo "export CRASHDIR=\"$CRASHDIR\"" >>$profile
|
|
||||||
autoSSH #软固化功能
|
autoSSH #软固化功能
|
||||||
auto_clean #自动清理
|
auto_clean #自动清理
|
||||||
#设置init.d服务
|
#设置init.d服务
|
||||||
|
|||||||
@@ -68,7 +68,6 @@ stop() {
|
|||||||
|
|
||||||
# 清理 firewall、proxy
|
# 清理 firewall、proxy
|
||||||
"$CRASHDIR/start.sh" stop_firewall
|
"$CRASHDIR/start.sh" stop_firewall
|
||||||
"$CRASHDIR/start.sh" unset_proxy
|
|
||||||
|
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,5 +35,4 @@ start_service() {
|
|||||||
stop_service() {
|
stop_service() {
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
$CRASHDIR/start.sh stop_firewall
|
$CRASHDIR/start.sh stop_firewall
|
||||||
$CRASHDIR/start.sh unset_proxy
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ StandardOutput=null
|
|||||||
ExecStartPre=/etc/ShellCrash/start.sh bfstart
|
ExecStartPre=/etc/ShellCrash/start.sh bfstart
|
||||||
ExecStart=/etc/ShellCrash/CrashCore run -D /etc/ShellCrash -C /tmp/ShellCrash/jsons >/dev/null
|
ExecStart=/etc/ShellCrash/CrashCore run -D /etc/ShellCrash -C /tmp/ShellCrash/jsons >/dev/null
|
||||||
ExecStartPost=/etc/ShellCrash/start.sh afstart
|
ExecStartPost=/etc/ShellCrash/start.sh afstart
|
||||||
ExecStopPost=/etc/ShellCrash/start.sh stop_firewall ; /etc/ShellCrash/start.sh unset_proxy
|
ExecStopPost=/etc/ShellCrash/start.sh stop_firewall
|
||||||
Restart=on-abnormal
|
Restart=on-abnormal
|
||||||
RestartSec=10s
|
RestartSec=10s
|
||||||
LimitNOFILE=infinity
|
LimitNOFILE=infinity
|
||||||
|
|||||||
285
scripts/start.sh
285
scripts/start.sh
@@ -16,8 +16,8 @@ getconfig() { #读取配置及全局变量
|
|||||||
#加载配置文件
|
#加载配置文件
|
||||||
. "$CRASHDIR"/configs/ShellCrash.cfg >/dev/null
|
. "$CRASHDIR"/configs/ShellCrash.cfg >/dev/null
|
||||||
#缺省值
|
#缺省值
|
||||||
[ -z "$redir_mod" ] && [ "$USER" = "root" -o "$USER" = "admin" ] && redir_mod=Redir模式
|
[ -z "$redir_mod" ] && [ "$USER" = "root" -o "$USER" = "admin" ] && redir_mod='Redir模式'
|
||||||
[ -z "$redir_mod" ] && redir_mod=纯净模式
|
[ -z "$redir_mod" ] && firewall_area='4'
|
||||||
[ -z "$skip_cert" ] && skip_cert=已开启
|
[ -z "$skip_cert" ] && skip_cert=已开启
|
||||||
[ -z "$dns_mod" ] && dns_mod=fake-ip
|
[ -z "$dns_mod" ] && dns_mod=fake-ip
|
||||||
[ -z "$ipv6_redir" ] && ipv6_redir=未开启
|
[ -z "$ipv6_redir" ] && ipv6_redir=未开启
|
||||||
@@ -51,7 +51,7 @@ getconfig() { #读取配置及全局变量
|
|||||||
ckcmd iptables && iptables -h | grep -q '\-w' && iptable='iptables -w' || iptable=iptables
|
ckcmd iptables && iptables -h | grep -q '\-w' && iptable='iptables -w' || iptable=iptables
|
||||||
ckcmd ip6tables && ip6tables -h | grep -q '\-w' && ip6table='ip6tables -w' || ip6table=ip6tables
|
ckcmd ip6tables && ip6tables -h | grep -q '\-w' && ip6table='ip6tables -w' || ip6table=ip6tables
|
||||||
#默认dns
|
#默认dns
|
||||||
[ -z "$dns_nameserver" ] && dns_nameserver='180.184.1.1, 1.2.4.8'
|
[ -z "$dns_nameserver" ] && dns_nameserver='223.5.5.5, 1.2.4.8'
|
||||||
[ -z "$dns_fallback" ] && dns_fallback="1.1.1.1, 8.8.8.8"
|
[ -z "$dns_fallback" ] && dns_fallback="1.1.1.1, 8.8.8.8"
|
||||||
[ -z "$dns_resolver" ] && dns_resolver="223.5.5.5, 2400:3200::1"
|
[ -z "$dns_resolver" ] && dns_resolver="223.5.5.5, 2400:3200::1"
|
||||||
#自动生成ua
|
#自动生成ua
|
||||||
@@ -70,7 +70,7 @@ setconfig() { #脚本配置工具
|
|||||||
#参数1代表变量名,参数2代表变量值,参数3即文件路径
|
#参数1代表变量名,参数2代表变量值,参数3即文件路径
|
||||||
[ -z "$3" ] && configpath="$CRASHDIR"/configs/ShellCrash.cfg || configpath="${3}"
|
[ -z "$3" ] && configpath="$CRASHDIR"/configs/ShellCrash.cfg || configpath="${3}"
|
||||||
if grep -q "^${1}=" "$configpath"; then
|
if grep -q "^${1}=" "$configpath"; then
|
||||||
sed -i "s#${1}=.*#${1}=${2}#g" "$configpath"
|
sed -i "s#^${1}=.*#${1}=${2}#g" "$configpath"
|
||||||
else
|
else
|
||||||
printf '%s=%s\n' "$1" "$2" >>"$configpath"
|
printf '%s=%s\n' "$1" "$2" >>"$configpath"
|
||||||
fi
|
fi
|
||||||
@@ -182,7 +182,7 @@ croncmd() { #定时任务工具
|
|||||||
}
|
}
|
||||||
cronset() { #定时任务设置
|
cronset() { #定时任务设置
|
||||||
# 参数1代表要移除的关键字,参数2代表要添加的任务语句
|
# 参数1代表要移除的关键字,参数2代表要添加的任务语句
|
||||||
tmpcron="$TMPDIR"/cron_$USER
|
tmpcron="$TMPDIR"/cron_tmp
|
||||||
croncmd -l >"$tmpcron" 2>/dev/null
|
croncmd -l >"$tmpcron" 2>/dev/null
|
||||||
sed -i "/$1/d" "$tmpcron"
|
sed -i "/$1/d" "$tmpcron"
|
||||||
sed -i '/^$/d' "$tmpcron"
|
sed -i '/^$/d' "$tmpcron"
|
||||||
@@ -250,33 +250,87 @@ getlanip() { #获取局域网host地址
|
|||||||
[ -z "$reserve_ipv4" ] && reserve_ipv4="0.0.0.0/8 10.0.0.0/8 127.0.0.0/8 100.64.0.0/10 169.254.0.0/16 172.16.0.0/12 192.168.0.0/16 224.0.0.0/4 240.0.0.0/4"
|
[ -z "$reserve_ipv4" ] && reserve_ipv4="0.0.0.0/8 10.0.0.0/8 127.0.0.0/8 100.64.0.0/10 169.254.0.0/16 172.16.0.0/12 192.168.0.0/16 224.0.0.0/4 240.0.0.0/4"
|
||||||
[ -z "$reserve_ipv6" ] && reserve_ipv6="::/128 ::1/128 ::ffff:0:0/96 64:ff9b::/96 100::/64 2001::/32 2001:20::/28 2001:db8::/32 2002::/16 fe80::/10 ff00::/8"
|
[ -z "$reserve_ipv6" ] && reserve_ipv6="::/128 ::1/128 ::ffff:0:0/96 64:ff9b::/96 100::/64 2001::/32 2001:20::/28 2001:db8::/32 2002::/16 fe80::/10 ff00::/8"
|
||||||
}
|
}
|
||||||
|
parse_singbox_dns() { #singbox的dns分割工具
|
||||||
|
first_dns=$(echo "$1" | cut -d',' -f1 | cut -d' ' -f1)
|
||||||
|
type=""
|
||||||
|
server=""
|
||||||
|
port=""
|
||||||
|
case "$first_dns" in
|
||||||
|
*://*)
|
||||||
|
type="${first_dns%%://*}"
|
||||||
|
tmp="${first_dns#*://}"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
type="udp"
|
||||||
|
tmp="$first_dns"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
case "$tmp" in
|
||||||
|
\[*\]*)
|
||||||
|
server="${tmp%%]*}"
|
||||||
|
server="${server#[}"
|
||||||
|
port="${tmp#*\]}"
|
||||||
|
port="${port#:}"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
server="${tmp%%[:/]*}"
|
||||||
|
port="${tmp#*:}"
|
||||||
|
[ "$port" = "$tmp" ] && port=""
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
if [ -z "$port" ]; then
|
||||||
|
case "$type" in
|
||||||
|
udp|tcp) port=53 ;;
|
||||||
|
doh|https) port=443 ;;
|
||||||
|
dot|tls) port=853 ;;
|
||||||
|
*) port=53 ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
# 输出
|
||||||
|
echo '"type": "'"$type"'", "server": "'"$server"'", "server_port": '"$port"','
|
||||||
|
}
|
||||||
|
urlencode() {
|
||||||
|
LC_ALL=C
|
||||||
|
printf '%s' "$1" \
|
||||||
|
| hexdump -v -e '/1 "%02X\n"' \
|
||||||
|
| while read -r hex; do
|
||||||
|
case "$hex" in
|
||||||
|
2D|2E|5F|7E|3[0-9]|4[1-9A-F]|5[0-9A]|6[1-9A-F]|7[0-9A-E])
|
||||||
|
printf "\\$(printf '%03o' "0x$hex")"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
printf "%%%s" "$hex"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
}
|
||||||
#配置文件相关
|
#配置文件相关
|
||||||
check_clash_config() { #检查clash配置文件
|
check_clash_config() { #检查clash配置文件
|
||||||
#检测节点或providers
|
#检测节点或providers
|
||||||
sed -n "/^proxies:/,/^[a-z]/ { /^[a-z]/d; p; }" "$core_config_new" >"$TMPDIR"/proxies.yaml
|
sed -n "/^proxies:/,/^[a-z]/ { /^[a-z]/d; p; }" "$core_config_new" >"$TMPDIR"/proxies.yaml
|
||||||
if ! grep -Eq 'server:|server":|server'\'':' "$TMPDIR"/proxies.yaml && ! grep -q 'proxy-providers:' "$core_config_new"; then
|
if ! grep -Eq 'server:|server":|server'\'':' "$TMPDIR"/proxies.yaml && ! grep -q 'proxy-providers:' "$core_config_new"; then
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
logger "获取到了配置文件【$core_config_new】,但似乎并不包含正确的节点信息!" 31
|
logger "获取到了配置文件【$core_config_new】,但似乎并不包含正确的节点信息!" 31
|
||||||
cat "$TMPDIR"/proxies.yaml
|
cat "$TMPDIR"/proxies.yaml
|
||||||
sleep 1
|
sleep 1
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo "请尝试使用6-2或者6-3的方式生成配置文件!"
|
echo "请尝试使用6-2或者6-3的方式生成配置文件!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
rm -rf "$TMPDIR"/proxies.yaml
|
rm -rf "$TMPDIR"/proxies.yaml
|
||||||
#检测旧格式
|
#检测旧格式
|
||||||
if cat "$core_config_new" | grep 'Proxy Group:' >/dev/null; then
|
if cat "$core_config_new" | grep 'Proxy Group:' >/dev/null; then
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
logger "已经停止对旧格式配置文件的支持!!!" 31
|
logger "已经停止对旧格式配置文件的支持!!!" 31
|
||||||
echo -e "请使用新格式或者使用【在线生成配置文件】功能!"
|
echo -e "请使用新格式或者使用【在线生成配置文件】功能!"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
#检测不支持的加密协议
|
#检测不支持的加密协议
|
||||||
if cat "$core_config_new" | grep 'cipher: chacha20,' >/dev/null; then
|
if cat "$core_config_new" | grep 'cipher: chacha20,' >/dev/null; then
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
logger "已停止支持chacha20加密,请更换更安全的节点加密协议!" 31
|
logger "已停止支持chacha20加密,请更换更安全的节点加密协议!" 31
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
#检测并去除无效策略组
|
#检测并去除无效策略组
|
||||||
@@ -292,7 +346,7 @@ check_clash_config() { #检查clash配置文件
|
|||||||
check_singbox_config() { #检查singbox配置文件
|
check_singbox_config() { #检查singbox配置文件
|
||||||
#检测节点或providers
|
#检测节点或providers
|
||||||
if ! grep -qE '"(socks|http|shadowsocks(r)?|vmess|trojan|wireguard|hysteria(2)?|vless|shadowtls|tuic|ssh|tor|providers|anytls|soduku)"' "$core_config_new"; then
|
if ! grep -qE '"(socks|http|shadowsocks(r)?|vmess|trojan|wireguard|hysteria(2)?|vless|shadowtls|tuic|ssh|tor|providers|anytls|soduku)"' "$core_config_new"; then
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
logger "获取到了配置文件【$core_config_new】,但似乎并不包含正确的节点信息!" 31
|
logger "获取到了配置文件【$core_config_new】,但似乎并不包含正确的节点信息!" 31
|
||||||
echo "请尝试使用6-2或者6-3的方式生成配置文件!"
|
echo "请尝试使用6-2或者6-3的方式生成配置文件!"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -336,12 +390,17 @@ get_core_config() { #下载内核配置文件
|
|||||||
#如果传来的是Url链接则合成Https链接,否则直接使用Https链接
|
#如果传来的是Url链接则合成Https链接,否则直接使用Https链接
|
||||||
if [ -z "$Https" ]; then
|
if [ -z "$Https" ]; then
|
||||||
#Urlencord转码处理保留字符
|
#Urlencord转码处理保留字符
|
||||||
Url=$(echo $Url | sed 's/;/\%3B/g; s|/|\%2F|g; s/?/\%3F/g; s/:/\%3A/g; s/@/\%40/g; s/=/\%3D/g; s/&/\%26/g')
|
if ckcmd hexdump;then
|
||||||
Https="${Server}/sub?target=${target}&${Server_ua}=${user_agent}&insert=true&new_name=true&scv=true&udp=true&exclude=${exclude}&include=${include}&url=${Url}&config=${Config}"
|
Url=$(echo $Url | sed 's/%26/\&/g') #处理分隔符
|
||||||
|
urlencodeUrl="exclude=$(urlencode "$exclude")&include=$(urlencode "$include")&url=$(urlencode "$Url")&config=$(urlencode "$Config")"
|
||||||
|
else
|
||||||
|
urlencodeUrl="exclude=$exclude&include=$include&url=$Url&config=$Config"
|
||||||
|
fi
|
||||||
|
Https="${Server}/sub?target=${target}&${Server_ua}=${user_agent}&insert=true&new_name=true&scv=true&udp=true&${urlencodeUrl}"
|
||||||
url_type=true
|
url_type=true
|
||||||
fi
|
fi
|
||||||
#输出
|
#输出
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
logger 正在连接服务器获取【${target}】配置文件…………
|
logger 正在连接服务器获取【${target}】配置文件…………
|
||||||
echo -e "链接地址为:\033[4;32m$Https\033[0m"
|
echo -e "链接地址为:\033[4;32m$Https\033[0m"
|
||||||
echo 可以手动复制该链接到浏览器打开并查看数据是否正常!
|
echo 可以手动复制该链接到浏览器打开并查看数据是否正常!
|
||||||
@@ -349,15 +408,15 @@ get_core_config() { #下载内核配置文件
|
|||||||
core_config_new="$TMPDIR"/${target}_config.${format}
|
core_config_new="$TMPDIR"/${target}_config.${format}
|
||||||
rm -rf ${core_config_new}
|
rm -rf ${core_config_new}
|
||||||
$0 webget "$core_config_new" "$Https" echoon rediron skipceron "$user_agent"
|
$0 webget "$core_config_new" "$Https" echoon rediron skipceron "$user_agent"
|
||||||
if [ "$?" = "1" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
if [ -z "$url_type" ]; then
|
if [ -z "$url_type" ]; then
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
logger "配置文件获取失败!" 31
|
logger "配置文件获取失败!" 31
|
||||||
echo -e "\033[31m请尝试使用【在线生成配置文件】功能!\033[0m"
|
echo -e "\033[31m请尝试使用【在线生成配置文件】功能!\033[0m"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
if [ "$retry" -ge 3 ]; then
|
if [ -n "$retry" ] && [ "$retry" -ge 3 ]; then
|
||||||
logger "无法获取配置文件,请检查链接格式以及网络连接状态!" 31
|
logger "无法获取配置文件,请检查链接格式以及网络连接状态!" 31
|
||||||
echo -e "\033[32m也可用浏览器下载以上链接后,使用WinSCP手动上传到/tmp目录后执行crash命令本地导入!\033[0m"
|
echo -e "\033[32m也可用浏览器下载以上链接后,使用WinSCP手动上传到/tmp目录后执行crash命令本地导入!\033[0m"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -425,7 +484,7 @@ dns:
|
|||||||
ipv6: $dns_v6
|
ipv6: $dns_v6
|
||||||
default-nameserver: [ $dns_resolver ]
|
default-nameserver: [ $dns_resolver ]
|
||||||
enhanced-mode: fake-ip
|
enhanced-mode: fake-ip
|
||||||
fake-ip-range: 28.0.0.1/8
|
fake-ip-range: 28.0.0.0/8
|
||||||
fake-ip-range6: fc00::/16
|
fake-ip-range6: fc00::/16
|
||||||
fake-ip-filter:
|
fake-ip-filter:
|
||||||
EOF
|
EOF
|
||||||
@@ -438,7 +497,7 @@ EOF
|
|||||||
[ "$dns_mod" = "mix" ] && echo ' - "rule-set:cn"' >>"$TMPDIR"/dns.yaml
|
[ "$dns_mod" = "mix" ] && echo ' - "rule-set:cn"' >>"$TMPDIR"/dns.yaml
|
||||||
#mix模式和route模式插入分流设置
|
#mix模式和route模式插入分流设置
|
||||||
if [ "$dns_mod" = "mix" ] || [ "$dns_mod" = "route" ]; then
|
if [ "$dns_mod" = "mix" ] || [ "$dns_mod" = "route" ]; then
|
||||||
[ "$dns_protect" = "OFF" ] && dns_final="$dns_fallback" || dns_final="$dns_nameserver"
|
[ "$dns_protect" != "OFF" ] && dns_final="$dns_fallback" || dns_final="$dns_nameserver"
|
||||||
cat >>"$TMPDIR"/dns.yaml <<EOF
|
cat >>"$TMPDIR"/dns.yaml <<EOF
|
||||||
respect-rules: true
|
respect-rules: true
|
||||||
nameserver-policy: {'rule-set:cn': [ $dns_nameserver ]}
|
nameserver-policy: {'rule-set:cn': [ $dns_nameserver ]}
|
||||||
@@ -500,7 +559,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#分割配置文件
|
#分割配置文件
|
||||||
yaml_char='proxies proxy-groups proxy-providers rules rule-providers'
|
yaml_char='proxies proxy-groups proxy-providers rules rule-providers sub-rules listeners'
|
||||||
for char in $yaml_char; do
|
for char in $yaml_char; do
|
||||||
sed -n "/^$char:/,/^[a-z]/ { /^[a-z]/d; p; }" $core_config >"$TMPDIR"/${char}.yaml
|
sed -n "/^$char:/,/^[a-z]/ { /^[a-z]/d; p; }" $core_config >"$TMPDIR"/${char}.yaml
|
||||||
done
|
done
|
||||||
@@ -512,10 +571,10 @@ EOF
|
|||||||
sed -i "/#自定义策略组/d" "$TMPDIR"/proxy-groups.yaml
|
sed -i "/#自定义策略组/d" "$TMPDIR"/proxy-groups.yaml
|
||||||
[ -n "$(grep -Ev '^#' "$CRASHDIR"/yamls/proxy-groups.yaml 2>/dev/null)" ] && {
|
[ -n "$(grep -Ev '^#' "$CRASHDIR"/yamls/proxy-groups.yaml 2>/dev/null)" ] && {
|
||||||
#获取空格数
|
#获取空格数
|
||||||
space_name=$(grep -aE '^ *- name: ' "$TMPDIR"/proxy-groups.yaml | head -n 1 | grep -oE '^ *')
|
space_name=$(grep -aE '^ *- \{?name: ' "$TMPDIR"/proxy-groups.yaml | head -n 1 | grep -oE '^ *')
|
||||||
space_proxy=$(grep -A 1 'proxies:$' "$TMPDIR"/proxy-groups.yaml | grep -aE '^ *- ' | head -n 1 | grep -oE '^ *')
|
space_proxy="$space_name "
|
||||||
#合并自定义策略组到proxy-groups.yaml
|
#合并自定义策略组到proxy-groups.yaml
|
||||||
cat "$CRASHDIR"/yamls/proxy-groups.yaml | sed "/^#/d" | sed "s/#.*//g" | sed '1i\ #自定义策略组开始' | sed '$a\ #自定义策略组结束' | sed "s/^ */${space_name} /g" | sed "s/^ *- /${space_proxy}- /g" | sed "s/^ *- name: /${space_name}- name: /g" >"$TMPDIR"/proxy-groups_add.yaml
|
cat "$CRASHDIR"/yamls/proxy-groups.yaml | sed "/^#/d" | sed "s/#.*//g" | sed '1i\ #自定义策略组开始' | sed '$a\ #自定义策略组结束' | sed "s/^ */${space_name} /g" | sed "s/^ *- /${space_proxy}- /g" | sed "s/^ *- name: /${space_name}- name: /g" | sed "s/^ *- {name: /${space_name}- {name: /g" >"$TMPDIR"/proxy-groups_add.yaml
|
||||||
cat "$TMPDIR"/proxy-groups.yaml >>"$TMPDIR"/proxy-groups_add.yaml
|
cat "$TMPDIR"/proxy-groups.yaml >>"$TMPDIR"/proxy-groups_add.yaml
|
||||||
mv -f "$TMPDIR"/proxy-groups_add.yaml "$TMPDIR"/proxy-groups.yaml
|
mv -f "$TMPDIR"/proxy-groups_add.yaml "$TMPDIR"/proxy-groups.yaml
|
||||||
oldIFS="$IFS"
|
oldIFS="$IFS"
|
||||||
@@ -673,18 +732,6 @@ EOF
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
#生成dns.json
|
#生成dns.json
|
||||||
dns_direct_1st=$(echo $dns_nameserver | awk -F ',' '{print $1}')
|
|
||||||
dns_direct=$(echo $dns_direct_1st | sed 's|.*://||' | sed 's|/.*||')
|
|
||||||
dns_direct_type=$(echo "$dns_direct_1st" | awk -F '://' '{print $1}')
|
|
||||||
[ "$dns_direct_type" = "$dns_direct" ] && dns_direct_type="udp"
|
|
||||||
dns_proxy_1st=$(echo $dns_fallback | awk -F ',' '{print $1}')
|
|
||||||
dns_proxy=$(echo $dns_proxy_1st | sed 's|.*://||' | sed 's|/.*||')
|
|
||||||
dns_proxy_type=$(echo "$dns_proxy_1st" | awk -F '://' '{print $1}')
|
|
||||||
[ "$dns_proxy_type" = "$dns_proxy" ] && dns_proxy_type="udp"
|
|
||||||
dns_resolver_1st=$(echo $dns_resolver | awk -F ',' '{print $1}')
|
|
||||||
dns_resolverip=$(echo $dns_resolver_1st | sed 's|.*://||' | sed 's|/.*||')
|
|
||||||
dns_resolver_type=$(echo "$dns_resolver_1st" | awk -F '://' '{print $1}')
|
|
||||||
[ "$dns_resolver_type" = "$dns_resolverip" ] && dns_resolver_type="udp"
|
|
||||||
[ "$ipv6_dns" = "已开启" ] && strategy='prefer_ipv4' || strategy='ipv4_only'
|
[ "$ipv6_dns" = "已开启" ] && strategy='prefer_ipv4' || strategy='ipv4_only'
|
||||||
#获取detour出口
|
#获取detour出口
|
||||||
auto_detour=$(grep -E '"type": "urltest"' -A 1 "$TMPDIR"/jsons/outbounds.json | grep '"tag":' | head -n 1 | sed 's/^[[:space:]]*"tag": //;s/,$//')
|
auto_detour=$(grep -E '"type": "urltest"' -A 1 "$TMPDIR"/jsons/outbounds.json | grep '"tag":' | head -n 1 | sed 's/^[[:space:]]*"tag": //;s/,$//')
|
||||||
@@ -714,8 +761,8 @@ EOF
|
|||||||
#防泄露设置
|
#防泄露设置
|
||||||
[ "$dns_protect" = "OFF" ] && sed -i 's/"server": "dns_proxy"/"server": "dns_direct"/g' "$TMPDIR"/jsons/route.json
|
[ "$dns_protect" = "OFF" ] && sed -i 's/"server": "dns_proxy"/"server": "dns_direct"/g' "$TMPDIR"/jsons/route.json
|
||||||
#生成add_rule_set.json
|
#生成add_rule_set.json
|
||||||
[ "$dns_mod" = "mix" ] || [ "$dns_mod" = "route" ] && \
|
[ "$dns_mod" = "mix" ] || [ "$dns_mod" = "route" ] &&
|
||||||
[ -z "$(cat "$CRASHDIR"/jsons/*.json | grep -Ei '"tag" *: *"cn"')" ] && \
|
[ -z "$(cat "$CRASHDIR"/jsons/*.json | grep -Ei '"tag" *: *"cn"')" ] &&
|
||||||
cat >"$TMPDIR"/jsons/add_rule_set.json <<EOF
|
cat >"$TMPDIR"/jsons/add_rule_set.json <<EOF
|
||||||
{
|
{
|
||||||
"route": {
|
"route": {
|
||||||
@@ -735,29 +782,26 @@ EOF
|
|||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
"tag": "dns_proxy",
|
"tag": "dns_proxy",
|
||||||
"type": "$dns_proxy_type",
|
$(parse_singbox_dns "$dns_fallback")
|
||||||
"server": "$dns_proxy",
|
|
||||||
"routing_mark": $routing_mark,
|
"routing_mark": $routing_mark,
|
||||||
"detour": $auto_detour,
|
"detour": $auto_detour,
|
||||||
"domain_resolver": "dns_resolver"
|
"domain_resolver": "dns_resolver"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tag": "dns_direct",
|
"tag": "dns_direct",
|
||||||
"type": "$dns_direct_type",
|
$(parse_singbox_dns "$dns_nameserver")
|
||||||
"server": "$dns_direct",
|
|
||||||
"routing_mark": $routing_mark,
|
"routing_mark": $routing_mark,
|
||||||
"domain_resolver": "dns_resolver"
|
"domain_resolver": "dns_resolver"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tag": "dns_fakeip",
|
"tag": "dns_fakeip",
|
||||||
"type": "fakeip",
|
"type": "fakeip",
|
||||||
"inet4_range": "28.0.0.1/8",
|
"inet4_range": "28.0.0.0/8",
|
||||||
"inet6_range": "fc00::/16"
|
"inet6_range": "fc00::/16"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tag": "dns_resolver",
|
"tag": "dns_resolver",
|
||||||
"type": "$dns_resolver_type",
|
$(parse_singbox_dns "$dns_resolver")
|
||||||
"server": "$dns_resolverip",
|
|
||||||
"routing_mark": $routing_mark
|
"routing_mark": $routing_mark
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -787,10 +831,8 @@ EOF
|
|||||||
"default_domain_resolver": "dns_resolver",
|
"default_domain_resolver": "dns_resolver",
|
||||||
"default_mark": $routing_mark,
|
"default_mark": $routing_mark,
|
||||||
"rules": [
|
"rules": [
|
||||||
{ "inbound": [ "dns-in" ], "action": "sniff", "timeout": "500ms" },
|
{ "inbound": [ "dns-in" ], "action": "hijack-dns" },
|
||||||
$sniffer_set
|
$sniffer_set
|
||||||
{ "protocol": "dns", "action": "hijack-dns" },
|
|
||||||
{ "inbound": [ "dns-in" ], "action": "reject" },
|
|
||||||
{ "clash_mode": "Direct" , "outbound": "DIRECT" },
|
{ "clash_mode": "Direct" , "outbound": "DIRECT" },
|
||||||
{ "clash_mode": "Global" , "outbound": "GLOBAL" }
|
{ "clash_mode": "Global" , "outbound": "GLOBAL" }
|
||||||
]
|
]
|
||||||
@@ -843,7 +885,7 @@ EOF
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
if [ "$redir_mod" = "混合模式" -o "$redir_mod" = "Tun模式" ]; then
|
if [ "$redir_mod" = "混合模式" -o "$redir_mod" = "Tun模式" ]; then
|
||||||
[ "ipv6_redir" = '已开启' ] && ipv6_address='"fdfe:dcba:9876::1/126",'
|
[ "ipv6_redir" = '已开启' ] && ipv6_address='"fe80::e5c5:2469:d09b:609a/64",'
|
||||||
cat >>"$TMPDIR"/jsons/tun.json <<EOF
|
cat >>"$TMPDIR"/jsons/tun.json <<EOF
|
||||||
{
|
{
|
||||||
"inbounds": [
|
"inbounds": [
|
||||||
@@ -853,7 +895,7 @@ EOF
|
|||||||
"interface_name": "utun",
|
"interface_name": "utun",
|
||||||
"address": [
|
"address": [
|
||||||
$ipv6_address
|
$ipv6_address
|
||||||
"172.18.0.1/30"
|
"28.0.0.1/30"
|
||||||
],
|
],
|
||||||
"auto_route": false,
|
"auto_route": false,
|
||||||
"stack": "system"
|
"stack": "system"
|
||||||
@@ -1056,7 +1098,7 @@ start_ipt_route() { #iptables-route通用工具
|
|||||||
fi
|
fi
|
||||||
#将所在链指定流量指向shellcrash表
|
#将所在链指定流量指向shellcrash表
|
||||||
$1 $w -t $2 -I $3 -p $5 $ports -j $4
|
$1 $w -t $2 -I $3 -p $5 $ports -j $4
|
||||||
[ "$dns_mod" = "mix" -o "$dns_mod" = "fake-ip" ] && [ "$common_ports" = "已开启" ] && [ "$1" = iptables ] && $1 $w -t $2 -I $3 -p $5 -d 28.0.0.1/8 -j $4
|
[ "$dns_mod" = "mix" -o "$dns_mod" = "fake-ip" ] && [ "$common_ports" = "已开启" ] && [ "$1" = iptables ] && $1 $w -t $2 -I $3 -p $5 -d 28.0.0.0/8 -j $4
|
||||||
[ "$dns_mod" = "mix" -o "$dns_mod" = "fake-ip" ] && [ "$common_ports" = "已开启" ] && [ "$1" = ip6tables ] && $1 $w -t $2 -I $3 -p $5 -d fc00::/16 -j $4
|
[ "$dns_mod" = "mix" -o "$dns_mod" = "fake-ip" ] && [ "$common_ports" = "已开启" ] && [ "$1" = ip6tables ] && $1 $w -t $2 -I $3 -p $5 -d fc00::/16 -j $4
|
||||||
}
|
}
|
||||||
[ "$5" = "tcp" -o "$5" = "all" ] && proxy_set $1 $2 $3 $4 tcp
|
[ "$5" = "tcp" -o "$5" = "all" ] && proxy_set $1 $2 $3 $4 tcp
|
||||||
@@ -1291,10 +1333,12 @@ start_nft_route() { #nftables-route通用工具
|
|||||||
[ -z "$ports" ] && nft add rule inet shellcrash $1 tcp dport {"$mix_port, $redir_port, $tproxy_port"} return
|
[ -z "$ports" ] && nft add rule inet shellcrash $1 tcp dport {"$mix_port, $redir_port, $tproxy_port"} return
|
||||||
#过滤常用端口
|
#过滤常用端口
|
||||||
[ -n "$PORTS" ] && {
|
[ -n "$PORTS" ] && {
|
||||||
nft add rule inet shellcrash $1 ip daddr != {28.0.0.1/8} tcp dport != {$PORTS} return
|
nft add rule inet shellcrash $1 ip daddr != {28.0.0.0/8} tcp dport != {$PORTS} return
|
||||||
|
nft add rule inet shellcrash $1 ip daddr != {28.0.0.0/8} udp dport != {$PORTS} return
|
||||||
nft add rule inet shellcrash $1 ip6 daddr != {fc00::/16} tcp dport != {$PORTS} return
|
nft add rule inet shellcrash $1 ip6 daddr != {fc00::/16} tcp dport != {$PORTS} return
|
||||||
|
nft add rule inet shellcrash $1 ip6 daddr != {fc00::/16} udp dport != {$PORTS} return
|
||||||
}
|
}
|
||||||
#nft add rule inet shellcrash $1 ip saddr 28.0.0.1/8 return
|
#nft add rule inet shellcrash $1 ip saddr 28.0.0.0/8 return
|
||||||
nft add rule inet shellcrash $1 ip daddr {$RESERVED_IP} return #过滤保留地址
|
nft add rule inet shellcrash $1 ip daddr {$RESERVED_IP} return #过滤保留地址
|
||||||
#过滤局域网设备
|
#过滤局域网设备
|
||||||
[ "$1" = 'prerouting' ] && {
|
[ "$1" = 'prerouting' ] && {
|
||||||
@@ -1416,10 +1460,10 @@ start_nft_wan() { #nftables公网防火墙
|
|||||||
}
|
}
|
||||||
start_nftables() { #nftables配置总入口
|
start_nftables() { #nftables配置总入口
|
||||||
#初始化nftables
|
#初始化nftables
|
||||||
nft add table inet shellcrash
|
nft add table inet shellcrash 2>/dev/null
|
||||||
nft flush table inet shellcrash
|
nft flush table inet shellcrash 2>/dev/null
|
||||||
#公网访问防火墙
|
#公网访问防火墙
|
||||||
start_nft_wan
|
[ "$systype" != 'container' ] && start_nft_wan
|
||||||
#启动DNS劫持
|
#启动DNS劫持
|
||||||
[ "$dns_no" != "已禁用" -a "$dns_redir" != "已开启" -a "$firewall_area" -le 3 ] && {
|
[ "$dns_no" != "已禁用" -a "$dns_redir" != "已开启" -a "$firewall_area" -le 3 ] && {
|
||||||
[ "$lan_proxy" = true ] && start_nft_dns prerouting prerouting #局域网dns转发
|
[ "$lan_proxy" = true ] && start_nft_dns prerouting prerouting #局域网dns转发
|
||||||
@@ -1514,7 +1558,7 @@ start_firewall() { #路由规则总入口
|
|||||||
[ "$firewall_mod" = 'iptables' ] && start_iptables
|
[ "$firewall_mod" = 'iptables' ] && start_iptables
|
||||||
[ "$firewall_mod" = 'nftables' ] && start_nftables
|
[ "$firewall_mod" = 'nftables' ] && start_nftables
|
||||||
#修复部分虚拟机dns查询失败的问题
|
#修复部分虚拟机dns查询失败的问题
|
||||||
[ "$firewall_area" = 2 -o "$firewall_area" = 3 ] && [ -z "$(grep '127.0.0.1' /etc/resolv.conf 2>/dev/null)" ] && [ -w /etc/resolv.conf ] && {
|
[ "$firewall_area" = 2 -o "$firewall_area" = 3 ] && [ -z "$(grep '127.0.0.1' /etc/resolv.conf 2>/dev/null)" ] && [ "$systype" != 'container' ] && {
|
||||||
line=$(grep -n 'nameserver' /etc/resolv.conf | awk -F: 'FNR==1{print $1}')
|
line=$(grep -n 'nameserver' /etc/resolv.conf | awk -F: 'FNR==1{print $1}')
|
||||||
sed -i "$line i\nameserver 127.0.0.1 #shellcrash-dns-repair" /etc/resolv.conf >/dev/null 2>&1
|
sed -i "$line i\nameserver 127.0.0.1 #shellcrash-dns-repair" /etc/resolv.conf >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
@@ -1543,24 +1587,24 @@ stop_firewall() { #还原防火墙配置
|
|||||||
$iptable -t nat -D OUTPUT -p tcp --dport 53 -j shellcrash_dns_out 2>/dev/null
|
$iptable -t nat -D OUTPUT -p tcp --dport 53 -j shellcrash_dns_out 2>/dev/null
|
||||||
#redir
|
#redir
|
||||||
$iptable -t nat -D PREROUTING -p tcp $ports -j shellcrash 2>/dev/null
|
$iptable -t nat -D PREROUTING -p tcp $ports -j shellcrash 2>/dev/null
|
||||||
$iptable -t nat -D PREROUTING -p tcp -d 28.0.0.1/8 -j shellcrash 2>/dev/null
|
$iptable -t nat -D PREROUTING -p tcp -d 28.0.0.0/8 -j shellcrash 2>/dev/null
|
||||||
$iptable -t nat -D OUTPUT -p tcp $ports -j shellcrash_out 2>/dev/null
|
$iptable -t nat -D OUTPUT -p tcp $ports -j shellcrash_out 2>/dev/null
|
||||||
$iptable -t nat -D OUTPUT -p tcp -d 28.0.0.1/8 -j shellcrash_out 2>/dev/null
|
$iptable -t nat -D OUTPUT -p tcp -d 28.0.0.0/8 -j shellcrash_out 2>/dev/null
|
||||||
#vm_dns
|
#vm_dns
|
||||||
$iptable -t nat -D PREROUTING -p tcp --dport 53 -j shellcrash_vm_dns 2>/dev/null
|
$iptable -t nat -D PREROUTING -p tcp --dport 53 -j shellcrash_vm_dns 2>/dev/null
|
||||||
$iptable -t nat -D PREROUTING -p udp --dport 53 -j shellcrash_vm_dns 2>/dev/null
|
$iptable -t nat -D PREROUTING -p udp --dport 53 -j shellcrash_vm_dns 2>/dev/null
|
||||||
#vm_redir
|
#vm_redir
|
||||||
$iptable -t nat -D PREROUTING -p tcp $ports -j shellcrash_vm 2>/dev/null
|
$iptable -t nat -D PREROUTING -p tcp $ports -j shellcrash_vm 2>/dev/null
|
||||||
$iptable -t nat -D PREROUTING -p tcp -d 28.0.0.1/8 -j shellcrash_vm 2>/dev/null
|
$iptable -t nat -D PREROUTING -p tcp -d 28.0.0.0/8 -j shellcrash_vm 2>/dev/null
|
||||||
#TPROXY&tun
|
#TPROXY&tun
|
||||||
$iptable -t mangle -D PREROUTING -p tcp $ports -j shellcrash_mark 2>/dev/null
|
$iptable -t mangle -D PREROUTING -p tcp $ports -j shellcrash_mark 2>/dev/null
|
||||||
$iptable -t mangle -D PREROUTING -p udp $ports -j shellcrash_mark 2>/dev/null
|
$iptable -t mangle -D PREROUTING -p udp $ports -j shellcrash_mark 2>/dev/null
|
||||||
$iptable -t mangle -D PREROUTING -p tcp -d 28.0.0.1/8 -j shellcrash_mark 2>/dev/null
|
$iptable -t mangle -D PREROUTING -p tcp -d 28.0.0.0/8 -j shellcrash_mark 2>/dev/null
|
||||||
$iptable -t mangle -D PREROUTING -p udp -d 28.0.0.1/8 -j shellcrash_mark 2>/dev/null
|
$iptable -t mangle -D PREROUTING -p udp -d 28.0.0.0/8 -j shellcrash_mark 2>/dev/null
|
||||||
$iptable -t mangle -D OUTPUT -p tcp $ports -j shellcrash_mark_out 2>/dev/null
|
$iptable -t mangle -D OUTPUT -p tcp $ports -j shellcrash_mark_out 2>/dev/null
|
||||||
$iptable -t mangle -D OUTPUT -p udp $ports -j shellcrash_mark_out 2>/dev/null
|
$iptable -t mangle -D OUTPUT -p udp $ports -j shellcrash_mark_out 2>/dev/null
|
||||||
$iptable -t mangle -D OUTPUT -p tcp -d 28.0.0.1/8 -j shellcrash_mark_out 2>/dev/null
|
$iptable -t mangle -D OUTPUT -p tcp -d 28.0.0.0/8 -j shellcrash_mark_out 2>/dev/null
|
||||||
$iptable -t mangle -D OUTPUT -p udp -d 28.0.0.1/8 -j shellcrash_mark_out 2>/dev/null
|
$iptable -t mangle -D OUTPUT -p udp -d 28.0.0.0/8 -j shellcrash_mark_out 2>/dev/null
|
||||||
$iptable -t mangle -D PREROUTING -m mark --mark $fwmark -p tcp -j TPROXY --on-port $tproxy_port 2>/dev/null
|
$iptable -t mangle -D PREROUTING -m mark --mark $fwmark -p tcp -j TPROXY --on-port $tproxy_port 2>/dev/null
|
||||||
$iptable -t mangle -D PREROUTING -m mark --mark $fwmark -p udp -j TPROXY --on-port $tproxy_port 2>/dev/null
|
$iptable -t mangle -D PREROUTING -m mark --mark $fwmark -p udp -j TPROXY --on-port $tproxy_port 2>/dev/null
|
||||||
#tun
|
#tun
|
||||||
@@ -1659,7 +1703,7 @@ stop_firewall() { #还原防火墙配置
|
|||||||
#还原防火墙文件
|
#还原防火墙文件
|
||||||
[ -s /etc/init.d/firewall.bak ] && mv -f /etc/init.d/firewall.bak /etc/init.d/firewall
|
[ -s /etc/init.d/firewall.bak ] && mv -f /etc/init.d/firewall.bak /etc/init.d/firewall
|
||||||
#others
|
#others
|
||||||
sed -i '/shellcrash-dns-repair/d' /etc/resolv.conf
|
[ "$systype" != 'container' ] && sed -i '/shellcrash-dns-repair/d' /etc/resolv.conf >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
#启动相关
|
#启动相关
|
||||||
web_save() { #最小化保存面板节点选择
|
web_save() { #最小化保存面板节点选择
|
||||||
@@ -1729,10 +1773,7 @@ makehtml() { #生成面板跳转文件
|
|||||||
<h1>您还未安装本地面板</h1>
|
<h1>您还未安装本地面板</h1>
|
||||||
<h3>请在脚本更新功能中(9-4)安装<br>或者使用在线面板:</h3>
|
<h3>请在脚本更新功能中(9-4)安装<br>或者使用在线面板:</h3>
|
||||||
<h4>请复制当前地址/ui(不包括)前面的内容,填入url位置即可连接</h3>
|
<h4>请复制当前地址/ui(不包括)前面的内容,填入url位置即可连接</h3>
|
||||||
<a href="https://metacubexd.pages.dev" style="font-size: 24px;">Meta XD面板(推荐)<br></a>
|
<a href="http://board.zash.run.place" style="font-size: 24px;">Zashboard面板(推荐)<br></a>
|
||||||
<a href="https://board.zash.run.place" style="font-size: 24px;">zashboard面板<br></a>
|
|
||||||
<a href="https://yacd.metacubex.one" style="font-size: 24px;">Meta YACD面板(推荐)<br></a>
|
|
||||||
<a href="https://yacd.haishan.me" style="font-size: 24px;">Clash YACD面板<br></a>
|
|
||||||
<a style="font-size: 21px;"><br>如已安装,请使用Ctrl+F5强制刷新此页面!<br></a>
|
<a style="font-size: 21px;"><br>如已安装,请使用Ctrl+F5强制刷新此页面!<br></a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
@@ -1817,7 +1858,7 @@ core_exchange() { #升级为高级内核
|
|||||||
rm -rf "$BINDIR"/CrashCore.tar.gz
|
rm -rf "$BINDIR"/CrashCore.tar.gz
|
||||||
crashcore="$1"
|
crashcore="$1"
|
||||||
setconfig crashcore "$1"
|
setconfig crashcore "$1"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
}
|
}
|
||||||
clash_check() { #clash启动前检查
|
clash_check() { #clash启动前检查
|
||||||
#检测vless/hysteria协议
|
#检测vless/hysteria协议
|
||||||
@@ -1832,9 +1873,9 @@ clash_check() { #clash启动前检查
|
|||||||
core_exchange meta '当前内核不支持非root用户启用本机代理'
|
core_exchange meta '当前内核不支持非root用户启用本机代理'
|
||||||
core_check
|
core_check
|
||||||
#预下载GeoIP数据库并排除存在自定义数据库链接的情况
|
#预下载GeoIP数据库并排除存在自定义数据库链接的情况
|
||||||
[ -n "$(grep -oEi 'geoip' "$CRASHDIR"/yamls/*.yaml)" ] && [ -z "$(grep -oEi 'geoip:|mmdb:' "$CRASHDIR"/yamls/*.yaml)" ] && ckgeo Country.mmdb cn_mini.mmdb
|
[ -n "$(grep -oEi 'geoip:' "$CRASHDIR"/yamls/*.yaml)" ] && [ -z "$(grep -oEi 'geoip:|mmdb:' "$CRASHDIR"/yamls/*.yaml)" ] && ckgeo Country.mmdb cn_mini.mmdb
|
||||||
#预下载GeoSite数据库并排除存在自定义数据库链接的情况
|
#预下载GeoSite数据库并排除存在自定义数据库链接的情况
|
||||||
[ -n "$(grep -oEi 'geosite' "$CRASHDIR"/yamls/*.yaml)" ] && [ -z "$(grep -oEi 'geosite:' "$CRASHDIR"/yamls/*.yaml)" ] && ckgeo GeoSite.dat geosite.dat
|
[ -n "$(grep -oEi 'geosite:' "$CRASHDIR"/yamls/*.yaml)" ] && [ -z "$(grep -oEi 'geosite:' "$CRASHDIR"/yamls/*.yaml)" ] && ckgeo GeoSite.dat geosite.dat
|
||||||
#预下载cn.mrs数据库
|
#预下载cn.mrs数据库
|
||||||
[ -n "$(cat "$CRASHDIR"/yamls/*.yaml | grep -oEi 'rule_set.*cn')" -o "$dns_mod" = "mix" ] && ckgeo ruleset/cn.mrs mrs_geosite_cn.mrs
|
[ -n "$(cat "$CRASHDIR"/yamls/*.yaml | grep -oEi 'rule_set.*cn')" -o "$dns_mod" = "mix" ] && ckgeo ruleset/cn.mrs mrs_geosite_cn.mrs
|
||||||
return 0
|
return 0
|
||||||
@@ -2001,20 +2042,6 @@ hotupdate() { #热更新订阅
|
|||||||
put_save http://127.0.0.1:${db_port}/configs "{\"path\":\""$CRASHDIR"/config.$format\"}"
|
put_save http://127.0.0.1:${db_port}/configs "{\"path\":\""$CRASHDIR"/config.$format\"}"
|
||||||
rm -rf "$TMPDIR"/CrashCore
|
rm -rf "$TMPDIR"/CrashCore
|
||||||
}
|
}
|
||||||
set_proxy() { #设置环境变量
|
|
||||||
if [ "$local_type" = "环境变量" ]; then
|
|
||||||
[ -w ~/.bashrc ] && profile=~/.bashrc
|
|
||||||
[ -w /etc/profile ] && profile=/etc/profile
|
|
||||||
echo 'export all_proxy=http://127.0.0.1:'"$mix_port" >>$profile
|
|
||||||
echo 'export ALL_PROXY=$all_proxy' >>$profile
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
unset_proxy() { #卸载环境变量
|
|
||||||
[ -w ~/.bashrc ] && profile=~/.bashrc
|
|
||||||
[ -w /etc/profile ] && profile=/etc/profile
|
|
||||||
sed -i '/all_proxy/'d $profile
|
|
||||||
sed -i '/ALL_PROXY/'d $profile
|
|
||||||
}
|
|
||||||
|
|
||||||
getconfig #读取配置及全局变量
|
getconfig #读取配置及全局变量
|
||||||
|
|
||||||
@@ -2037,15 +2064,17 @@ start)
|
|||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl start shellcrash.service || start_error
|
systemctl start shellcrash.service || start_error
|
||||||
}
|
}
|
||||||
|
elif grep -q 's6' /proc/1/comm; then
|
||||||
|
bfstart && /command/s6-svc -u /run/service/shellcrash && {
|
||||||
|
[ ! -f "$CRASHDIR"/.dis_startup ] && touch /etc/s6-overlay/s6-rc.d/user/contents.d/afstart
|
||||||
|
afstart &
|
||||||
|
}
|
||||||
elif rc-status -r >/dev/null 2>&1; then
|
elif rc-status -r >/dev/null 2>&1; then
|
||||||
rc-service shellcrash stop >/dev/null 2>&1
|
rc-service shellcrash stop >/dev/null 2>&1
|
||||||
rc-service shellcrash start
|
rc-service shellcrash start
|
||||||
else
|
else
|
||||||
bfstart && start_old
|
bfstart && start_old
|
||||||
fi
|
fi
|
||||||
if [ "$2" = "infinity" ]; then #增加容器自启方式,请将CMD设置为"$CRASHDIR"/start.sh start infinity
|
|
||||||
sleep infinity
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
logger ShellCrash服务即将关闭……
|
logger ShellCrash服务即将关闭……
|
||||||
@@ -2060,11 +2089,13 @@ stop)
|
|||||||
systemctl stop shellcrash.service >/dev/null 2>&1
|
systemctl stop shellcrash.service >/dev/null 2>&1
|
||||||
elif [ -f /etc/rc.common -a "$(cat /proc/1/comm)" = "procd" ]; then
|
elif [ -f /etc/rc.common -a "$(cat /proc/1/comm)" = "procd" ]; then
|
||||||
/etc/init.d/shellcrash stop >/dev/null 2>&1
|
/etc/init.d/shellcrash stop >/dev/null 2>&1
|
||||||
|
elif grep -q 's6' /proc/1/comm; then
|
||||||
|
/command/s6-svc -d /run/service/shellcrash
|
||||||
|
stop_firewall
|
||||||
elif rc-status -r >/dev/null 2>&1; then
|
elif rc-status -r >/dev/null 2>&1; then
|
||||||
rc-service shellcrash stop >/dev/null 2>&1
|
rc-service shellcrash stop >/dev/null 2>&1
|
||||||
else
|
else
|
||||||
stop_firewall #清理路由策略
|
stop_firewall #清理路由策略
|
||||||
unset_proxy #禁用本机代理
|
|
||||||
fi
|
fi
|
||||||
PID=$(pidof CrashCore) && [ -n "$PID" ] && kill -9 $PID >/dev/null 2>&1
|
PID=$(pidof CrashCore) && [ -n "$PID" ] && kill -9 $PID >/dev/null 2>&1
|
||||||
#清理缓存目录
|
#清理缓存目录
|
||||||
@@ -2117,58 +2148,60 @@ init)
|
|||||||
profile=$(cat /etc/profile | grep -oE '\-f.*jffs.*profile' | awk '{print $2}')
|
profile=$(cat /etc/profile | grep -oE '\-f.*jffs.*profile' | awk '{print $2}')
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
sed -i "/alias crash/d" $profile
|
[ -z "$my_alias" ] && my_alias=crash
|
||||||
sed -i "/alias clash/d" $profile
|
sed -i "/ShellCrash\/menu.sh/"d "$profile"
|
||||||
sed -i "/export CRASHDIR/d" $profile
|
echo "alias ${my_alias}=\"sh $CRASHDIR/menu.sh\"" >>"$profile"
|
||||||
echo "alias crash=\"$CRASHDIR/menu.sh\"" >>$profile
|
sed -i "/export CRASHDIR/d" "$profile"
|
||||||
echo "alias clash=\"$CRASHDIR/menu.sh\"" >>$profile
|
echo "export CRASHDIR=\"$CRASHDIR\"" >>"$profile"
|
||||||
echo "export CRASHDIR=\"$CRASHDIR\"" >>$profile
|
|
||||||
[ -f "$CRASHDIR"/.dis_startup ] && cronset "保守模式守护进程" || $0 start
|
[ -f "$CRASHDIR"/.dis_startup ] && cronset "保守模式守护进程" || $0 start
|
||||||
;;
|
;;
|
||||||
webget)
|
webget)
|
||||||
#设置临时代理
|
#设置临时代理
|
||||||
if [ -n "$(pidof CrashCore)" ]; then
|
if pidof CrashCore >/dev/null; then
|
||||||
[ -n "$authentication" ] && auth="$authentication@"
|
[ -n "$authentication" ] && auth="$authentication@" || auth=""
|
||||||
export all_proxy="http://${auth}127.0.0.1:$mix_port"
|
export all_proxy="http://${auth}127.0.0.1:$mix_port"
|
||||||
url=$(echo $3 | sed 's#https://.*jsdelivr.net/gh/juewuy/ShellCrash[@|/]#https://raw.githubusercontent.com/juewuy/ShellCrash/#' | sed 's#https://gh.jwsc.eu.org/#https://raw.githubusercontent.com/juewuy/ShellCrash/#')
|
url=$(printf '%s\n' "$3" |
|
||||||
|
sed -e 's#https://.*jsdelivr.net/gh/juewuy/ShellCrash[@|/]#https://raw.githubusercontent.com/juewuy/ShellCrash/#' \
|
||||||
|
-e 's#https://gh.jwsc.eu.org/#https://raw.githubusercontent.com/juewuy/ShellCrash/#')
|
||||||
else
|
else
|
||||||
url=$(echo $3 | sed 's#https://raw.githubusercontent.com/juewuy/ShellCrash/#https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@#')
|
url=$(printf '%s\n' "$3" |
|
||||||
|
sed 's#https://raw.githubusercontent.com/juewuy/ShellCrash/#https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@#')
|
||||||
fi
|
fi
|
||||||
#参数【$2】代表下载目录,【$3】代表在线地址
|
#参数【$2】代表下载目录,【$3】代表在线地址
|
||||||
#参数【$4】代表输出显示,【$5】不启用重定向
|
#参数【$4】代表输出显示,【$5】不启用重定向
|
||||||
#参数【$6】代表验证证书,【$7】使用自定义UA
|
#参数【$6】代表验证证书,【$7】使用自定义UA
|
||||||
[ -n "$7" ] && agent="--user-agent \"$7\""
|
[ -n "$7" ] && agent="--user-agent \"$7\""
|
||||||
if curl --version >/dev/null 2>&1; then
|
if wget --help 2>&1 | grep -q 'show-progress' >/dev/null 2>&1; then
|
||||||
[ "$4" = "echooff" ] && progress='-s' || progress='-#'
|
|
||||||
[ "$5" = "rediroff" ] && redirect='' || redirect='-L'
|
|
||||||
[ "$6" = "skipceroff" ] && certificate='' || certificate='-k'
|
|
||||||
[ -n "$7" ] && agent="--user-agent \"$7\""
|
|
||||||
if curl --version | grep -q '^curl 8.' && ckcmd base64;then
|
|
||||||
auth_b64=$(echo -n "$authentication" | base64)
|
|
||||||
result=$(curl $agent -w %{http_code} --connect-timeout 3 --proxy-header "Proxy-Authorization: Basic $auth_b64" $progress $redirect $certificate -o "$2" "$url")
|
|
||||||
else
|
|
||||||
result=$(curl $agent -w %{http_code} --connect-timeout 3 $progress $redirect $certificate -o "$2" "$url")
|
|
||||||
fi
|
|
||||||
[ "$result" != "200" ] && export all_proxy="" && result=$(curl $agent -w %{http_code} --connect-timeout 5 $progress $redirect $certificate -o "$2" "$3")
|
|
||||||
else
|
|
||||||
if wget --version >/dev/null 2>&1; then
|
|
||||||
[ "$4" = "echooff" ] && progress='-q' || progress='-q --show-progress'
|
[ "$4" = "echooff" ] && progress='-q' || progress='-q --show-progress'
|
||||||
[ "$5" = "rediroff" ] && redirect='--max-redirect=0' || redirect=''
|
[ "$5" = "rediroff" ] && redirect='--max-redirect=0' || redirect=''
|
||||||
[ "$6" = "skipceroff" ] && certificate='' || certificate='--no-check-certificate'
|
[ "$6" = "skipceroff" ] && certificate='' || certificate='--no-check-certificate'
|
||||||
[ -n "$7" ] && agent="--user-agent=\"$7\""
|
wget -Y on $agent $progress $redirect $certificate --timeout=3 -O "$2" "$url" && exit 0 #成功则退出否则重试
|
||||||
timeout='--timeout=5'
|
wget -Y off $agent $progress $redirect $certificate --timeout=5 -O "$2" "$3"
|
||||||
fi
|
exit $?
|
||||||
[ "$4" = "echoon" ] && progress=''
|
elif curl --version >/dev/null 2>&1; then
|
||||||
[ "$4" = "echooff" ] && progress='-q'
|
[ "$4" = "echooff" ] && progress='-s' || progress='-#'
|
||||||
wget -Y on $agent $progress $redirect $certificate $timeout -O "$2" "$url"
|
[ "$5" = "rediroff" ] && redirect='' || redirect='-L'
|
||||||
if [ "$?" != "0" ]; then
|
[ "$6" = "skipceroff" ] && certificate='' || certificate='-k'
|
||||||
wget -Y off $agent $progress $redirect $certificate $timeout -O "$2" "$3"
|
if curl --version | grep -q '^curl 8.' && ckcmd base64; then
|
||||||
[ "$?" = "0" ] && result="200"
|
auth_b64=$(printf '%s' "$authentication" | base64)
|
||||||
|
result=$(curl $agent -w '%{http_code}' --connect-timeout 3 --proxy-header "Proxy-Authorization: Basic $auth_b64" $progress $redirect $certificate -o "$2" "$url")
|
||||||
else
|
else
|
||||||
result="200"
|
result=$(curl $agent -w '%{http_code}' --connect-timeout 3 $progress $redirect $certificate -o "$2" "$url")
|
||||||
fi
|
fi
|
||||||
|
[ "$result" = "200" ] && exit 0 #成功则退出否则重试
|
||||||
|
export all_proxy=""
|
||||||
|
result=$(curl $agent -w '%{http_code}' --connect-timeout 5 $progress $redirect $certificate -o "$2" "$3")
|
||||||
|
[ "$result" = "200" ]
|
||||||
|
exit $?
|
||||||
|
elif ckcmd wget;then
|
||||||
|
[ "$4" = "echooff" ] && progress='-q'
|
||||||
|
wget -Y on $progress -O "$2" "$url" && exit 0 #成功则退出否则重试
|
||||||
|
wget -Y off $progress -O "$2" "$3"
|
||||||
|
exit $?
|
||||||
|
else
|
||||||
|
echo "找不到可用下载工具!!!请安装Curl或Wget!!!"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
[ "$result" = "200" ] && exit 0 || exit 1
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
"$1" "$2" "$3" "$4" "$5" "$6" "$7"
|
"$1" "$2" "$3" "$4" "$5" "$6" "$7"
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ set_cron(){
|
|||||||
[ -z $week ] && week=*
|
[ -z $week ] && week=*
|
||||||
[ -z $hour ] && hour=*
|
[ -z $hour ] && hour=*
|
||||||
[ -z $min ] && min=0
|
[ -z $min ] && min=0
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e "\033[33m$cron_time\033[0m执行任务:\033[36m$task_name\033[0m"
|
echo -e "\033[33m$cron_time\033[0m执行任务:\033[36m$task_name\033[0m"
|
||||||
read -p "是否确认添加定时任务?(1/0) > " res
|
read -p "是否确认添加定时任务?(1/0) > " res
|
||||||
if [ "$res" = '1' ]; then
|
if [ "$res" = '1' ]; then
|
||||||
@@ -223,7 +223,7 @@ set_service(){
|
|||||||
}
|
}
|
||||||
#任务界面
|
#任务界面
|
||||||
task_user_add(){ #自定义命令添加
|
task_user_add(){ #自定义命令添加
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e "\033[33m命令可包含空格,请确保命令可执行!\033[0m"
|
echo -e "\033[33m命令可包含空格,请确保命令可执行!\033[0m"
|
||||||
echo -e "\033[36m此处不要添加执行条件,请在添加完成后返回添加具体执行条件!\033[0m"
|
echo -e "\033[36m此处不要添加执行条件,请在添加完成后返回添加具体执行条件!\033[0m"
|
||||||
echo -e "也可以手动编辑\033[32m${CRASHDIR}/task/task.user\033[0m添加"
|
echo -e "也可以手动编辑\033[32m${CRASHDIR}/task/task.user\033[0m添加"
|
||||||
@@ -246,14 +246,14 @@ task_user_add(){ #自定义命令添加
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
task_user_del(){ #自定义命令删除
|
task_user_del(){ #自定义命令删除
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e "请输入对应ID移除对应自定义任务(不会影响内置任务)"
|
echo -e "请输入对应ID移除对应自定义任务(不会影响内置任务)"
|
||||||
echo -e "也可以手动编辑\033[32m${CRASHDIR}/task/task.user\033[0m"
|
echo -e "也可以手动编辑\033[32m${CRASHDIR}/task/task.user\033[0m"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
cat ${CRASHDIR}/task/task.user 2>/dev/null | grep -Ev '^#' | awk -F '#' '{print $1" "$3}'
|
cat ${CRASHDIR}/task/task.user 2>/dev/null | grep -Ev '^#' | awk -F '#' '{print $1" "$3}'
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo 0 返回上级菜单
|
echo 0 返回上级菜单
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
read -p "请输入对应数字 > " num
|
read -p "请输入对应数字 > " num
|
||||||
if [ -n "$num" ];then
|
if [ -n "$num" ];then
|
||||||
sed -i "/^$num#/d" ${CRASHDIR}/task/task.user 2>/dev/null
|
sed -i "/^$num#/d" ${CRASHDIR}/task/task.user 2>/dev/null
|
||||||
@@ -264,12 +264,12 @@ task_user_del(){ #自定义命令删除
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
task_add(){ #任务添加
|
task_add(){ #任务添加
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e "\033[36m请选择需要添加的任务\033[0m"
|
echo -e "\033[36m请选择需要添加的任务\033[0m"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
#输出任务列表
|
#输出任务列表
|
||||||
cat ${CRASHDIR}/task/task.list ${CRASHDIR}/task/task.user 2>/dev/null | grep -Ev '^(#|$)' | awk -F '#' '{print " "NR" "$3}'
|
cat ${CRASHDIR}/task/task.list ${CRASHDIR}/task/task.user 2>/dev/null | grep -Ev '^(#|$)' | awk -F '#' '{print " "NR" "$3}'
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e " 0 返回上级菜单"
|
echo -e " 0 返回上级菜单"
|
||||||
read -p "请输入对应数字 > " num
|
read -p "请输入对应数字 > " num
|
||||||
case "$num" in
|
case "$num" in
|
||||||
@@ -301,9 +301,9 @@ task_del(){ #任务删除
|
|||||||
sed -i "/$1/d" ${CRASHDIR}/task/affirewall 2>/dev/null
|
sed -i "/$1/d" ${CRASHDIR}/task/affirewall 2>/dev/null
|
||||||
}
|
}
|
||||||
task_type(){ #任务条件选择菜单
|
task_type(){ #任务条件选择菜单
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e "请选择任务\033[36m【$task_name】\033[0m执行条件:"
|
echo -e "请选择任务\033[36m【$task_name】\033[0m执行条件:"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e " 1 定时任务\033[32m每周执行\033[0m"
|
echo -e " 1 定时任务\033[32m每周执行\033[0m"
|
||||||
echo -e " 2 定时任务\033[32m每日执行\033[0m"
|
echo -e " 2 定时任务\033[32m每日执行\033[0m"
|
||||||
echo -e " 3 定时任务\033[32m每小时执行\033[0m"
|
echo -e " 3 定时任务\033[32m每小时执行\033[0m"
|
||||||
@@ -312,7 +312,7 @@ task_type(){ #任务条件选择菜单
|
|||||||
echo -e " 6 服务\033[33m启动后执行\033[0m"
|
echo -e " 6 服务\033[33m启动后执行\033[0m"
|
||||||
echo -e " 7 服务\033[33m运行时每分钟执行\033[0m"
|
echo -e " 7 服务\033[33m运行时每分钟执行\033[0m"
|
||||||
echo -e " 8 防火墙服务\033[33m重启后执行\033[0m"
|
echo -e " 8 防火墙服务\033[33m重启后执行\033[0m"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e " 0 返回上级菜单"
|
echo -e " 0 返回上级菜单"
|
||||||
read -p "请输入对应数字 > " num
|
read -p "请输入对应数字 > " num
|
||||||
case "$num" in
|
case "$num" in
|
||||||
@@ -321,37 +321,37 @@ task_type(){ #任务条件选择菜单
|
|||||||
return 1
|
return 1
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e " 输入 1-7 对应\033[33m每周的指定某天\033[0m运行(7=周日)"
|
echo -e " 输入 1-7 对应\033[33m每周的指定某天\033[0m运行(7=周日)"
|
||||||
echo -e " 输入 1,4,0 代表\033[36m每周一、周四、周日\033[0m运行"
|
echo -e " 输入 1,4,0 代表\033[36m每周一、周四、周日\033[0m运行"
|
||||||
echo -e " 输入 1-5 代表\033[36m周一至周五\033[0m运行"
|
echo -e " 输入 1-5 代表\033[36m周一至周五\033[0m运行"
|
||||||
read -p "在每周哪天执行? > " week
|
read -p "在每周哪天执行? > " week
|
||||||
week=`echo ${week/7/0}` #把7换成0
|
week=`echo ${week/7/0}` #把7换成0
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
read -p "想在该日的具体哪个小时执行?(0-23) > " hour
|
read -p "想在该日的具体哪个小时执行?(0-23) > " hour
|
||||||
cron_time="在每周$week的$hour点整"
|
cron_time="在每周$week的$hour点整"
|
||||||
cron_time=`echo ${cron_time/周0/周日}` #把0换成日
|
cron_time=`echo ${cron_time/周0/周日}` #把0换成日
|
||||||
[ -n "$week" ] && [ -n "$hour" ] && set_cron
|
[ -n "$week" ] && [ -n "$hour" ] && set_cron
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e " 输入 1,7,15 代表\033[36m每到1,7,15点\033[0m运行"
|
echo -e " 输入 1,7,15 代表\033[36m每到1,7,15点\033[0m运行"
|
||||||
echo -e " 输入 6-18 代表\033[36m早6点至晚18点间每小时\033[0m运行"
|
echo -e " 输入 6-18 代表\033[36m早6点至晚18点间每小时\033[0m运行"
|
||||||
read -p "想在每日的具体哪个小时执行?(0-23) > " hour
|
read -p "想在每日的具体哪个小时执行?(0-23) > " hour
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
read -p "想在具体哪分钟执行?(0-59的整数) > " min
|
read -p "想在具体哪分钟执行?(0-59的整数) > " min
|
||||||
cron_time="在每日的$hour点$min分"
|
cron_time="在每日的$hour点$min分"
|
||||||
[ -n "$min" ] && [ -n "$hour" ] && set_cron
|
[ -n "$min" ] && [ -n "$hour" ] && set_cron
|
||||||
;;
|
;;
|
||||||
3)
|
3)
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
read -p "想每隔多少小时执行一次?(1-23的整数) > " num
|
read -p "想每隔多少小时执行一次?(1-23的整数) > " num
|
||||||
hour="*/$num"
|
hour="*/$num"
|
||||||
cron_time="每隔$num小时"
|
cron_time="每隔$num小时"
|
||||||
[ -n "$hour" ] && set_cron
|
[ -n "$hour" ] && set_cron
|
||||||
;;
|
;;
|
||||||
4)
|
4)
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
read -p "想每隔多少分钟执行一次?(1-59的整数) > " num
|
read -p "想每隔多少分钟执行一次?(1-59的整数) > " num
|
||||||
min="*/$num"
|
min="*/$num"
|
||||||
cron_time="每隔$num分钟"
|
cron_time="每隔$num分钟"
|
||||||
@@ -364,7 +364,7 @@ task_type(){ #任务条件选择菜单
|
|||||||
set_service afstart "$task_id" "服务启动后$task_name"
|
set_service afstart "$task_id" "服务启动后$task_name"
|
||||||
;;
|
;;
|
||||||
7)
|
7)
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e " 输入10即每隔10分钟运行一次,1440即每隔24小时运行一次"
|
echo -e " 输入10即每隔10分钟运行一次,1440即每隔24小时运行一次"
|
||||||
echo -e " 大于60分钟的数值将按小时取整,且按当前时区记时"
|
echo -e " 大于60分钟的数值将按小时取整,且按当前时区记时"
|
||||||
read -p "想每隔多少分钟执行一次?(1-1440的整数) > " num
|
read -p "想每隔多少分钟执行一次?(1-1440的整数) > " num
|
||||||
@@ -391,7 +391,7 @@ task_type(){ #任务条件选择菜单
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
task_manager(){ #任务管理列表
|
task_manager(){ #任务管理列表
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
#抽取并生成临时列表
|
#抽取并生成临时列表
|
||||||
croncmd -l > ${TMPDIR}/task_cronlist
|
croncmd -l > ${TMPDIR}/task_cronlist
|
||||||
cat ${TMPDIR}/task_cronlist ${CRASHDIR}/task/running 2>/dev/null | sort -u | grep -oE "task/task.sh .*" | awk -F ' ' '{print $2" "$3}' > ${TMPDIR}/task_list
|
cat ${TMPDIR}/task_cronlist ${CRASHDIR}/task/running 2>/dev/null | sort -u | grep -oE "task/task.sh .*" | awk -F ' ' '{print $2" "$3}' > ${TMPDIR}/task_list
|
||||||
@@ -405,9 +405,9 @@ task_manager(){ #任务管理列表
|
|||||||
sleep 1
|
sleep 1
|
||||||
else
|
else
|
||||||
echo -e "\033[33m已添加的任务:\033[0m"
|
echo -e "\033[33m已添加的任务:\033[0m"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
cat ${TMPDIR}/task_list | awk '{print " " NR " " $2}'
|
cat ${TMPDIR}/task_list | awk '{print " " NR " " $2}'
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e " a 清空旧版任务"
|
echo -e " a 清空旧版任务"
|
||||||
echo -e " d 清空任务列表"
|
echo -e " d 清空任务列表"
|
||||||
echo -e " 0 返回上级菜单"
|
echo -e " 0 返回上级菜单"
|
||||||
@@ -440,13 +440,13 @@ task_manager(){ #任务管理列表
|
|||||||
else
|
else
|
||||||
task_des=$(echo $task_txt | awk '{print $2}')
|
task_des=$(echo $task_txt | awk '{print $2}')
|
||||||
task_name=$(cat ${CRASHDIR}/task/task.list ${CRASHDIR}/task/task.user 2>/dev/null | grep "$task_id" | awk -F '#' '{print $3}')
|
task_name=$(cat ${CRASHDIR}/task/task.list ${CRASHDIR}/task/task.user 2>/dev/null | grep "$task_id" | awk -F '#' '{print $3}')
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e "当前任务为:\033[36m $task_des\033[0m"
|
echo -e "当前任务为:\033[36m $task_des\033[0m"
|
||||||
echo -e " 1 \033[33m修改\033[0m当前任务"
|
echo -e " 1 \033[33m修改\033[0m当前任务"
|
||||||
echo -e " 2 \033[31m删除\033[0m当前任务"
|
echo -e " 2 \033[31m删除\033[0m当前任务"
|
||||||
echo -e " 3 \033[32m立即执行\033[0m一次"
|
echo -e " 3 \033[32m立即执行\033[0m一次"
|
||||||
echo -e " 4 查看\033[33m执行记录\033[0m"
|
echo -e " 4 查看\033[33m执行记录\033[0m"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e " 0 返回上级菜单"
|
echo -e " 0 返回上级菜单"
|
||||||
read -p "请选择需要执行的操作 > " num
|
read -p "请选择需要执行的操作 > " num
|
||||||
case "$num" in
|
case "$num" in
|
||||||
@@ -465,7 +465,7 @@ task_manager(){ #任务管理列表
|
|||||||
sleep 1
|
sleep 1
|
||||||
;;
|
;;
|
||||||
4)
|
4)
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
if [ -n "$(cat ${TMPDIR}/ShellCrash.log | grep "$task_name")" ];then
|
if [ -n "$(cat ${TMPDIR}/ShellCrash.log | grep "$task_name")" ];then
|
||||||
cat ${TMPDIR}/ShellCrash.log | grep "$task_name"
|
cat ${TMPDIR}/ShellCrash.log | grep "$task_name"
|
||||||
else
|
else
|
||||||
@@ -487,13 +487,13 @@ task_manager(){ #任务管理列表
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
task_recom(){ #任务推荐
|
task_recom(){ #任务推荐
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e "\033[32m启用推荐的自动任务配置?这包括:\033[0m"
|
echo -e "\033[32m启用推荐的自动任务配置?这包括:\033[0m"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e "每隔10分钟自动保存面板配置"
|
echo -e "每隔10分钟自动保存面板配置"
|
||||||
echo -e "服务启动后自动同步ntp时间"
|
echo -e "服务启动后自动同步ntp时间"
|
||||||
echo -e "在每日的3点0分重启服务"
|
echo -e "在每日的3点0分重启服务"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
read -p "是否启用?(1/0) > " res
|
read -p "是否启用?(1/0) > " res
|
||||||
[ "$res" = 1 ] && {
|
[ "$res" = 1 ] && {
|
||||||
set_service running "106" "运行时每10分钟自动保存面板配置" "*/10 * * * *"
|
set_service running "106" "运行时每10分钟自动保存面板配置" "*/10 * * * *"
|
||||||
@@ -505,9 +505,9 @@ task_recom(){ #任务推荐
|
|||||||
task_menu(){ #任务菜单
|
task_menu(){ #任务菜单
|
||||||
#检测并创建自定义任务文件
|
#检测并创建自定义任务文件
|
||||||
[ -f ${CRASHDIR}/task/task.user ] || echo '#任务ID(必须>200并顺序排列)#任务命令#任务说明(#号隔开,任务命令和说明中都不允许包含#号)' > ${CRASHDIR}/task/task.user
|
[ -f ${CRASHDIR}/task/task.user ] || echo '#任务ID(必须>200并顺序排列)#任务命令#任务说明(#号隔开,任务命令和说明中都不允许包含#号)' > ${CRASHDIR}/task/task.user
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e "\033[30;47m欢迎使用自动任务功能:\033[0m"
|
echo -e "\033[30;47m欢迎使用自动任务功能:\033[0m"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e " 1 添加\033[32m自动任务\033[0m"
|
echo -e " 1 添加\033[32m自动任务\033[0m"
|
||||||
echo -e " 2 管理\033[33m任务列表\033[0m"
|
echo -e " 2 管理\033[33m任务列表\033[0m"
|
||||||
echo -e " 3 查看\033[36m任务日志\033[0m"
|
echo -e " 3 查看\033[36m任务日志\033[0m"
|
||||||
@@ -515,7 +515,7 @@ task_menu(){ #任务菜单
|
|||||||
echo -e " 5 添加\033[33m自定义任务\033[0m"
|
echo -e " 5 添加\033[33m自定义任务\033[0m"
|
||||||
echo -e " 6 删除\033[33m自定义任务\033[0m"
|
echo -e " 6 删除\033[33m自定义任务\033[0m"
|
||||||
echo -e " 7 使用\033[32m推荐设置\033[0m"
|
echo -e " 7 使用\033[32m推荐设置\033[0m"
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e " 0 返回上级菜单"
|
echo -e " 0 返回上级菜单"
|
||||||
read -p "请输入对应数字 > " num
|
read -p "请输入对应数字 > " num
|
||||||
case "$num" in
|
case "$num" in
|
||||||
@@ -532,7 +532,7 @@ task_menu(){ #任务菜单
|
|||||||
;;
|
;;
|
||||||
3)
|
3)
|
||||||
if [ -n "$(cat ${TMPDIR}/ShellCrash.log | grep '任务【')" ];then
|
if [ -n "$(cat ${TMPDIR}/ShellCrash.log | grep '任务【')" ];then
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
cat ${TMPDIR}/ShellCrash.log | grep '任务【'
|
cat ${TMPDIR}/ShellCrash.log | grep '任务【'
|
||||||
else
|
else
|
||||||
echo -e "\033[31m未找到任务相关执行日志!\033[0m"
|
echo -e "\033[31m未找到任务相关执行日志!\033[0m"
|
||||||
@@ -541,7 +541,7 @@ task_menu(){ #任务菜单
|
|||||||
task_menu
|
task_menu
|
||||||
;;
|
;;
|
||||||
4)
|
4)
|
||||||
echo -----------------------------------------------
|
echo "-----------------------------------------------"
|
||||||
echo -e "\033[36m请在日志工具中配置相关推送通道及推送开关\033[0m"
|
echo -e "\033[36m请在日志工具中配置相关推送通道及推送开关\033[0m"
|
||||||
log_pusher
|
log_pusher
|
||||||
task_menu
|
task_menu
|
||||||
@@ -581,4 +581,3 @@ case "$1" in
|
|||||||
$1
|
$1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user