GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Question for server security gurus (https://gfy.com/showthread.php?t=1077286)

donnie 08-08-2012 03:49 AM

Question for server security gurus
 
We have a server that is constantly attacked by Chinese idiots. Is there a way to completely block all IP?s from China reaching the server? I am not only talking about blocking them from the site but completely blocking them from server. So they can?t scan ports, make login attempts etc.

We are running CentOS 6 on this server if that makes any difference.

V_RocKs 08-08-2012 04:08 AM

Well... most hosts and nice people will tell you not to block entire ip subsets like that... But back when I ran tgp's for a living I used to block them and Russia...

Easy to do... But you are going to have to google for specific instructions for your server... freebsd? linux? windows?

facialfreak 08-08-2012 04:32 AM

Also keep in mind that as IPv4 IP addresses have become so scarce, that people are selling off their hoarded subnets to the highest bidder, and blocking by GEO-location may not ensure that you are blocking the Chinese hackers.

I have seen US servers serving Indonesian IPs, and likewise I have seen Chinese servers serving German IP addresses ... as IPv4 addresses become harder to get, IP subnets are ending up in use in all different parts of the world.

CurrentlySober 08-08-2012 04:33 AM

Unplug your server from the internet - Job done & problem solved.. :2 cents:

ladida 08-08-2012 05:00 AM

Quote:

Originally Posted by donnie (Post 19109929)
We are running CentOS 6 on this server if that makes any difference.

Quote:

Originally Posted by V_RocKs (Post 19109954)
But you are going to have to google for specific instructions for your server... freebsd? linux? windows?

:facepalm:

Klen 08-08-2012 05:22 AM

Had same problem with china,resolved it with this:
http://www.configserver.com/cp/csf.html
All what you need to do it it's to put CH into country block field and no more chinese on your server.

BNMedia 08-08-2012 11:09 AM

I had my host (ISPrime) block Russia using geoip, so yes(ish)
It doesn't stop them using proxies though!

Klen 08-08-2012 11:35 AM

Quote:

Originally Posted by BNMedia (Post 19110567)
I had my host (ISPrime) block Russia using geoip, so yes(ish)
It doesn't stop them using proxies though!

I have reason to believe if you block russia and china traffic you will reduce like 80% chance to be hacked and have any problem,and while they can use proxies they mostly uses their own ip's and it's all automated.

rowan 08-08-2012 11:36 AM

Quote:

Originally Posted by KlenTelaris (Post 19110023)
Had same problem with china,resolved it with this:
http://www.configserver.com/cp/csf.html
All what you need to do it it's to put CH into country block field and no more chinese on your server.

CH is actually Switzerland. :)

CN is China.

Klen 08-08-2012 11:39 AM

Quote:

Originally Posted by rowan (Post 19110616)
CH is actually Switzerland. :)

CN is China.

Typo :D :warning:warning

donnie 08-08-2012 12:06 PM

Quote:

Originally Posted by KlenTelaris (Post 19110023)
Had same problem with china,resolved it with this:
http://www.configserver.com/cp/csf.html
All what you need to do it it's to put CH into country block field and no more chinese on your server.

Thank you so much man!!! Portscans and failed logins dropped like 99% today after I blocked China and Russia with this.


All times are GMT -7. The time now is 07:33 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123