Gentoo Archives: gentoo-user

From: Grant Taylor <gtaylor@×××××××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] apache blocking access based country
Date: Wed, 09 Dec 2020 00:01:19
Message-Id: 280318a4-34ed-813a-af74-b22e08e3d8f9@spamtrap.tnetconsulting.net
In Reply to: Re: [gentoo-user] apache blocking access based country by Steve Wilson
1 On 12/8/20 4:44 PM, Steve Wilson wrote:
2 > I use this as the first step to limit ssh access to one of my servers:
3 > `iptables -A INPUT -p tcp -m tcp --dport 22 -m geoip ! --src-cc GB
4 > -m comment --comment "Drop SSH from outside GB" -j DROP`
5
6 Has the geoip match extension been updated to take into account MaxMind
7 discontinuing their GeoLite database and the need to support GeoLite2?
8
9 > This has the advantage that apache doesn't need to process the request,
10 > but a possible downside that you won't be able to display a message
11 > if that's a requirement.
12
13 You could probably DNAT / REDIRECT to an alternate port that is a
14 different virtual host that serves up a 403 page.
15
16
17
18 --
19 Grant. . . .
20 unix || die

Replies

Subject Author
Re: [gentoo-user] apache blocking access based country Steve Wilson <steve+gentoo_users@×××××××××××.uk>