Managing the firewall in DirectAdmin (unblocking, blocking, whitelisting)
On your Managed VPS you manage the firewall yourself in DirectAdmin. You unblock an IP address, block unwanted traffic, whitelist trusted addresses, or find out why an IP address has been blocked. The firewall is ConfigServer Security & Firewall (CSF), a widely used firewall for Linux servers. Only the admin user of your server can manage the firewall.
This value doesn’t fit here. An example: mvm-clientname1.
Opening the firewall
Log in as admin
Log in as user admin at
https://mvm-clientname1.srvnl.nl:2222. You can see your VPS name in Mijn xYnta under MANAGED VPS, or look it up with How can I find the server name of my hosting package?Open the firewall
In the menu on the left, under Extra Features (in a Dutch-language panel Extra Programma's), click ConfigServer Security & Firewall. Under csf - Quick Actions you find the fields for unblocking, whitelisting and blocking.
Unblocking, whitelisting or blocking an IP address
Under csf - Quick Actions, enter the IP address in the right field and click the button next to it:
| action | when | field and button |
|---|---|---|
| unblock | an IP address has been blocked by mistake, for example after too many failed login attempts | enter the IP address next to Quick Unblock and click Quick Unblock |
| whitelist | a trusted IP address must never be blocked, for example that of your office | enter the IP address next to Quick Allow and click Quick Allow |
| block | you want to block a suspicious or malicious IP address permanently | enter the IP address next to Quick Deny and click Quick Deny |
Finding out why an IP address was blocked
CSF writes the reason for a block in its log entries.
Open the firewall
Open the firewall as described above.
Look up the IP address
Under csf - ConfigServer Firewall, enter the IP address next to Search for IP and click Search for IP.
Read the reason
If the IP address is blocked, the reason is in the last line of the result.
An example:
csf.deny: xx.xx.xx.xx # lfd: (smtpauth) Failed SMTP AUTH login from xx.xx.xx.xx (NL/Netherlands/-): 5 in the last 3600 secs - Fri Apr 22 13:03:22 2022Here the IP address was blocked after 5 failed login attempts on the mail server (SMTP) within one hour: a typical sign of a brute-force attack.
Common reasons for an automatic block:
smtpauth: failed email login attempts;sshd: failed SSH login attempts;mod_security: suspicious web traffic, for example SQL injection attempts;portscan: a port scan was detected.
If you do not understand the reason for a block, contact us: we explain why the IP address was blocked and how to prevent it in the future.
Related articles
Thank you for your feedback.

