Files
Archive/geoip/config-example.json
2024-03-05 02:32:38 -08:00

202 lines
4.3 KiB
JSON

{
"input": [
{
"type": "v2rayGeoIPDat",
"action": "add",
"args": {
"uri": "./geoip.dat",
"wantedList": ["cn", "us"],
"onlyIPType": "ipv4"
}
},
{
"type": "v2rayGeoIPDat",
"action": "add",
"args": {
"uri": "https://raw.githubusercontent.com/Loyalsoldier/geoip/release/geoip.dat",
"onlyIPType": "ipv6"
}
},
{
"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",
"wantedList": ["cn", "us"]
}
},
{
"type": "maxmindMMDB",
"action": "add"
},
{
"type": "maxmindMMDB",
"action": "add",
"args": {
"uri": "./path/to/your/mmdb/file",
"wantedList": ["cn", "us"],
"onlyIPType": "ipv4"
}
},
{
"type": "maxmindMMDB",
"action": "add",
"args": {
"uri": "https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country.mmdb"
}
},
{
"type": "maxmindMMDB",
"action": "remove",
"args": {
"uri": "https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country.mmdb",
"wantedList": ["jp"],
"onlyIPType": "ipv6"
}
},
{
"type": "cutter",
"action": "remove",
"args": {
"wantedList": ["cn", "us"],
"onlyIPType": "ipv4"
}
},
{
"type": "cutter",
"action": "remove",
"args": {
"onlyIPType": "ipv6"
}
},
{
"type": "text",
"action": "add",
"args": {
"inputDir": "./data",
"onlyIPType": "ipv4"
}
},
{
"type": "text",
"action": "add",
"args": {
"name": "mylist",
"uri": "./an/example/dir/mycidr.txt",
"onlyIPType": "ipv6"
}
},
{
"type": "text",
"action": "add",
"args": {
"name": "cn",
"uri": "https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt",
"onlyIPType": "ipv4"
}
},
{
"type": "private",
"action": "add"
},
{
"type": "test",
"action": "add"
}
],
"output": [
{
"type": "v2rayGeoIPDat",
"action": "output",
"args": {
"outputName": "geoip.dat",
"outputDir": "./publish"
}
},
{
"type": "v2rayGeoIPDat",
"action": "output",
"args": {
"outputName": "geoip-only-cn-private.dat",
"outputDir": "./publish",
"wantedList": ["cn", "private"]
}
},
{
"type": "v2rayGeoIPDat",
"action": "output",
"args": {
"outputDir": "./publish",
"oneFilePerList": true,
"wantedList": ["cn", "private", "test"],
"onlyIPType": "ipv4"
}
},
{
"type": "maxmindMMDB",
"action": "output"
},
{
"type": "maxmindMMDB",
"action": "output",
"args": {
"outputName": "Country.mmdb",
"overwriteList": ["cn", "private"]
}
},
{
"type": "maxmindMMDB",
"action": "output",
"args": {
"outputName": "country-only-cn-private.mmdb",
"wantedList": ["cn", "private"]
}
},
{
"type": "maxmindMMDB",
"action": "output",
"args": {
"outputDir": "./publish",
"outputName": "country-only-cn-private.mmdb",
"wantedList": ["cn", "private"],
"onlyIPType": "ipv4"
}
},
{
"type": "text",
"action": "output",
"args": {
"outputDir": "./publish",
"wantedList": ["cn", "us", "private"],
"onlyIPType": "ipv6"
}
},
{
"type": "clashRuleSetClassical",
"action": "output",
"args": {
"wantedList": ["cn", "private", "test"],
"onlyIPType": "ipv4"
}
},
{
"type": "clashRuleSet",
"action": "output",
"args": {
"wantedList": ["cn", "private", "test"],
"onlyIPType": "ipv6"
}
},
{
"type": "surgeRuleSet",
"action": "output",
"args": {
"wantedList": ["cn", "private", "test"],
"onlyIPType": "ipv4"
}
}
]
}