Add files via upload

Переделан роутинг
This commit is contained in:
xVRVx
2025-05-24 15:37:09 +03:00
committed by GitHub
parent 0c3e4f3d17
commit c193922101
5 changed files with 68 additions and 35 deletions

View File

@@ -54,6 +54,13 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json"
},
"routing": {
"rules": [
{
"domain": [
"geosite:category-ads",
"geosite:win-spy"
],
"outboundTag": "block"
},
{
"ip": [
"geoip:private"

View File

@@ -49,28 +49,35 @@ export xray_uuid_vrv xray_dest_vrv xray_dest_vrv222 xray_privateKey_vrv xray_pub
# Создаем JSON конфигурацию на основе шаблона и сохраняем в папку скрипта
cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json"
{
"dns": {
"servers": [
"https+local://8.8.4.4/dns-query",
"https+local://8.8.8.8/dns-query",
"localhost"
]
},
"log": {
"loglevel": "none",
"dnsLog": false
},
"routing": {
"rules": [
{
"ip": [
"geoip:private"
],
"outboundTag": "block",
"type": "field"
}
]
},
"dns": {
"servers": [
"https+local://8.8.4.4/dns-query",
"https+local://8.8.8.8/dns-query",
"localhost"
]
},
"log": {
"loglevel": "none",
"dnsLog": false
},
"routing": {
"rules": [
{
"domain": [
"geosite:category-ads",
"geosite:win-spy"
],
"outboundTag": "block"
},
{
"ip": [
"geoip:private"
],
"outboundTag": "block",
"type": "field"
}
]
},
"inbounds": [
{
"tag": "VTR$port1",

View File

@@ -180,13 +180,18 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json"
]
},
"log": {
"access": "/var/lib/marzban/access.log",
"error": "/var/lib/marzban/error.log",
"loglevel": "none",
"dnsLog": false
},
"routing": {
"rules": [
{
"domain": [
"geosite:category-ads",
"geosite:win-spy"
],
"outboundTag": "block"
},
{
"ip": [
"geoip:private"

View File

@@ -306,7 +306,8 @@ cat << 'EOF' | envsubst > "$WEB_PATH/$path_subpage.html"
"rules": [
{
"domain": [
"geosite:category-ads-all"
"geosite:category-ads-all",
"geosite:win-spy"
],
"outboundTag": "block"
},
@@ -316,12 +317,6 @@ cat << 'EOF' | envsubst > "$WEB_PATH/$path_subpage.html"
],
"outboundTag": "direct"
},
{
"ip": [
"geoip:cn"
],
"outboundTag": "direct"
},
{
"domain": [
"geosite:geolocation-!cn"

View File

@@ -278,7 +278,9 @@ cat << 'EOF' | envsubst > "$WEB_PATH/$path_subpage.html"
"dns": {
"servers": [
"8.8.4.4",
"8.8.8.8"
"8.8.8.8",
"1.1.1.1",
"localhost"
]
},
"routing": {
@@ -286,7 +288,8 @@ cat << 'EOF' | envsubst > "$WEB_PATH/$path_subpage.html"
"rules": [
{
"domain": [
"geosite:category-ads-all"
"geosite:category-ads-all",
"geosite:win-spy"
],
"outboundTag": "block"
},
@@ -308,14 +311,21 @@ cat << 'EOF' | envsubst > "$WEB_PATH/$path_subpage.html"
"geosite:twitch",
"geosite:yandex",
"geosite:vk",
"geosite:category-gov-ru"
"geosite:microsoft",
"geosite:win-update",
"geosite:win-extra",
"geosite:google-play",
"geosite:steam",
"geosite:category-ru"
],
"outboundTag": "direct"
},
{
"ip": [
"geoip:private",
"geoip:ru",
"geoip:private"
"geoip:by",
"geoip:kz"
],
"outboundTag": "direct"
},
@@ -325,6 +335,15 @@ cat << 'EOF' | envsubst > "$WEB_PATH/$path_subpage.html"
"geoip:!ru"
],
"outboundTag": "proxy"
},
{
"domain": [
"geosite:discord",
"geosite:youtube",
"geosite:tiktok",
"geosite:signal"
],
"outboundTag": "proxy"
}
]
},