🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #308834

Re: Blocking IP's by Region or Country

#308834
From: inwtx
Date: Thu, 16 Apr 2020 08:51
31 lines
1878 bytes
> 
> Can the group share how you are blocking ranges of IP's from
> specific regions of the globe to your Web Server and Server? Are
> you using a .htaccess file or are you using a range in your
> Iptables to block these bad actors? Examples would be great here.
> 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

  Yes, I am blocking all of China, Russia, Iran, and several other old eastern European block countries.  I am using ipset to do this.  Her are some setup instructions:

http://ipset.netfilter.org/install.html
https://thecustomizewindows.com/2017/01/server-security-ipset-basic-tutorial/
https://blog.ls20.com/securing-your-server-using-ipset-and-dynamic-blocklists/

Then you can get list of countries you want to block from here:
https://www.countryipblocks.net/acl.php

  I do not have the time right now to go into details.

-----BEGIN PGP SIGNATURE-----

iF4EAREIAAYFAl6YG/4ACgkQhU7fz9hYXBMruQD+Kaz7MBbDTNdOljpSM3YxhrUU
AdYE6ogBLji39ieHqzEA/2PoW6FJra/wF6PnS7EstiIMqHBrDLGHPFlvoVZeWl3f
=LcdQ
-----END PGP SIGNATURE-----
--
pub 2048D/D8585C13
    9720 86F3 274F 9AED AEFD  8E75 854E DFCF D858 5C13
inwtx.net/pubkey.txt
Technical Details
Message-ID: <r796al$qnq$1@news.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <20200416023503.255F8120601@fleegle.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <r796al$qnq$1@news.mixmin.net>
Subject: Re: Blocking IP's by Region or Country
Date: Thu, 16 Apr 2020 03:51:32 -0500
From: "inwtx" <noreply@inwtx.net>
References: <20200416023503.255F8120601@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Mixmin
Injection-Date: Thu, 16 Apr 2020 08:51:34 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="93244f553b1cdce850b818e3e2f7367d1dee31ec"; logging-data="27386"; mail-complaints-to="abuse@mixmin.net"