Blocking certain country only for specific services?

Post Reply
nospa
Junior Member
Posts: 16
Joined: 11 Aug 2011, 00:55

Blocking certain country only for specific services?

Post by nospa »

Hello

Is it possible to block certain country (for example China) for certain services (eg. FTP)? We see many hacking attempts from compromised servers from China using users FTP details, but we can't block China from all services because many of our users send emails to<>from China.... Any idea how to setup such rules? Maybe with csfpost.sh?
JDStallings
Junior Member
Posts: 56
Joined: 10 Dec 2006, 10:04

Re: Blocking certain country only for specific services?

Post by JDStallings »

We would like to know the same as we are getting huge hits from BR on FTP attempts. Really a lot in the last 2 weeks,
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: Blocking certain country only for specific services?

Post by ForumAdmin »

We are already working on a CC option where you can specify ports to apply them on. It should appear in the next release, but I do not have a timescale.
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

Re: Blocking certain country only for specific services?

Post by Sergio »

That option will be a nice addition, great!
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: Blocking certain country only for specific services?

Post by ForumAdmin »

This has now been included in v5.74:
http://blog.configserver.com/
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

Re: Blocking certain country only for specific services?

Post by Sergio »

Thank you, Jonathan.

Is it possible to have the opposite, CC_DENY_FILTER and CC_DENY_PORT, also?

It will be easier to block countries that we don't want access to our ports.

Sergio
Post Reply