Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] preventing some IP's from from being logged in apache
Date: Tue, 12 Jan 2021 17:11:54
Message-Id: 984ad33e-50d1-1ae2-ccb7-0b24d23aab72@sys-concept.com
In Reply to: Re: [gentoo-user] preventing some IP's from from being logged in apache by "J. Roeleveld"
1 On 1/11/21 11:32 PM, J. Roeleveld wrote:
2 [snip]
3 > If you blocked the IP in the firewall, it shouldn't show in the log.
4 >
5 > Add iptables to the webserver and block that IP.
6 > Personally, I would block the whole range (45.93.201.0/24), which is either
7 > linked to Cyprus or Russia (according to whois)
8 >
9 > Any block in the apache-config might fail due to a bug or new configuration.
10 >
11 > --
12 > Joost
13
14 Asus routers don't have capabilities to block external IP's (I need to find a better router).
15 Blocking that IP range in apache works, all the IPs I blocked are getting 403 error (regardless what they type)
16 but you might be right, apache 2.4
17 SetEnvIf Remote_Addr "45\.93\.201\.104" dontlog (does not work).
18
19 I wish they design blocking by country easier.

Replies

Subject Author
Re: [gentoo-user] preventing some IP's from from being logged in apache "J. Roeleveld" <joost@××××××××.org>
Re: [gentoo-user] preventing some IP's from from being logged in apache antlists <antlists@××××××××××××.uk>