From f3f5bca55541823791952b5200cce45e75ca8385 Mon Sep 17 00:00:00 2001 From: itdoginfo Date: Fri, 29 Aug 2025 15:02:43 +0300 Subject: [PATCH] Add HODCA, CloudFront, DO --- .../luci-static/resources/view/podkop/constants.js | 10 ++++++++-- podkop/files/usr/bin/podkop | 10 +++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/constants.js b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/constants.js index cf654b5..756f5b5 100644 --- a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/constants.js +++ b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/constants.js @@ -21,7 +21,10 @@ const ALLOWED_WITH_RUSSIA_INSIDE = [ 'google_ai', 'google_play', 'hetzner', - 'ovh' + 'ovh', + 'hodca', + 'digitalocean', + 'cloudfront' ]; const DOMAIN_LIST_OPTIONS = { @@ -43,8 +46,11 @@ const DOMAIN_LIST_OPTIONS = { cloudflare: 'Cloudflare', google_ai: 'Google AI', google_play: 'Google Play', + hodca: 'H.O.D.C.A', hetzner: 'Hetzner ASN', - ovh: 'OVH ASN' + ovh: 'OVH ASN', + digitalocean: 'Digital Ocean ASN', + cloudfront: 'CloudFront ASN' }; const UPDATE_INTERVAL_OPTIONS = { diff --git a/podkop/files/usr/bin/podkop b/podkop/files/usr/bin/podkop index 551a075..79bd5d2 100755 --- a/podkop/files/usr/bin/podkop +++ b/podkop/files/usr/bin/podkop @@ -19,9 +19,11 @@ SUBNETS_TELERAM="${GITHUB_RAW_URL}/Subnets/IPv4/telegram.lst" SUBNETS_CLOUDFLARE="${GITHUB_RAW_URL}/Subnets/IPv4/cloudflare.lst" SUBNETS_HETZNER="${GITHUB_RAW_URL}/Subnets/IPv4/hetzner.lst" SUBNETS_OVH="${GITHUB_RAW_URL}/Subnets/IPv4/ovh.lst" +SUBNETS_DIGITALOCEAN="${GITHUB_RAW_URL}/Subnets/IPv4/digitalocean.lst" +SUBNETS_CLOUDFRONT="${GITHUB_RAW_URL}/Subnets/IPv4/cloudfront.lst" SING_BOX_CONFIG="/etc/sing-box/config.json" FAKEIP="198.18.0.0/15" -VALID_SERVICES="russia_inside russia_outside ukraine_inside geoblock block porn news anime youtube discord meta twitter hdrezka tiktok telegram cloudflare google_ai google_play hetzner ovh" +VALID_SERVICES="russia_inside russia_outside ukraine_inside geoblock block porn news anime youtube discord meta twitter hdrezka tiktok telegram cloudflare google_ai google_play hetzner ovh hodca digitalocean cloudfront" DNS_RESOLVERS="1.1.1.1 1.0.0.1 8.8.8.8 8.8.4.4 9.9.9.9 9.9.9.11 94.140.14.14 94.140.15.15 208.67.220.220 208.67.222.222 77.88.8.1 77.88.8.8" TEST_DOMAIN="fakeip.podkop.fyi" INTERFACES_LIST="" @@ -1868,6 +1870,12 @@ import_community_service_subnet_list_handler() { "ovh") URL=$SUBNETS_OVH ;; + "digitalocean") + URL=$SUBNETS_DIGITALOCEAN + ;; + "cloudfront") + URL=$SUBNETS_CLOUDFRONT + ;; "discord") URL=$SUBNETS_DISCORD nft add set inet $table podkop_discord_subnets { type ipv4_addr\; flags interval\; auto-merge\; }