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 |