Problems activating your account? Send notification email to: [email protected]
Host4Fun Budget VPS Hosting

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VPS IP Block By Country
#11
(07-03-2020, 09:51 AM)Manal Wrote:  And sad to say, banning such IPs won't work because I've studied how booters work. They use a wide-range of IP addresses that comes from not only Brazil, China, Pakistan and Vietnam, but also US, India, Germany and France.
You don't want to ban them, do you?

Well, My first option will be OVH-Game now,  I want to ban everything except for Pakistan and i have seen pfsense firewall does have a geoip tool which allows you to achieve this in seconds, it holds up pretty well as well. but setting an pfsense on a ovh vps does look like a mess though i might directly shift to ovh-game.
Thanks to ReadiDedis and Post4VPS for the amazing VPS 7!

Reply
#12
(06-19-2020, 07:39 PM)Hidden Refuge Wrote:  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.

I would also recommend you use the visitor-blocker since it can be updated regularly and once it is setup you can fine tune the countries you want to block.
Reply
#13
Hello sAmI, I was also looking for VPN blocker by iptables. You need to may be create a list of VPN IPs for this. With some research, I came over this in github;

https://github.com/grumpytm/SSH-Bruteblock

Check the link and let me know if it helps you.
Reply
 


Forum Jump:


Users browsing this thread: 1 Guest(s)

Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis


About Post4VPS

Post4VPS is a forum/destiny where you can Delploy Your Free VPSs just by the Power of Posts.

We Provide VPSs of many locations like Germany,US,Canada,France,London,etc.

We also Provide VPSs of Both Linux and Windows OS.