Files
Archive/geoip/config.json
T
2024-08-06 20:32:53 +02:00

227 lines
4.7 KiB
JSON

{
"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": "cutter",
"action": "remove",
"args": {
"wantedList": ["cn"],
"onlyIPType": "ipv4"
}
},
{
"type": "text",
"action": "add",
"args": {
"name": "cn",
"uri": "https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt",
"onlyIPType": "ipv4"
}
},
{
"type": "text",
"action": "add",
"args": {
"name": "cn",
"uri": "https://raw.githubusercontent.com/gaoyifan/china-operator-ip/ip-lists/china.txt",
"onlyIPType": "ipv4"
}
},
{
"type": "text",
"action": "add",
"args": {
"name": "cn",
"uri": "https://raw.githubusercontent.com/gaoyifan/china-operator-ip/ip-lists/china6.txt",
"onlyIPType": "ipv6"
}
},
{
"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": "text",
"action": "add",
"args": {
"inputDir": "./data"
}
},
{
"type": "private",
"action": "add"
}
],
"output": [
{
"type": "v2rayGeoIPDat",
"action": "output",
"args": {
"outputDir": "./output",
"outputName": "geoip.dat"
}
},
{
"type": "v2rayGeoIPDat",
"action": "output",
"args": {
"outputDir": "./output",
"outputName": "geoip-only-cn-private.dat",
"wantedList": ["cn", "private"]
}
},
{
"type": "v2rayGeoIPDat",
"action": "output",
"args": {
"outputDir": "./output",
"outputName": "geoip-asn.dat",
"wantedList": [
"cloudflare",
"cloudfront",
"facebook",
"fastly",
"google",
"netflix",
"telegram",
"twitter"
]
}
},
{
"type": "v2rayGeoIPDat",
"action": "output",
"args": {
"outputDir": "./output",
"oneFilePerList": true,
"wantedList": ["cn", "private"]
}
},
{
"type": "v2rayGeoIPDat",
"action": "output",
"args": {
"oneFilePerList": true
}
},
{
"type": "maxmindMMDB",
"action": "output",
"args": {
"outputDir": "./output",
"outputName": "Country.mmdb",
"overwriteList": [
"cn",
"private",
"cloudflare",
"cloudfront",
"facebook",
"fastly",
"google",
"netflix",
"telegram",
"twitter"
]
}
},
{
"type": "maxmindMMDB",
"action": "output",
"args": {
"outputDir": "./output",
"outputName": "Country-only-cn-private.mmdb",
"wantedList": ["cn", "private"]
}
},
{
"type": "maxmindMMDB",
"action": "output",
"args": {
"outputDir": "./output",
"outputName": "Country-asn.mmdb",
"wantedList": [
"cloudflare",
"cloudfront",
"facebook",
"fastly",
"google",
"netflix",
"telegram",
"twitter"
]
}
},
{
"type": "singboxSRS",
"action": "output"
},
{
"type": "text",
"action": "output"
},
{
"type": "text",
"action": "output",
"args": {
"outputDir": "./output/nginx/allow",
"outputExtension": ".conf",
"addPrefixInLine": "allow ",
"addSuffixInLine": ";"
}
},
{
"type": "text",
"action": "output",
"args": {
"outputDir": "./output/nginx/deny",
"outputExtension": ".conf",
"addPrefixInLine": "deny ",
"addSuffixInLine": ";"
}
},
{
"type": "clashRuleSetClassical",
"action": "output"
},
{
"type": "clashRuleSet",
"action": "output"
},
{
"type": "surgeRuleSet",
"action": "output",
"args": {
"addSuffixInLine": ",no-resolve"
}
}
]
}