Block the IP of the selected country in Firewall
Firewall should be able to block the IP of the selected country. I have a lot of traffic from the IP 5.10. *. *
On linux just switched to Juggernaut extension and I m very happy with it !
This feature is a necessity.
Thanks @IgorG for the link in Plesk forum and @Rafal for the great idea.
Wow, so many supporters.
When do think it will be realized (not exactly, only in months or seasons)?
True, Juggernaut does so, however for a heafty $100 a yaer. This task should nit cost that.
Juggernaut Security and Firewall extension has this feature for Linux users:
Re BitNinja, please also note the heafty price it comes with... $300 a year, as a Plesk extension.
Would BitNinja remove the uage of the Plesk built-in FireWall IPTables and IPSet, as it requires their usage:
What does the non-pro version provide?
And, is the Plesk installation of the extension reversable exactly to pre-installation configuration
(for example Plesk FireWall manual rules)?
Use BitNinja. Works well with Plesk. We use them to block entire countries from our servers.
Idea 2013 and now 2021. yet not implemented. Plesk becoming hopeless for me.
Júbilo Estudios commented
Block 22.214.171.124 - 126.96.36.199 = 65,536 IPs. Is not a practical solution, china for example has 356,936,737 IPs. Even just blocking the IPV4 either, many attacks we receive come from IPV6 from Dubai for example.
spams comes from all over, not only from 64K IPs...
If you block the ip
Your server is protected.
(including from yourself)
Fadi Asbih commented
You can use the Plesk Firewall to block all traffic from this network: 5.10. *. *
1) Create a custom firewall rule and name it i.e. "Block Suspicious IPs" as described here: https://support.plesk.com/hc/en-us/articles/360000875494-How-to-block-an-IP-address-in-Plesk-Firewall
2) in the Sources add the the network in this format: 188.8.131.52/16 (s.screenshot)
3) Save and Apply the new rule
This will block all these IPs: 184.108.40.206 - 220.127.116.11, meaning it will block 65,536 IPs.
@Developer take a look in this https://www.ipdeny.com/ipblocks/
Make a List like this with a checkbox and clear list maybe daily and add selected country-ips in it. It can't be that hard and would significantly improve safety. ;)
firewall-cmd --permanent --ipset=blocked_country_ipv4_cn --add-entries-from-file=ipv4_cn.zone
Is it not possible to use this?
I have hundreds of fail2ban banned bot ips from russian and china. I want stop any traffic from there.
This feature would allow me to target my customers better, whist also making my sites more secure by blocking those countries that frequently try to hack my sites.
All of these deny country tools, are REALLY EASY to build. Their code is like 200 lines, and they use free real-time updating DB of IP associated to countries.
This should be a built-in Plesk tool, and no need for a monthly payment for it. It's worth 5 USD a year, not 5 USD a month...