arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VPS IP Block By Country
#2
Have you already tried https://www.ip2location.com/free/visitor-blocker ?

At "Download List" select your country, IPv4 or IPv6 and then at "Output Format" select "Linux iptables".

You will get a text file with commands to black a ton of ranges from selected country. Just upload that text file to your server, rename it to sh and run it with bash. It should execute the commands. If you want them to stick permanently I would recommend to use iptables-persistent.

iptables-persistent (reference - just look it up yourself for your specific OS):
- http://www.microhowto.info/howto/make_th...ebian.html
- https://linuxconfig.org/how-to-make-ipta...t-on-linux

For firewalld hm... you could use find and replace to modify the commands in the file but it would still require more editing to make the permanent.
[Image: zHHqO5Q.png]
lockThread Closed 


Messages In This Thread
VPS IP Block By Country - by sAmI - 06-19-2020, 01:46 PM
RE: VPS IP Block By Country - by Mashiro - 06-19-2020, 07:39 PM
RE: VPS IP Block By Country - by sAmI - 06-20-2020, 01:51 AM
RE: VPS IP Block By Country - by WiredBlade - 07-23-2020, 12:50 AM
RE: VPS IP Block By Country - by deanhills - 06-20-2020, 02:32 AM
RE: VPS IP Block By Country - by sAmI - 06-20-2020, 12:49 PM
RE: VPS IP Block By Country - by Mashiro - 06-20-2020, 08:34 AM
RE: VPS IP Block By Country - by rudra - 06-28-2020, 03:11 AM
RE: VPS IP Block By Country - by Manal - 07-03-2020, 09:48 AM
RE: VPS IP Block By Country - by Manal - 07-03-2020, 09:50 AM
RE: VPS IP Block By Country - by Manal - 07-03-2020, 09:51 AM
RE: VPS IP Block By Country - by sAmI - 07-04-2020, 01:32 AM
RE: VPS IP Block By Country - by TimeRider - 07-29-2020, 10:24 PM

person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting