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

Ubuntu

Install CSF firewall on Ubuntu Server

First, install libwww-perl package needed for CSF firewall Install CSF with Change following settings in csf.conf file If you need

whitelist IP in csf

Whitelisting an IP Address in CSF Firewall

There are 3 ways to whitelist an IP address in ConfigServer Security & Firewall (csf). Whitelisting an IP address will

Firewalld

Firewalld

Firewalld list all open ports Firewalld list rules firewall-cmd Allow PPTP VPN connection on firewalld See firewall

firewalld list ports

Firewalld list all open ports

To list all open ports in firealld, run You may need to also use Example See firewalld

Firewalld list rules

Firewalld list rules

To list rules use command To list all open ports Example See firewall-cmd

Install CSF Firewall

Install CSF Firewall

For non cpanel server, install perl modules On Ubuntu Once we have requirments installed, install csf with See csf

Block Country in CSF firewall

Block Country in CSF firewall

CSF firewall can block all traffic from a country or list of countries using the GeoIP database. To block a

Disable IP Block Alerts in CSF Firewall

Disable IP Block Alerts in CSF Firewall

To disable IP block alert in CSF firewall, run Restart lfd and csf See csf firewall

How to Block a Country in CSF firewall

How to Block a Country in CSF firewall

To block all traffic from a country in CSF Firewall edit file /etc/csf/csf.conf Find the line In this line, you

firewall

firewall

firewalld ufw iptables Install bitninja firewall https://opnsense.org

Unban an IP from CSF Firewall

To unban an IP from CSF firewall, run Here i have an IP blocked in firewall. To see if CSF