{
  "input": [
    {
      "type": "maxmindGeoLite2CountryCSV",
      "action": "add",
      "args": {
        "country": "geolite2/GeoLite2-Country-Locations-en.csv",
        "ipv4": "geolite2/GeoLite2-Country-Blocks-IPv4.csv",
        "ipv6": "geolite2/GeoLite2-Country-Blocks-IPv6.csv"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "inputDir": "./ip2location"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "ir",
        "uri": "./messengers-ip.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "ir",
        "uri": "./ir-cdn/arvancloud.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "ir",
        "uri": "./ir-cdn/derakcloud.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "ir",
        "uri": "./ir-cdn/iranserver.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "ir",
        "uri": "./ir-cdn/parspack.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "inputDir": "./ir-cdn"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "ir",
        "ipOrCIDR": [
          "10.202.10.102",
          "10.202.10.202",
          "10.202.10.10",
          "10.202.10.11",
          "172.29.0.100",
          "172.29.2.100"
        ]
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "irgfw-block-injected-ips",
        "ipOrCIDR": [
          "10.10.34.0/24",
          "2001:4188:2:600:10:10:34:34",
          "2001:4188:2:600:10:10:34:35",
          "2001:4188:2:600:10:10:34:36"
        ]
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "irgfw-other-injected-ips",
        "ipOrCIDR": [
          "216.239.38.120",
          "216.239.38.119",
          "2001:4860:4802:32::78",
          "2001:4860:4802:32::77",
          "93.115.151.123",
          "87.107.132.83",
          "52.250.41.2",
          "213.180.193.56",
          "204.79.197.220",
          "185.130.45.94",
          "162.62.116.251",
          "162.62.115.144"
        ]
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "irgfw-all-injected-ips",
        "ipOrCIDR": [
          "10.10.34.0/24",
          "2001:4188:2:600:10:10:34:34",
          "2001:4188:2:600:10:10:34:35",
          "2001:4188:2:600:10:10:34:36",
          "216.239.38.120",
          "216.239.38.119",
          "2001:4860:4802:32::78",
          "2001:4860:4802:32::77",
          "93.115.151.123",
          "87.107.132.83",
          "52.250.41.2",
          "213.180.193.56",
          "204.79.197.220",
          "185.130.45.94",
          "162.62.116.251",
          "162.62.115.144"
        ]
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "tor",
        "uri": "https://check.torproject.org/torbulkexitlist"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "cloudflare",
        "uri": "https://www.cloudflare.com/ips-v4"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "cloudflare",
        "uri": "https://www.cloudflare.com/ips-v6"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "telegram",
        "uri": "https://core.telegram.org/resources/cidr.txt"
      }
    },
    {
      "type": "json",
      "action": "add",
      "args": {
        "name": "google",
        "uri": "https://www.gstatic.com/ipranges/goog.json",
        "jsonPath": ["prefixes.#.ipv4Prefix", "prefixes.#.ipv6Prefix"]
      }
    },
    {
      "type": "json",
      "action": "add",
      "args": {
        "name": "google",
        "uri": "https://www.gstatic.com/ipranges/cloud.json",
        "jsonPath": ["prefixes.#.ipv4Prefix", "prefixes.#.ipv6Prefix"]
      }
    },
    {
      "type": "json",
      "action": "add",
      "args": {
        "name": "fastly",
        "uri": "https://api.fastly.com/public-ip-list",
        "jsonPath": ["addresses", "ipv6_addresses"]
      }
    },
    {
      "type": "json",
      "action": "add",
      "args": {
        "name": "cloudfront",
        "uri": "https://ip-ranges.amazonaws.com/ip-ranges.json",
        "jsonPath": [
          "prefixes.#(service==\"CLOUDFRONT\")#.ip_prefix",
          "ipv6_prefixes.#(service==\"CLOUDFRONT\")#.ipv6_prefix"
        ]
      }
    },
    {
      "type": "json",
      "action": "add",
      "args": {
        "name": "gcore",
        "uri": "https://api.gcore.com/cdn/public-ip-list",
        "jsonPath": ["addresses", "addresses_v6"]
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "amazon",
        "uri": "./ipranges/amazon/ipv4_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "amazon",
        "uri": "./ipranges/amazon/ipv6_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "microsoft",
        "uri": "./ipranges/microsoft/ipv4_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "microsoft",
        "uri": "./ipranges/microsoft/ipv6_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "bing",
        "uri": "./ipranges/bing/ipv4_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "github",
        "uri": "./ipranges/github/ipv4_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "github",
        "uri": "./ipranges/github/ipv6_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "facebook",
        "uri": "./ipranges/facebook/ipv4_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "facebook",
        "uri": "./ipranges/facebook/ipv6_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "twitter",
        "uri": "./ipranges/twitter/ipv4_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "twitter",
        "uri": "./ipranges/twitter/ipv6_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "oracle",
        "uri": "./ipranges/oracle/ipv4_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "digitalocean",
        "uri": "./ipranges/digitalocean/ipv4_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "digitalocean",
        "uri": "./ipranges/digitalocean/ipv6_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "linode",
        "uri": "./ipranges/linode/ipv4_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "linode",
        "uri": "./ipranges/linode/ipv6_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "openai",
        "uri": "./ipranges/openai/ipv4_merged.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "phishing",
        "uri": "./phishing-ip.txt"
      }
    },
    {
      "type": "text",
      "action": "add",
      "args": {
        "name": "malware",
        "uri": "./malware-ip.txt"
      }
    },
    {
      "type": "maxmindGeoLite2ASNCSV",
      "action": "add",
      "args": {
        "ipv4": "geolite2/GeoLite2-ASN-Blocks-IPv4.csv",
        "ipv6": "geolite2/GeoLite2-ASN-Blocks-IPv6.csv",
        "wantedList": {
          "cloudflare": [
            "AS395747",
            "AS394536",
            "AS209242",
            "AS203898",
            "AS202623",
            "AS14789",
            "AS139242",
            "AS133877",
            "AS13335",
            "AS132892"
          ],
          "facebook": ["AS63293", "AS54115", "AS32934"],
          "fastly": ["AS54113", "AS394192"],
          "gcore": ["199524", "202422"],
          "google": [
            "AS6432",
            "AS55023",
            "AS45566",
            "AS43515",
            "AS41264",
            "AS40873",
            "AS396982",
            "AS395973",
            "AS394699",
            "AS394639",
            "AS394507",
            "AS36987",
            "AS36492",
            "AS36385",
            "AS36384",
            "AS36040",
            "AS36039",
            "AS26910",
            "AS26684",
            "AS22859",
            "AS22577",
            "AS19527",
            "AS19448",
            "AS19425",
            "AS16591",
            "AS16550",
            "AS15169",
            "AS13949",
            "AS139190",
            "AS139070"
          ],
          "netflix": ["AS55095", "AS40027", "AS394406", "AS2906"],
          "telegram": ["AS62041", "AS62014", "AS59930", "AS44907", "AS211157"],
          "twitter": ["AS8945", "AS63179", "AS54888", "AS35995", "AS13414"]
        }
      }
    },
    {
      "type": "private",
      "action": "add"
    }
  ],
  "output": [
    {
      "type": "v2rayGeoIPDat",
      "action": "output",
      "args": {
        "outputName": "geoip.dat"
      }
    },
    {
      "type": "v2rayGeoIPDat",
      "action": "output",
      "args": {
        "outputName": "geoip-lite.dat",
        "wantedList": [
          "ir",
          "irgfw-block-injected-ips",
          "irgfw-other-injected-ips",
          "irgfw-all-injected-ips",
          "private"
        ]
      }
    },
    {
      "type": "v2rayGeoIPDat",
      "action": "output",
      "args": {
        "outputName": "geoip-services.dat",
        "wantedList": [
          "amazon",
          "arvancloud",
          "bing",
          "cloudflare",
          "cloudfront",
          "derakcloud",
          "digitalocean",
          "facebook",
          "fastly",
          "gcore",
          "github",
          "google",
          "iranserver",
          "linode",
          "microsoft",
          "netflix",
          "openai",
          "oracle",
          "parspack",
          "telegram",
          "tor",
          "twitter"
        ]
      }
    },
    {
      "type": "v2rayGeoIPDat",
      "action": "output",
      "args": {
        "outputName": "security-ip.dat",
        "wantedList": ["phishing", "malware"]
      }
    },
    {
      "type": "maxmindMMDB",
      "action": "output",
      "args": {
        "outputName": "Country.mmdb",
        "overwriteList": [
          "ir",
          "amazon",
          "bing",
          "cloudflare",
          "digitalocean",
          "facebook",
          "github",
          "google",
          "linode",
          "malware",
          "microsoft",
          "openai",
          "oracle",
          "phishing",
          "telegram",
          "twitter",
          "private"
        ]
      }
    },
    {
      "type": "maxmindMMDB",
      "action": "output",
      "args": {
        "outputName": "Country-lite.mmdb",
        "wantedList": [
          "ir",
          "irgfw-block-injected-ips",
          "irgfw-other-injected-ips",
          "irgfw-all-injected-ips",
          "private"
        ]
      }
    },
    {
      "type": "maxmindMMDB",
      "action": "output",
      "args": {
        "outputName": "Security-ip.mmdb",
        "wantedList": ["phishing", "malware"]
      }
    },
    {
      "type": "maxmindMMDB",
      "action": "output",
      "args": {
        "outputName": "Services.mmdb",
        "wantedList": [
          "amazon",
          "arvancloud",
          "bing",
          "cloudflare",
          "cloudfront",
          "derakcloud",
          "digitalocean",
          "facebook",
          "fastly",
          "gcore",
          "github",
          "google",
          "iranserver",
          "linode",
          "microsoft",
          "netflix",
          "openai",
          "oracle",
          "parspack",
          "telegram",
          "tor",
          "twitter"
        ]
      }
    },
    {
      "type": "text",
      "action": "output"
    }
  ]
}
