unlock ip

Started by setecabanas, August 24, 2023, 11:10:29 AM

Previous topic - Next topic

setecabanas

Is there any option to unlock ips from other server via api?
Like in cPanel from https://server:2087/cgi/configserver/csf.cgi?action=kill&ip=XXX.XXX.

Or any option to be able unlock one ip from whmcs, or similar?

overseer

Add the IP address to your whitelist:
/etc/csf/csf.allow

Command line example:
sudo csf -a 192.168.1.111

setecabanas

I mean some option to unlock ips from php. For ex, from whmcs module

cyberspace

CWP doesn't have API calls for CSF to manage firewall rules, blocked/allowed IPs.

BeZazz

You could use PHP by doing similar to
https://forum.configserver.com/viewtopic.php?t=6751
Not recommending but might help.