Skip to content
xYnta
Go to websitexynta.com
Search
EN

Managing the firewall in DirectAdmin (unblocking, blocking, whitelisting)

Updated on

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.

Opening the firewall

  1. 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?

  2. 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:

actionwhenfield and button
unblockan IP address has been blocked by mistake, for example after too many failed login attemptsenter the IP address next to Quick Unblock and click Quick Unblock
whitelista trusted IP address must never be blocked, for example that of your officeenter the IP address next to Quick Allow and click Quick Allow
blockyou want to block a suspicious or malicious IP address permanentlyenter 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.

  1. Open the firewall

    Open the firewall as described above.

  2. Look up the IP address

    Under csf - ConfigServer Firewall, enter the IP address next to Search for IP and click Search for IP.

  3. 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 2022

Here 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