firewall_pleroma_rejects.sh: Reformatted ignorelist.

This commit is contained in:
tastytea 2019-07-19 22:52:29 +02:00
parent 11c487216b
commit c80966f80f
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 50 additions and 48 deletions

View File

@ -50,7 +50,8 @@ function gen_rule() # Generates rule for IP if it is not in ignorelist.
local ip="${1}"
local domain="${2}"
# Regular expressions of IPs to ignore.
local -a ignorelist=("^2001:41d0:302:1100:" # masto.host
local -a ignorelist=(
"^2001:41d0:302:1100:" # masto.host
"^217\.182\.80\.236$"
"^178\.33\.220\.14[0-3]$"
"^176\.31\.213\.22[89]$"
@ -95,9 +96,10 @@ function gen_rule() # Generates rule for IP if it is not in ignorelist.
"^103\.22\.20[0-3]\." # CloudFlare 103.22.200.0/22
"^197\.234\.24[0-3]" # CloudFlare 197.234.240.0/22
"^131\.0\.7[2-5]\." # CloudFlare 131.0.72.0/22
"^2602:ffdb:100:1:" # Shared IP: pleroma.site,
"^2602:ffdb:100:1:fc89:b2ff:fe77:1664$" # Shared IPs: pleroma.site,
"^172\.93\.5\.40$" # juche.town
)
# Read and apply user modifications to ignorelist.
local extra_ignores="$(get_config_dir)/ignorelist.user"
if [[ -e "${extra_ignores}" ]]; then