Search found 5 matches

by DanH42
28 Dec 2014, 18:59
Forum: General Discussion (csf)
Topic: Detect real IP when behind a proxy such as CloudFlare
Replies: 1
Views: 3184

Detect real IP when behind a proxy such as CloudFlare

I'm running a cPanel server that sits behind CloudFlare. I've been using csf for a while on another cPanel server and found it incredibly useful, but it's next to useless when all traffic is coming from a small range of already-known IPs. A script like Flarewall is a good start, but still requires c...
by DanH42
12 Jun 2014, 22:43
Forum: General Discussion (csf)
Topic: Block port on certain IP
Replies: 1
Views: 2164

Re: Block port on certain IP

Solution from cPanel forums:
in /etc/csf/csf.deny:

Code: Select all

tcp|in|d=2087|d=123.123.123.2
This would deny port 2087 on 123.123.123.2 but not other IPs allocated to the server. Create more rules to block other ports on other specific IP addresses.
by DanH42
10 Jun 2014, 20:22
Forum: General Discussion (csf)
Topic: Change permanent block to temporary
Replies: 1
Views: 2842

Re: Change permanent block to temporary

Update: I asked the same question on the cPanel forums, and found out there's a setting for this in CSF:

Code: Select all

LF_MODSEC = "10"
LF_MODSEC_PERM = "300"
This would block for 5 minutes (300 seconds) after modsec rules being triggered.
by DanH42
10 Jun 2014, 16:55
Forum: General Discussion (csf)
Topic: Change permanent block to temporary
Replies: 1
Views: 2842

Change permanent block to temporary

I'm using a subset of the OWASP ruleset, and I'm still getting lots of false positives. Almost every time that happens, the IP responsible gets a permanent block in iptables, which I think is a little strict even if they were trying to attack the server. I've tried Googling around a bit, and I can't...
by DanH42
03 Jun 2014, 20:48
Forum: General Discussion (csf)
Topic: Block port on certain IP
Replies: 1
Views: 2164

Block port on certain IP

I've got a server with multiple public-facing IPs, and I'd like certain services to only be bound on certain IPs. Services like SSH and FTP can simply be configured to only bind to a single interface, but I've got a couple stubborn ones that insist on binding to them all. What I'm basically looking ...