mirror of
https://github.com/bolucat/Archive.git
synced 2025-12-24 13:28:37 +08:00
174 lines
3.5 KiB
JSON
174 lines
3.5 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": {
|
|
"outputName": "geoip.dat"
|
|
}
|
|
},
|
|
{
|
|
"type": "v2rayGeoIPDat",
|
|
"action": "output",
|
|
"args": {
|
|
"outputName": "geoip-only-cn-private.dat",
|
|
"wantedList": ["cn", "private"]
|
|
}
|
|
},
|
|
{
|
|
"type": "v2rayGeoIPDat",
|
|
"action": "output",
|
|
"args": {
|
|
"outputName": "geoip-asn.dat",
|
|
"wantedList": [
|
|
"cloudflare",
|
|
"cloudfront",
|
|
"facebook",
|
|
"fastly",
|
|
"google",
|
|
"netflix",
|
|
"telegram",
|
|
"twitter"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "v2rayGeoIPDat",
|
|
"action": "output",
|
|
"args": {
|
|
"oneFilePerList": true,
|
|
"wantedList": ["cn", "private"]
|
|
}
|
|
},
|
|
{
|
|
"type": "maxmindMMDB",
|
|
"action": "output",
|
|
"args": {
|
|
"outputName": "Country.mmdb",
|
|
"overwriteList": [
|
|
"cn",
|
|
"private",
|
|
"cloudflare",
|
|
"cloudfront",
|
|
"facebook",
|
|
"fastly",
|
|
"google",
|
|
"netflix",
|
|
"telegram",
|
|
"twitter"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "maxmindMMDB",
|
|
"action": "output",
|
|
"args": {
|
|
"outputName": "Country-only-cn-private.mmdb",
|
|
"wantedList": ["cn", "private"]
|
|
}
|
|
},
|
|
{
|
|
"type": "maxmindMMDB",
|
|
"action": "output",
|
|
"args": {
|
|
"outputName": "Country-asn.mmdb",
|
|
"wantedList": [
|
|
"cloudflare",
|
|
"cloudfront",
|
|
"facebook",
|
|
"fastly",
|
|
"google",
|
|
"netflix",
|
|
"telegram",
|
|
"twitter"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "text",
|
|
"action": "output"
|
|
}
|
|
]
|
|
}
|