diff options
Diffstat (limited to 'config-example.json')
| -rw-r--r-- | config-example.json | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/config-example.json b/config-example.json index 253d1746..d4e02631 100644 --- a/config-example.json +++ b/config-example.json @@ -108,6 +108,19 @@ "type": "text", "action": "add", "args": { + "inputDir": "./data", + "onlyIPType": "ipv4", + "removePrefixesInLine": [ + "iptables -A INPUT -s", + "iptables -A INPUT -d" + ], + "removeSuffixesInLine": ["-j ACCEPT", "-j DROP"] + } + }, + { + "type": "text", + "action": "add", + "args": { "name": "mylist", "uri": "./an/example/dir/mycidr.txt", "onlyIPType": "ipv6" @@ -117,6 +130,26 @@ "type": "text", "action": "add", "args": { + "name": "mylist", + "uri": "./an/example/dir/mycidr.txt", + "onlyIPType": "ipv6", + "removePrefixesInLine": ["allow from", "deny from"] + } + }, + { + "type": "text", + "action": "add", + "args": { + "name": "mylist", + "uri": "./an/example/dir/mycidr.txt", + "onlyIPType": "ipv6", + "removeSuffixesInLine": [";", ","] + } + }, + { + "type": "text", + "action": "add", + "args": { "name": "cn", "uri": "https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt", "onlyIPType": "ipv4" |
