Update configs
This commit is contained in:
@@ -117,15 +117,6 @@ dns:
|
|||||||
# '+.internal.crop.com': '10.0.0.1'
|
# '+.internal.crop.com': '10.0.0.1'
|
||||||
|
|
||||||
# —————————————————————————————————————— tun —————————————————————————————————————
|
# —————————————————————————————————————— tun —————————————————————————————————————
|
||||||
tun:
|
|
||||||
enable: true
|
|
||||||
stack: mixed
|
|
||||||
device: utun
|
|
||||||
auto-route: true
|
|
||||||
auto-detect-interface: true
|
|
||||||
dns-hijack:
|
|
||||||
- any:53
|
|
||||||
|
|
||||||
# ————————————————————————————————————— macro ————————————————————————————————————
|
# ————————————————————————————————————— macro ————————————————————————————————————
|
||||||
health-check-for-providers: &health_check_for_providers
|
health-check-for-providers: &health_check_for_providers
|
||||||
enable: true
|
enable: true
|
||||||
@@ -145,24 +136,14 @@ tun:
|
|||||||
behavior: classical
|
behavior: classical
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
private-vpn-list: &private_vpn_list
|
|
||||||
- vless-estonia
|
|
||||||
- vless-serbia
|
|
||||||
|
|
||||||
p-vpn-list_balancer: &p_vpn_list_balancer
|
p-vpn-list_balancer: &p_vpn_list_balancer
|
||||||
type: load-balance
|
type: load-balance
|
||||||
strategy: sticky-sessions
|
strategy: sticky-sessions
|
||||||
proxies:
|
|
||||||
- vless-estonia
|
|
||||||
- vless-serbia
|
|
||||||
use:
|
use:
|
||||||
- own
|
- own
|
||||||
|
|
||||||
p-vpn-list_selector: &p_vpn_list_selector
|
p-vpn-list_selector: &p_vpn_list_selector
|
||||||
type: select
|
type: select
|
||||||
proxies:
|
|
||||||
- vless-estonia
|
|
||||||
- vless-serbia
|
|
||||||
use:
|
use:
|
||||||
- own
|
- own
|
||||||
|
|
||||||
@@ -192,8 +173,6 @@ tun:
|
|||||||
default-private-proxies-lb-selector: &default_private_proxies_lb_selector
|
default-private-proxies-lb-selector: &default_private_proxies_lb_selector
|
||||||
type: select
|
type: select
|
||||||
proxies:
|
proxies:
|
||||||
- vless-estonia
|
|
||||||
- vless-serbia
|
|
||||||
- ⚖️ Personal VPN
|
- ⚖️ Personal VPN
|
||||||
|
|
||||||
# ————————————————————————————————— proxies list —————————————————————————————————
|
# ————————————————————————————————— proxies list —————————————————————————————————
|
||||||
@@ -261,6 +240,7 @@ proxy-providers:
|
|||||||
additional-suffix: "•𝓾"
|
additional-suffix: "•𝓾"
|
||||||
health-check:
|
health-check:
|
||||||
<<: *health_check_for_providers
|
<<: *health_check_for_providers
|
||||||
|
|
||||||
# ————————————————————————————————— proxy groups —————————————————————————————————
|
# ————————————————————————————————— proxy groups —————————————————————————————————
|
||||||
proxy-groups:
|
proxy-groups:
|
||||||
# ————————————————————————— fallback —————————————————————————
|
# ————————————————————————— fallback —————————————————————————
|
||||||
@@ -278,41 +258,47 @@ proxy-groups:
|
|||||||
<<: [*p_vpn_list_balancer, *health_check_for_load_balancers]
|
<<: [*p_vpn_list_balancer, *health_check_for_load_balancers]
|
||||||
|
|
||||||
# —————————————— url tested for non-personal vpn —————————————
|
# —————————————— url tested for non-personal vpn —————————————
|
||||||
- name: ⌚ Europe
|
- name: ⌚ Europe 🌍
|
||||||
disable-udp: false
|
disable-udp: false
|
||||||
filter: "(?i)NL|Finland|Estonia|France|Germany|Sweden|Ireland"
|
filter: "(?i)NL|Finland|Estonia|France|Germany|Sweden|Ireland"
|
||||||
<<: [*np_vpn_list_url_test, *health_check_for_load_balancers]
|
<<: [*np_vpn_list_url_test, *health_check_for_load_balancers]
|
||||||
|
|
||||||
# ———————————— load balancers for non-personal vpn ———————————
|
# ———————————— load balancers for non-personal vpn ———————————
|
||||||
- name: ⚖️ Russian
|
- name: ⚖️ Asia 🌍
|
||||||
disable-udp: false
|
|
||||||
filter: "(?i)Russia"
|
|
||||||
<<: [*np_vpn_list_balancer, *health_check_for_load_balancers]
|
|
||||||
|
|
||||||
- name: ⚖️ Europe
|
|
||||||
disable-udp: false
|
|
||||||
filter: "(?i)NL|Finland|Estonia|France|Germany|Sweden|Ireland"
|
|
||||||
<<: [*np_vpn_list_balancer, *health_check_for_load_balancers]
|
|
||||||
|
|
||||||
- name: ⚖️ USA
|
|
||||||
disable-udp: false
|
|
||||||
filter: "(?i)USA|Canada"
|
|
||||||
<<: [*np_vpn_list_balancer, *health_check_for_load_balancers]
|
|
||||||
|
|
||||||
- name: ⚖️ Asia
|
|
||||||
disable-udp: false
|
disable-udp: false
|
||||||
filter: "(?i)Hong Kong|China|Malaysia|Philippines|Japan|Singapore"
|
filter: "(?i)Hong Kong|China|Malaysia|Philippines|Japan|Singapore"
|
||||||
<<: [*np_vpn_list_balancer, *health_check_for_load_balancers]
|
<<: [*np_vpn_list_balancer, *health_check_for_load_balancers]
|
||||||
|
hidden: true
|
||||||
|
|
||||||
|
- name: ⚖️ Europe 🌍
|
||||||
|
disable-udp: false
|
||||||
|
filter: "(?i)NL|Finland|Estonia|France|Germany|Sweden|Ireland"
|
||||||
|
<<: [*np_vpn_list_balancer, *health_check_for_load_balancers]
|
||||||
|
hidden: true
|
||||||
|
|
||||||
|
- name: ⚖️ USA 🌍
|
||||||
|
disable-udp: false
|
||||||
|
filter: "(?i)USA|Canada"
|
||||||
|
<<: [*np_vpn_list_balancer, *health_check_for_load_balancers]
|
||||||
|
hidden: true
|
||||||
|
|
||||||
- name: ⚖️ High Bandwidth
|
- name: ⚖️ High Bandwidth
|
||||||
disable-udp: false
|
disable-udp: false
|
||||||
filter: "(?i)10 Gbit"
|
filter: "(?i)10 Gbit"
|
||||||
<<: [*np_vpn_list_balancer, *health_check_for_load_balancers]
|
<<: [*np_vpn_list_balancer, *health_check_for_load_balancers]
|
||||||
|
hidden: true
|
||||||
|
|
||||||
|
- name: ⚖️ Russian 🌍
|
||||||
|
disable-udp: false
|
||||||
|
filter: "(?i)Russia"
|
||||||
|
<<: [*np_vpn_list_balancer, *health_check_for_load_balancers]
|
||||||
|
hidden: true
|
||||||
|
|
||||||
- name: ⚖️ Fast Servers
|
- name: ⚖️ Fast Servers
|
||||||
disable-udp: false
|
disable-udp: false
|
||||||
filter: "(?i)Low Ping"
|
filter: "(?i)Low Ping"
|
||||||
<<: [*np_vpn_list_balancer, *health_check_for_load_balancers]
|
<<: [*np_vpn_list_balancer, *health_check_for_load_balancers]
|
||||||
|
hidden: true
|
||||||
|
|
||||||
# ————————————— global selectors for personal vpn ————————————
|
# ————————————— global selectors for personal vpn ————————————
|
||||||
- name: 🔢 Personal VPN
|
- name: 🔢 Personal VPN
|
||||||
@@ -320,36 +306,41 @@ proxy-groups:
|
|||||||
<<: [*p_vpn_list_selector, *health_check_for_selectors]
|
<<: [*p_vpn_list_selector, *health_check_for_selectors]
|
||||||
|
|
||||||
# ——————————— global selectors for non-personal vpn ——————————
|
# ——————————— global selectors for non-personal vpn ——————————
|
||||||
- name: 🔢 Russian
|
- name: 🔢 Asia 🌍
|
||||||
disable-udp: false
|
|
||||||
filter: "(?i)Russia"
|
|
||||||
<<: [*np_vpn_list_selector, *health_check_for_selectors]
|
|
||||||
|
|
||||||
- name: 🔢 Europe
|
|
||||||
disable-udp: false
|
|
||||||
filter: "(?i)NL|Finland|Estonia|France|Germany|Sweden|Ireland|Moldova"
|
|
||||||
<<: [*np_vpn_list_selector, *health_check_for_selectors]
|
|
||||||
|
|
||||||
- name: 🔢 USA
|
|
||||||
disable-udp: false
|
|
||||||
filter: "(?i)USA|Canada"
|
|
||||||
<<: [*np_vpn_list_selector, *health_check_for_selectors]
|
|
||||||
|
|
||||||
- name: 🔢 Asia
|
|
||||||
disable-udp: false
|
disable-udp: false
|
||||||
filter: "(?i)Hong Kong|China|Malaysia|Philippines|Japan|Singapore"
|
filter: "(?i)Hong Kong|China|Malaysia|Philippines|Japan|Singapore"
|
||||||
<<: [*np_vpn_list_selector, *health_check_for_selectors]
|
<<: [*np_vpn_list_selector, *health_check_for_selectors]
|
||||||
|
|
||||||
- name: 🔢 Kazakhstan
|
- name: 🔢 Europe 🌍
|
||||||
|
disable-udp: false
|
||||||
|
filter: "(?i)NL|Finland|Estonia|France|Germany|Sweden|Ireland|Moldova"
|
||||||
|
<<: [*np_vpn_list_selector, *health_check_for_selectors]
|
||||||
|
|
||||||
|
- name: 🔢 Kazakhstan 🌍
|
||||||
disable-udp: false
|
disable-udp: false
|
||||||
filter: "(?i)Kazakhstan|KZ"
|
filter: "(?i)Kazakhstan|KZ"
|
||||||
<<: [*np_vpn_list_selector, *health_check_for_selectors]
|
<<: [*np_vpn_list_selector, *health_check_for_selectors]
|
||||||
|
|
||||||
|
- name: 🔢 Russian 🌍
|
||||||
|
disable-udp: false
|
||||||
|
filter: "(?i)Russia"
|
||||||
|
<<: [*np_vpn_list_selector, *health_check_for_selectors]
|
||||||
|
|
||||||
|
- name: 🔢 USA 🌍
|
||||||
|
disable-udp: false
|
||||||
|
filter: "(?i)USA|Canada"
|
||||||
|
<<: [*np_vpn_list_selector, *health_check_for_selectors]
|
||||||
|
|
||||||
- name: 🔢 All non-personal
|
- name: 🔢 All non-personal
|
||||||
disable-udp: false
|
disable-udp: false
|
||||||
filter: ""
|
filter: ""
|
||||||
<<: [*np_vpn_list_selector, *health_check_for_selectors]
|
<<: [*np_vpn_list_selector, *health_check_for_selectors]
|
||||||
|
|
||||||
|
- name: 🔢 Fast Servers
|
||||||
|
disable-udp: false
|
||||||
|
filter: "(?i)10 Gbit|10Gbit"
|
||||||
|
<<: [*np_vpn_list_selector, *health_check_for_selectors]
|
||||||
|
|
||||||
- name: 🔢 Gaming
|
- name: 🔢 Gaming
|
||||||
disable-udp: false
|
disable-udp: false
|
||||||
filter: "(?i)game"
|
filter: "(?i)game"
|
||||||
@@ -365,21 +356,17 @@ proxy-groups:
|
|||||||
filter: "(?i)TOR✅"
|
filter: "(?i)TOR✅"
|
||||||
<<: [*np_vpn_list_selector, *health_check_for_selectors]
|
<<: [*np_vpn_list_selector, *health_check_for_selectors]
|
||||||
|
|
||||||
- name: 🔢 Fast Servers
|
|
||||||
disable-udp: false
|
|
||||||
filter: "(?i)10 Gbit|10Gbit"
|
|
||||||
<<: [*np_vpn_list_selector, *health_check_for_selectors]
|
|
||||||
|
|
||||||
# ——————— selectors for local rules ——————
|
# ——————— selectors for local rules ——————
|
||||||
- name: ✳️ YouTube
|
- name: ✳️ YouTube
|
||||||
type: select
|
type: select
|
||||||
proxies:
|
proxies:
|
||||||
- 🔢 Russian
|
- 🔢 Russian 🌍
|
||||||
- 🔢 Personal VPN
|
- 🔢 Personal VPN
|
||||||
- 🔢 Europe
|
- 🔢 Europe 🌍
|
||||||
- ⌚ Europe
|
- ⌚ Europe 🌍
|
||||||
- ⚖️ Europe
|
- ⚖️ Europe 🌍
|
||||||
- ⚖️ Russian
|
- ⚖️ Russian 🌍
|
||||||
- ⚖️ Personal VPN
|
- ⚖️ Personal VPN
|
||||||
<<: *health_check_for_selectors
|
<<: *health_check_for_selectors
|
||||||
|
|
||||||
@@ -388,11 +375,11 @@ proxy-groups:
|
|||||||
proxies:
|
proxies:
|
||||||
- 🔢 Fast Servers
|
- 🔢 Fast Servers
|
||||||
- 🔢 Personal VPN
|
- 🔢 Personal VPN
|
||||||
- 🔢 Europe
|
- 🔢 Europe 🌍
|
||||||
- ⌚ Europe
|
- ⌚ Europe 🌍
|
||||||
- ⚖️ Fast Servers
|
- ⚖️ Fast Servers
|
||||||
- ⚖️ Personal VPN
|
- ⚖️ Personal VPN
|
||||||
- ⚖️ Europe
|
- ⚖️ Europe 🌍
|
||||||
<<: *health_check_for_selectors
|
<<: *health_check_for_selectors
|
||||||
|
|
||||||
- name: ✳️ Antifilter
|
- name: ✳️ Antifilter
|
||||||
@@ -400,11 +387,11 @@ proxy-groups:
|
|||||||
proxies:
|
proxies:
|
||||||
- 🔢 Fast Servers
|
- 🔢 Fast Servers
|
||||||
- 🔢 Personal VPN
|
- 🔢 Personal VPN
|
||||||
- 🔢 Europe
|
- 🔢 Europe 🌍
|
||||||
- ⌚ Europe
|
- ⌚ Europe 🌍
|
||||||
- ⚖️ Fast Servers
|
- ⚖️ Fast Servers
|
||||||
- ⚖️ Personal VPN
|
- ⚖️ Personal VPN
|
||||||
- ⚖️ Europe
|
- ⚖️ Europe 🌍
|
||||||
<<: *health_check_for_selectors
|
<<: *health_check_for_selectors
|
||||||
|
|
||||||
- name: ✳️ Discord
|
- name: ✳️ Discord
|
||||||
@@ -413,20 +400,20 @@ proxy-groups:
|
|||||||
proxies:
|
proxies:
|
||||||
- 🔢 Fast Servers
|
- 🔢 Fast Servers
|
||||||
- 🔢 Personal VPN
|
- 🔢 Personal VPN
|
||||||
- 🔢 Europe
|
- 🔢 Europe 🌍
|
||||||
- ⌚ Europe
|
- ⌚ Europe 🌍
|
||||||
- ⚖️ Fast Servers
|
- ⚖️ Fast Servers
|
||||||
- ⚖️ Personal VPN
|
- ⚖️ Personal VPN
|
||||||
- ⚖️ Europe
|
- ⚖️ Europe 🌍
|
||||||
<<: *health_check_for_selectors
|
<<: *health_check_for_selectors
|
||||||
|
|
||||||
- name: ✳️ USA Services
|
- name: ✳️ USA Services
|
||||||
type: select
|
type: select
|
||||||
disable-udp: false
|
disable-udp: false
|
||||||
proxies:
|
proxies:
|
||||||
- 🔢 USA
|
- 🔢 USA 🌍
|
||||||
- 🔢 Personal VPN
|
- 🔢 Personal VPN
|
||||||
- ⚖️ USA
|
- ⚖️ USA 🌍
|
||||||
- ⚖️ Personal VPN
|
- ⚖️ Personal VPN
|
||||||
<<: *health_check_for_selectors
|
<<: *health_check_for_selectors
|
||||||
|
|
||||||
@@ -434,37 +421,37 @@ proxy-groups:
|
|||||||
type: select
|
type: select
|
||||||
proxies:
|
proxies:
|
||||||
- 🔢 Personal VPN
|
- 🔢 Personal VPN
|
||||||
- 🔢 Europe
|
- 🔢 Europe 🌍
|
||||||
- ⌚ Europe
|
- ⌚ Europe 🌍
|
||||||
- ⚖️ Personal VPN
|
- ⚖️ Personal VPN
|
||||||
- ⚖️ Europe
|
- ⚖️ Europe 🌍
|
||||||
<<: *health_check_for_selectors
|
<<: *health_check_for_selectors
|
||||||
|
|
||||||
- name: ✳️ AI Stuff (Western)
|
- name: ✳️ AI Stuff (Western)
|
||||||
type: select
|
type: select
|
||||||
proxies:
|
proxies:
|
||||||
- 🔢 Personal VPN
|
- 🔢 Personal VPN
|
||||||
- 🔢 Europe
|
- 🔢 Europe 🌍
|
||||||
- ⌚ Europe
|
- ⌚ Europe 🌍
|
||||||
- ⚖️ Personal VPN
|
- ⚖️ Personal VPN
|
||||||
- ⚖️ Europe
|
- ⚖️ Europe 🌍
|
||||||
<<: *health_check_for_selectors
|
<<: *health_check_for_selectors
|
||||||
|
|
||||||
- name: ✳️ Testzone A
|
- name: ✳️ Testzone A
|
||||||
type: select
|
type: select
|
||||||
proxies:
|
proxies:
|
||||||
- 🔢 All non-personal
|
- 🔢 All non-personal
|
||||||
- 🔢 Russian
|
- 🔢 Russian 🌍
|
||||||
- 🔢 Europe
|
- 🔢 Europe 🌍
|
||||||
- 🔢 USA
|
- 🔢 USA 🌍
|
||||||
- 🔢 Asia
|
- 🔢 Asia 🌍
|
||||||
- 🔢 Kazakhstan
|
- 🔢 Kazakhstan 🌍
|
||||||
- 🔢 Personal VPN
|
- 🔢 Personal VPN
|
||||||
- ⌚ Europe
|
- ⌚ Europe 🌍
|
||||||
- ⚖️ Russian
|
- ⚖️ Russian 🌍
|
||||||
- ⚖️ Europe
|
- ⚖️ Europe 🌍
|
||||||
- ⚖️ USA
|
- ⚖️ USA 🌍
|
||||||
- ⚖️ Asia
|
- ⚖️ Asia 🌍
|
||||||
- ⚖️ Fast Servers
|
- ⚖️ Fast Servers
|
||||||
- ⚖️ Personal VPN
|
- ⚖️ Personal VPN
|
||||||
<<: *health_check_for_selectors
|
<<: *health_check_for_selectors
|
||||||
|
|||||||
25
scripts/iptables-clash-setup.sh
Normal file
25
scripts/iptables-clash-setup.sh
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Очистка старой цепочки
|
||||||
|
iptables -t nat -F CLASH_REDIR 2>/dev/null
|
||||||
|
iptables -t nat -X CLASH_REDIR 2>/dev/null
|
||||||
|
|
||||||
|
# Создание пользовательской цепочки
|
||||||
|
iptables -t nat -N CLASH_REDIR
|
||||||
|
|
||||||
|
# Исключаем loopback и локальные подсети
|
||||||
|
iptables -t nat -A CLASH_REDIR -d 127.0.0.0/8 -j RETURN
|
||||||
|
iptables -t nat -A CLASH_REDIR -d 10.0.0.0/8 -j RETURN
|
||||||
|
iptables -t nat -A CLASH_REDIR -d 172.16.0.0/12 -j RETURN
|
||||||
|
iptables -t nat -A CLASH_REDIR -d 192.168.0.0/16 -j RETURN
|
||||||
|
|
||||||
|
# Всё остальное TCP → REDIRECT на Clash
|
||||||
|
iptables -t nat -A CLASH_REDIR -p tcp -j REDIRECT --to-ports 7892
|
||||||
|
|
||||||
|
# Исключаем трафик Clash по UID
|
||||||
|
iptables -t nat -C OUTPUT -m owner --uid-owner clash -j RETURN 2>/dev/null || \
|
||||||
|
iptables -t nat -I OUTPUT -m owner --uid-owner clash -j RETURN
|
||||||
|
|
||||||
|
# Применяем CLASH_REDIR ко всем TCP
|
||||||
|
iptables -t nat -C OUTPUT -p tcp -j CLASH_REDIR 2>/dev/null || \
|
||||||
|
iptables -t nat -A OUTPUT -p tcp -j CLASH_REDIR
|
||||||
Reference in New Issue
Block a user