From 8859a10663a4e45b49bd41696ece052701b87a79 Mon Sep 17 00:00:00 2001 From: DaTekShaman Date: Mon, 23 Jun 2025 16:38:25 +0300 Subject: [PATCH 1/5] New icons --- icons/svg/antifilter.svg | 5 ++++ icons/svg/apple-1.svg | 18 +++++++++++ icons/svg/apple-2.svg | 65 ++++++++++++++++++++++++++++++++++++++++ icons/svg/google.svg | 28 +++++++++++++++++ icons/svg/netflix.svg | 32 ++++++++++++++++++++ icons/svg/notion.svg | 2 ++ icons/svg/torrent.svg | 15 ++++++++++ 7 files changed, 165 insertions(+) create mode 100644 icons/svg/antifilter.svg create mode 100644 icons/svg/apple-1.svg create mode 100644 icons/svg/apple-2.svg create mode 100644 icons/svg/google.svg create mode 100644 icons/svg/netflix.svg create mode 100644 icons/svg/notion.svg create mode 100644 icons/svg/torrent.svg diff --git a/icons/svg/antifilter.svg b/icons/svg/antifilter.svg new file mode 100644 index 0000000..1207714 --- /dev/null +++ b/icons/svg/antifilter.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/icons/svg/apple-1.svg b/icons/svg/apple-1.svg new file mode 100644 index 0000000..596b71a --- /dev/null +++ b/icons/svg/apple-1.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/icons/svg/apple-2.svg b/icons/svg/apple-2.svg new file mode 100644 index 0000000..5179911 --- /dev/null +++ b/icons/svg/apple-2.svg @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/icons/svg/google.svg b/icons/svg/google.svg new file mode 100644 index 0000000..b26d4a4 --- /dev/null +++ b/icons/svg/google.svg @@ -0,0 +1,28 @@ + + + + + Google-color + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/icons/svg/netflix.svg b/icons/svg/netflix.svg new file mode 100644 index 0000000..5930142 --- /dev/null +++ b/icons/svg/netflix.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/icons/svg/notion.svg b/icons/svg/notion.svg new file mode 100644 index 0000000..b64c180 --- /dev/null +++ b/icons/svg/notion.svg @@ -0,0 +1,2 @@ + +Notion icon \ No newline at end of file diff --git a/icons/svg/torrent.svg b/icons/svg/torrent.svg new file mode 100644 index 0000000..3c9ca57 --- /dev/null +++ b/icons/svg/torrent.svg @@ -0,0 +1,15 @@ + + + + + + + + + \ No newline at end of file From 1fd27fe36eb0dcccea332eca29a2905bc0a3b6f1 Mon Sep 17 00:00:00 2001 From: DaTekShaman Date: Tue, 8 Jul 2025 21:00:56 +0300 Subject: [PATCH 2/5] Updates --- config/dts-pontifex.yaml | 48 ++++++++++++++--------------- rule-provider/ai-stuff-western.yaml | 4 +++ rule-provider/testzone-a.yaml | 4 ++- 3 files changed, 31 insertions(+), 25 deletions(-) diff --git a/config/dts-pontifex.yaml b/config/dts-pontifex.yaml index fc25fcc..5ea1b2b 100644 --- a/config/dts-pontifex.yaml +++ b/config/dts-pontifex.yaml @@ -445,6 +445,29 @@ proxy-groups: - βš–οΈ Personal VPN <<: *health_check_for_selectors + - name: ✳️ Discord + type: select + disable-udp: false + proxies: + - πŸ”’ Fast Servers + - πŸ”’ Personal VPN + - πŸ”’ Europe 🌍 + - ⌚ Europe 🌍 + - βš–οΈ Fast Servers + - βš–οΈ Personal VPN + - βš–οΈ Europe 🌍 + <<: *health_check_for_selectors + + - name: ✳️ USA Services + type: select + disable-udp: false + proxies: + - πŸ”’ USA 🌍 + - πŸ”’ Personal VPN + - βš–οΈ USA 🌍 + - βš–οΈ Personal VPN + <<: *health_check_for_selectors + - name: ✳️ Adaptaion type: select proxies: @@ -469,30 +492,7 @@ proxy-groups: - βš–οΈ Europe 🌍 <<: *health_check_for_selectors - - name: ✳️ Discord - type: select - disable-udp: false - proxies: - - πŸ”’ Fast Servers - - πŸ”’ Personal VPN - - πŸ”’ Europe 🌍 - - ⌚ Europe 🌍 - - βš–οΈ Fast Servers - - βš–οΈ Personal VPN - - βš–οΈ Europe 🌍 - <<: *health_check_for_selectors - - - name: ✳️ USA Services - type: select - disable-udp: false - proxies: - - πŸ”’ USA 🌍 - - πŸ”’ Personal VPN - - βš–οΈ USA 🌍 - - βš–οΈ Personal VPN - <<: *health_check_for_selectors - - - name: ✳️ Notion +- name: ✳️ Notion type: select proxies: - πŸ”’ Personal VPN diff --git a/rule-provider/ai-stuff-western.yaml b/rule-provider/ai-stuff-western.yaml index 707f489..3330b6c 100644 --- a/rule-provider/ai-stuff-western.yaml +++ b/rule-provider/ai-stuff-western.yaml @@ -50,6 +50,10 @@ payload: - IP-CIDR,64.23.132.171/32 - IP-ASN,20473 + # > DeepL + - DOMAIN-SUFFIX,deepl.com + - IP-ASN,60550 + # > ChatGPT - DOMAIN-SUFFIX,ai.com - DOMAIN-SUFFIX,chatgpt.com diff --git a/rule-provider/testzone-a.yaml b/rule-provider/testzone-a.yaml index ff9a4f3..81a48dd 100644 --- a/rule-provider/testzone-a.yaml +++ b/rule-provider/testzone-a.yaml @@ -1,3 +1,5 @@ payload: - DOMAIN-SUFFIX,ifconfig.me - - DOMAIN-SUFFIX,ipinfo.io \ No newline at end of file + - DOMAIN-SUFFIX,ipinfo.io + - DOMAIN-SUFFIX,pervertium.com + - DOMAIN-SUFFIX,tubesafari.com \ No newline at end of file From 5374bf9cc1ad9aed4dac5da7a065df4d3f44baa9 Mon Sep 17 00:00:00 2001 From: DaTekShaman Date: Sat, 19 Jul 2025 14:20:31 +0300 Subject: [PATCH 3/5] Update configs --- config/solar-clash-mix.yaml | 173 +++++++++++++++----------------- scripts/iptables-clash-setup.sh | 25 +++++ 2 files changed, 105 insertions(+), 93 deletions(-) create mode 100644 scripts/iptables-clash-setup.sh diff --git a/config/solar-clash-mix.yaml b/config/solar-clash-mix.yaml index 6a5f376..a008f3a 100644 --- a/config/solar-clash-mix.yaml +++ b/config/solar-clash-mix.yaml @@ -117,15 +117,6 @@ dns: # '+.internal.crop.com': '10.0.0.1' # β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” tun β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” -tun: - enable: true - stack: mixed - device: utun - auto-route: true - auto-detect-interface: true - dns-hijack: - - any:53 - # β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” macro β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” health-check-for-providers: &health_check_for_providers enable: true @@ -145,24 +136,14 @@ tun: behavior: classical interval: 86400 - private-vpn-list: &private_vpn_list - - vless-estonia - - vless-serbia - p-vpn-list_balancer: &p_vpn_list_balancer type: load-balance strategy: sticky-sessions - proxies: - - vless-estonia - - vless-serbia use: - own p-vpn-list_selector: &p_vpn_list_selector type: select - proxies: - - vless-estonia - - vless-serbia use: - own @@ -192,8 +173,6 @@ tun: default-private-proxies-lb-selector: &default_private_proxies_lb_selector type: select proxies: - - vless-estonia - - vless-serbia - βš–οΈ Personal VPN # β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” proxies list β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” @@ -261,6 +240,7 @@ proxy-providers: additional-suffix: "‒𝓾" health-check: <<: *health_check_for_providers + # β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” proxy groups β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” proxy-groups: # β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” fallback β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” @@ -276,43 +256,49 @@ proxy-groups: - name: βš–οΈ Personal VPN disable-udp: false <<: [*p_vpn_list_balancer, *health_check_for_load_balancers] - + # β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” url tested for non-personal vpn β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” - - name: ⌚ Europe + - name: ⌚ Europe 🌍 disable-udp: false filter: "(?i)NL|Finland|Estonia|France|Germany|Sweden|Ireland" <<: [*np_vpn_list_url_test, *health_check_for_load_balancers] # β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” load balancers for non-personal vpn β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” - - name: βš–οΈ Russian - 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 + - name: βš–οΈ Asia 🌍 disable-udp: false filter: "(?i)Hong Kong|China|Malaysia|Philippines|Japan|Singapore" <<: [*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 disable-udp: false filter: "(?i)10 Gbit" <<: [*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 disable-udp: false filter: "(?i)Low Ping" <<: [*np_vpn_list_balancer, *health_check_for_load_balancers] + hidden: true # β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” global selectors for personal vpn β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” - name: πŸ”’ Personal VPN @@ -320,36 +306,41 @@ proxy-groups: <<: [*p_vpn_list_selector, *health_check_for_selectors] # β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” global selectors for non-personal vpn β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” - - name: πŸ”’ Russian - 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 + - name: πŸ”’ Asia 🌍 disable-udp: false filter: "(?i)Hong Kong|China|Malaysia|Philippines|Japan|Singapore" <<: [*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 filter: "(?i)Kazakhstan|KZ" <<: [*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 disable-udp: false filter: "" <<: [*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 disable-udp: false filter: "(?i)game" @@ -365,21 +356,17 @@ proxy-groups: filter: "(?i)TORβœ…" <<: [*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 β€”β€”β€”β€”β€”β€” - name: ✳️ YouTube type: select proxies: - - πŸ”’ Russian + - πŸ”’ Russian 🌍 - πŸ”’ Personal VPN - - πŸ”’ Europe - - ⌚ Europe - - βš–οΈ Europe - - βš–οΈ Russian + - πŸ”’ Europe 🌍 + - ⌚ Europe 🌍 + - βš–οΈ Europe 🌍 + - βš–οΈ Russian 🌍 - βš–οΈ Personal VPN <<: *health_check_for_selectors @@ -388,11 +375,11 @@ proxy-groups: proxies: - πŸ”’ Fast Servers - πŸ”’ Personal VPN - - πŸ”’ Europe - - ⌚ Europe + - πŸ”’ Europe 🌍 + - ⌚ Europe 🌍 - βš–οΈ Fast Servers - βš–οΈ Personal VPN - - βš–οΈ Europe + - βš–οΈ Europe 🌍 <<: *health_check_for_selectors - name: ✳️ Antifilter @@ -400,11 +387,11 @@ proxy-groups: proxies: - πŸ”’ Fast Servers - πŸ”’ Personal VPN - - πŸ”’ Europe - - ⌚ Europe + - πŸ”’ Europe 🌍 + - ⌚ Europe 🌍 - βš–οΈ Fast Servers - βš–οΈ Personal VPN - - βš–οΈ Europe + - βš–οΈ Europe 🌍 <<: *health_check_for_selectors - name: ✳️ Discord @@ -413,20 +400,20 @@ proxy-groups: proxies: - πŸ”’ Fast Servers - πŸ”’ Personal VPN - - πŸ”’ Europe - - ⌚ Europe + - πŸ”’ Europe 🌍 + - ⌚ Europe 🌍 - βš–οΈ Fast Servers - βš–οΈ Personal VPN - - βš–οΈ Europe + - βš–οΈ Europe 🌍 <<: *health_check_for_selectors - name: ✳️ USA Services type: select disable-udp: false proxies: - - πŸ”’ USA + - πŸ”’ USA 🌍 - πŸ”’ Personal VPN - - βš–οΈ USA + - βš–οΈ USA 🌍 - βš–οΈ Personal VPN <<: *health_check_for_selectors @@ -434,37 +421,37 @@ proxy-groups: type: select proxies: - πŸ”’ Personal VPN - - πŸ”’ Europe - - ⌚ Europe + - πŸ”’ Europe 🌍 + - ⌚ Europe 🌍 - βš–οΈ Personal VPN - - βš–οΈ Europe + - βš–οΈ Europe 🌍 <<: *health_check_for_selectors - name: ✳️ AI Stuff (Western) type: select proxies: - πŸ”’ Personal VPN - - πŸ”’ Europe - - ⌚ Europe + - πŸ”’ Europe 🌍 + - ⌚ Europe 🌍 - βš–οΈ Personal VPN - - βš–οΈ Europe + - βš–οΈ Europe 🌍 <<: *health_check_for_selectors - name: ✳️ Testzone A type: select proxies: - πŸ”’ All non-personal - - πŸ”’ Russian - - πŸ”’ Europe - - πŸ”’ USA - - πŸ”’ Asia - - πŸ”’ Kazakhstan + - πŸ”’ Russian 🌍 + - πŸ”’ Europe 🌍 + - πŸ”’ USA 🌍 + - πŸ”’ Asia 🌍 + - πŸ”’ Kazakhstan 🌍 - πŸ”’ Personal VPN - - ⌚ Europe - - βš–οΈ Russian - - βš–οΈ Europe - - βš–οΈ USA - - βš–οΈ Asia + - ⌚ Europe 🌍 + - βš–οΈ Russian 🌍 + - βš–οΈ Europe 🌍 + - βš–οΈ USA 🌍 + - βš–οΈ Asia 🌍 - βš–οΈ Fast Servers - βš–οΈ Personal VPN <<: *health_check_for_selectors diff --git a/scripts/iptables-clash-setup.sh b/scripts/iptables-clash-setup.sh new file mode 100644 index 0000000..6e475c2 --- /dev/null +++ b/scripts/iptables-clash-setup.sh @@ -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 \ No newline at end of file From ddc354a9196c7117f453d7349e2268bfd433e551 Mon Sep 17 00:00:00 2001 From: DaTekShaman Date: Sat, 19 Jul 2025 20:59:51 +0300 Subject: [PATCH 4/5] Updated services --- systemd-units/mihomo-iptables.service | 12 ++++++++++++ systemd-units/mihomo.service | 18 ++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 systemd-units/mihomo-iptables.service create mode 100644 systemd-units/mihomo.service diff --git a/systemd-units/mihomo-iptables.service b/systemd-units/mihomo-iptables.service new file mode 100644 index 0000000..90a6809 --- /dev/null +++ b/systemd-units/mihomo-iptables.service @@ -0,0 +1,12 @@ +[Unit] +Description=Mihomo iptables rules fixer +After=network.target +Before=mihomo.service + +[Service] +Type=oneshot +ExecStart=/usr/local/bin/iptables-clash-setup.sh +RemainAfterExit=true + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/systemd-units/mihomo.service b/systemd-units/mihomo.service new file mode 100644 index 0000000..767f8e0 --- /dev/null +++ b/systemd-units/mihomo.service @@ -0,0 +1,18 @@ +[Unit] +Description=Mihomo Daemon, Another Clash Kernel. +After=network.target NetworkManager.service systemd-networkd.service iwd.service + +[Service] +User=clash +Type=simple +LimitNPROC=500 +LimitNOFILE=1000000 +CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SYS_TIME CAP_SYS_PTRACE CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE +AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SYS_TIME CAP_SYS_PTRACE CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE +Restart=always +ExecStartPre=/usr/bin/sleep 1s +ExecStart=/usr/local/bin/mihomo -d /etc/clash +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target From d4ba4ccf0196a1c492dbc20ea145c1009da0e33b Mon Sep 17 00:00:00 2001 From: DaTekShaman Date: Sat, 19 Jul 2025 22:00:49 +0300 Subject: [PATCH 5/5] Updated iptables --- scripts/iptables-clash-setup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/iptables-clash-setup.sh b/scripts/iptables-clash-setup.sh index 6e475c2..deecfc2 100644 --- a/scripts/iptables-clash-setup.sh +++ b/scripts/iptables-clash-setup.sh @@ -3,6 +3,8 @@ # ΠžΡ‡ΠΈΡΡ‚ΠΊΠ° старой Ρ†Π΅ΠΏΠΎΡ‡ΠΊΠΈ iptables -t nat -F CLASH_REDIR 2>/dev/null iptables -t nat -X CLASH_REDIR 2>/dev/null +iptables -t nat -F OUTPUT 2>/dev/null +iptables -t nat -X OUTPUT 2>/dev/null # Π‘ΠΎΠ·Π΄Π°Π½ΠΈΠ΅ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒΡΠΊΠΎΠΉ Ρ†Π΅ΠΏΠΎΡ‡ΠΊΠΈ iptables -t nat -N CLASH_REDIR @@ -22,4 +24,7 @@ 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 \ No newline at end of file +iptables -t nat -A OUTPUT -p tcp -j CLASH_REDIR + +iptables -t nat -C PREROUTING -i wt0 -p tcp -j REDIRECT --to-port 7892 2>/dev/null || \ +iptables -t nat -A PREROUTING -i wt0 -p tcp -j REDIRECT --to-port 7892 \ No newline at end of file