Block incoming connections of a shared IP address in server

avinash.pudota

Active Member
Jan 27, 2013
26
2
3
India
cPanel Access Level
Root Administrator
Hello,
I have a reseller on a separate IP address on Server. I would like to temporarily disable all the websites hosted on that particular reseller's shared IP without suspending the accounts, so that i can immediately reactivate all the accounts later. I tried blocking the IP address in CSF firewall but it says server IP cannot be blocked.
 

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
806
156
168
New Jersey
cPanel Access Level
DataCenter Provider
You can't, you'd have to ask your host but its somewhat of an odd request so I don't actually see them doing so.

If they are using CSF, they could add

tcp|in|d=80|d=1.1.1.1
tcp|in|d=443|d=1.1.1.1


in csf.deny

That would block all incoming requests on port 80/443 for IP 1.1.1.1
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,252
313
Houston
I'm not sure I fully understand why you'd want to do this rather than suspend your reseller user which would be a lot quicker and easier to achieve, but the advice provide by @Jcats would be the easiest way. If not using CSF/LFD you could do the same using iptables