firewall_pleroma_rejects.sh: Reformatted ignorelist.
This commit is contained in:
parent
11c487216b
commit
c80966f80f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue