Go Back   Defender Hosting Forums > PowerVPS Virtual Private Servers > Linux VPS - Security and Tuning

Linux VPS - Security and Tuning Security and Tuning Discussion for Linux Virtual Private Servers based on Virtuozzo by SWsoft

Reply
 
Thread Tools Display Modes

  #1  
Old 07-26-2009, 10:26 PM
caucus's Avatar
caucus caucus is offline
Member
 
Join Date: Sep 2006
Location: Orlando
Posts: 94
caucus is on a distinguished road
Default Blocking China Uising CSF

Hello Great Ones

I was wondering if there is an easy way to block china from my server

I found a link to: http://www.ipdeny.com/ipblocks

It gave a big list of Ip's from china.

My question is can CSF and my server handle all of them?

How many IP's can CSF handle and keep on working?

Should I add more countries like North Korea?

Thanks, I am new to CSF! So far one of the better things I did to add that.
__________________
Keeing to the Rght
But left of Rush
===========
LINUX CPANEL POWER-2 Plus
768MB Not Enough For
Mailscanner?

Newbie With SSH
Please be paitient with me
Reply With Quote

  #2  
Old 07-27-2009, 10:08 AM
BornOnline BornOnline is offline
Senior Member
 
Join Date: Feb 2005
Location: Earth
Posts: 173
BornOnline is on a distinguished road
Default Re: Blocking China Uising CSF

The latest version of CSF has country blocking built in (Country Code to CIDR allow/deny). Just put in the Country code (CN) and it will block it.

I am using this on a dedicated server and it's a ton of IP addresses, but I have not noticed any issues.
Reply With Quote

  #3  
Old 07-27-2009, 02:29 PM
caucus's Avatar
caucus caucus is offline
Member
 
Join Date: Sep 2006
Location: Orlando
Posts: 94
caucus is on a distinguished road
Default Re: Blocking China Uising CSF

Hello

The latest version of CSF has country blocking built in (Country Code to CIDR allow/deny). Just put in the Country code (CN) and it will block it.

Where I put the IP address for Deny all I have to do is put CN?
__________________
Keeing to the Rght
But left of Rush
===========
LINUX CPANEL POWER-2 Plus
768MB Not Enough For
Mailscanner?

Newbie With SSH
Please be paitient with me
Reply With Quote

  #4  
Old 07-27-2009, 03:12 PM
BornOnline BornOnline is offline
Senior Member
 
Join Date: Feb 2005
Location: Earth
Posts: 173
BornOnline is on a distinguished road
Default Re: Blocking China Uising CSF

No, check in the CSF config in WHM.

There is a config option called "Country Code to CIDR allow/deny"
Reply With Quote

  #5  
Old 07-27-2009, 03:43 PM
caucus's Avatar
caucus caucus is offline
Member
 
Join Date: Sep 2006
Location: Orlando
Posts: 94
caucus is on a distinguished road
Default Re: Blocking China Uising CSF

Hello Again

Your the best! That did the trick. I blocked china and Korea, and North Korea. Let see how that works. Am I correct that it may take a bit for the tables to be updated if someone is attacking me?

I wonder if it will slow the spam on the mailscanner?
__________________
Keeing to the Rght
But left of Rush
===========
LINUX CPANEL POWER-2 Plus
768MB Not Enough For
Mailscanner?

Newbie With SSH
Please be paitient with me
Reply With Quote

  #6  
Old 07-27-2009, 04:22 PM
BornOnline BornOnline is offline
Senior Member
 
Join Date: Feb 2005
Location: Earth
Posts: 173
BornOnline is on a distinguished road
Default Re: Blocking China Uising CSF

No, iptables will block those sub-nets once you restart CSF.

You do need to restart the Firewall.

I hope you don't run into problems because that is going to be a huge rule set. Let me know how it goes. I may add a few more countries too, but you can test it
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blocking ports on different IPs nadzri Linux VPS - Security and Tuning 2 03-13-2007 11:13 AM
aol is blocking me pdumpert Linux VPS - General 11 07-26-2006 08:51 PM
[Howto] Easy Blocking IPs Hvu Linux VPS - HOWTOs and FAQs 9 12-08-2005 04:04 AM
ISP Port 25 Blocking Starchild The Lounge 3 08-30-2005 06:18 PM
Problem blocking SPAM Carlos Camacho Linux VPS - Plesk 2 07-27-2005 10:23 PM



All times are GMT -4. The time now is 12:59 PM.


vBulletin skin developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright Defender Technologies Group, LLC 2006