How to whitelist a hostname in CSF firewall
Firewalls usually allow or block IP addresses. If you need to allow a hostname, you need to find the IP address and…
Firewalls usually allow or block IP addresses. If you need to allow a hostname, you need to find the IP address and…
First, install libwww-perl package needed for CSF firewall Install CSF with Change following settings in csf.conf file If you need GUI enabled,…
There are 3 ways to whitelist an IP address in ConfigServer Security & Firewall (csf). Whitelisting an IP address will allow the…
firewall-cmd is used to manage firewall (iptables). It is used by default on latest version of CentOS, RHEL. Check firewall status To…
To list all open ports in firealld, run firewall-cmd –list-ports You may need to also use [root@oc1 ~]# firewall-cmd –list-services http https…
To list rules use command firewall-cmd –list-all –zone=public To list all open ports firewall-cmd –list-ports Example [root@centos7 zones]# firewall-cmd –zone=public –add-rich-rule=’rule family=”ipv4″…
For non cpanel server, install perl modules On Ubuntu Once we have requirements installed, install csf with See csf
CSF firewall can block all traffic from a country or list of countries using the GeoIP database. To block a country, edit…
To disable IP block alert in CSF firewall, run sed -i “s/LF_PERMBLOCK_ALERT\s*=.*$/LF_PERMBLOCK_ALERT = \”0\”/g” /etc/csf/csf.conf Restart lfd and csf systemctl restart lfd…
To block all traffic from a country in CSF Firewall edit file /etc/csf/csf.conf vi /etc/csf/csf.conf Find the line CC_DENY = “” In…
To unban an IP from CSF firewall, run csf -dr IP_ADDR Here i have an IP blocked in firewall. [root@server22 ~]# iptables…