First off, let me start with an important fact: Regex on reverse IP lookups is a bad idea for blocking incoming requests. Reverse DNS is an informational function. Unlike DNS where it is critical for the domain to point to the correct IP address, there is little consequence for having the reverse lookup of an IP point to an arbitrary domain. Thus it would be trivial for an attacker to cycle through arbitrary domains in their reverse DNS records to constantly bypass the filter. Relying on reverse DNS for security functions can be classified as CWE-350 Reliance on Reverse DNS Resolution for a Security-Critical Action.
In this case, the source of the problem seems to be a specific provider so you could just block their entire IP range. Let's start by finding one of the IP addresses (I'm assuming the reverse IP->hostname entry is valid in this case):
~# nslookup 52-182.static.spheral.ru
Server: 192.168.153.2
Address: 192.168.153.2#53
Non-authoritative answer:
Name: 52-182.static.spheral.ru
Address: 195.88.209.9
Now let's determine their IP range/provider:
root@bt:~# whois 195.88.209.9
% This is the RIPE Database query service.
% The objects are in RPSL format.
%
% The RIPE Database is subject to Terms and Conditions.
% See http://www.ripe.net/db/support/db-terms-conditions.pdf
% Note: this output has been filtered.
% To receive output for a database update, use the "-B" flag.
% Information related to '195.88.208.0 - 195.88.209.255'
% Abuse contact for '195.88.208.0 - 195.88.209.255' is '[email protected]'
inetnum: 195.88.208.0 - 195.88.209.255
netname: IPSERVER
descr: Operated by IT Expert LLC
remarks: Abuse mailbox: [email protected]
country: RU
org: ORG-Al123-RIPE
admin-c: SOV63-RIPE
tech-c: SOV63-RIPE
status: ASSIGNED PI
mnt-by: RIPE-NCC-END-MNT
mnt-by: MNT-SPHERE
mnt-routes: MNT-SPHERE
mnt-routes: FIORD-MNT
mnt-domains: MNT-SPHERE
created: 2009-04-15T12:34:23Z
last-modified: 2016-04-14T09:38:32Z
source: RIPE
sponsoring-org: ORG-SL202-RIPE
organisation: ORG-Al123-RIPE
org-name: Antaro ltd.
abuse-mailbox: [email protected]
org-type: other
address: 127473, Moscow, 2 Schemilovskiy per., d.5/4., str.1
abuse-c: AC29892-RIPE
mnt-ref: ANTARO-MNT
mnt-by: ANTARO-MNT
created: 2009-04-14T08:02:50Z
last-modified: 2016-02-15T16:45:17Z
source: RIPE # Filtered
person: Strekozov Oleg Vladimirovich
address: Russia, 107031, Moscow, proezd Dmitrosvkiy 8
phone: +18552100465
nic-hdl: SOV63-RIPE
mnt-by: MNT-SPHERE
created: 2012-05-05T22:19:17Z
last-modified: 2014-09-15T13:18:40Z
source: RIPE
% Information related to '195.88.208.0/23AS28917'
route: 195.88.208.0/23
descr: IPSERVER
origin: AS28917
mnt-by: FIORD-MNT
mnt-routes: FIORD-MNT
created: 2012-12-24T08:35:13Z
last-modified: 2015-03-10T14:32:44Z
source: RIPE # Filtered
% This query was served by the RIPE Database Query Service version 1.87.3 (DB-2)
Based on this information you can make an official complaint about these attacks to [email protected]
and escalate to [email protected]
and [email protected]
if your abuse report isn't being addressed.
You can also block future attacks with the range 195.88.208.0 - 195.88.209.255
or 195.88.208.0/23
if you prefer CIDR notation.