Documentation

Visit Our xCloud Knowledge Base

Here is your one-stop source for in-depth articles, FAQs, and tutorials for you to excel at hosting & managing your websites.


Fail2Ban in xCloud: Enhancing Server Security With Ease

Fail2Ban is a powerful feature integrated with xCloud, that protects your server from unauthorized access attempts and brute-force attacks. It automatically blocks harmful IP addresses from accessing essential services such as SSH, minimizing the risk of security breaches. This proactive method helps stop brute force attacks, spamming, port scanning, and other unauthorized attempts to get into your server.

xCloud has always had Fail2Ban integrated for server security. Now, with our latest update, managing security is simpler than ever. You can easily ban and unban IP addresses directly from your xCloud dashboard as well as ban new IP addresses with just a few clicks, giving you greater control over your server’s protection.

How Fail2Ban Works In xCloud #

  • Automatic Blocking: Fail2Ban quickly stops harmful IP addresses from trying to break into your server.
  • SSH Hardening: xCloud secures SSH logins during server setup to stop unauthorized access.
  • View Banned IP Addresses: Easily see the list of banned IP addresses that tried to force their way into your server.
  • Ban IP: Block an IP address.
  • Unban IP: Allow a banned IP address to connect by removing it from the block list.

How To Easily Ban IP Addresses With Fail2Ban in xCloud  #

After successfully logging in/signing up in xCloud, go to the server page dashboard. Under the Settings tab, you will find the Security option. Click on it and then you will find the Fail2Ban management options.

Fail2Ban

From here you can see the already Banned IP Addresses. You will have the option to Unban the IP addresses if the situation demands. 

Fail2Ban

To ban a new IP address click on Ban New IP Address, and a popup will appear. Simply write the address you want to ban and click on Ban IP, and it will be banned instantly. 

Fail2Ban

Whitelisting Trusted IP Addresses in Fail2Ban #

While Fail2Ban is excellent for blocking malicious actors, you want to ensure you donโ€™t accidentally lock yourself out of your own server. If you have a static IP address or a fixed corporate network range, you can whitelist these addresses.
Once an IP is whitelisted (added to the ignoreip list), Fail2Ban will never block it, regardless of how many failed login attempts occur.

Security Note: Only whitelist IP addresses that you fully trust. Misconfiguring this step by adding broad ranges can create a security loophole.

1. Open the Jail Configuration File #

To add a whitelist, first SSH into your server using a sudo user. Then, you need to edit the jail.local file. Use the following command to open it with the Nano editor:

Copy to clipboard
sudo nano -l /etc/fail2ban/jail.local

2. Add Your IP to the ignoreip Line #

Locate the line starting with ignoreip. By default, Fail2Ban whitelists your local machine (127.0.0.1/8).
To add your specific IP (e.g., 192.168.1.100), append it to the end of the line, separated by a space:

Copy to clipboard
ignoreip = 127.0.0.1/8 ::1 192.168.1.100

3. Save and Reload Fail2Ban #

After adding your IP, save the file by pressing Ctrl + O, then Enter, and exit with Ctrl + X.
To apply the changes, reload the Fail2Ban service. Reloading is preferred over restarting because it refreshes the configuration without interrupting the service:

Copy to clipboard
sudo systemctl reload fail2ban

4. Verify the Service Status #

It is a best practice to verify that the configuration change didn’t cause any errors. Check the service status with this command:

Copy to clipboard
systemctl status fail2ban

If the output shows active (running), your configuration is successful, and your IP is now protected from being banned.

With Fail2Ban seamlessly integrated into xCloud, you can be confident that your server is shielded from unauthorized access attempts and brute-force attacks. By utilizing this advanced security tool, you can solidify the overall security of your server and reduce the likelihood of security breaches.

Still stuck? Contact our support team for any of your queries. 

What are your feelings

Updated on February 3, 2026

Server Name

RAM

SSD

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Newcomer

1GB

25GB

$4.50

$5.00

$6.00

Basic

2GB

55GB

$9.00

$10

$12.00

Standard

4GB

80GB

$18.00

$20

$24.00

Professional

8GB

160GB

$36.00

$40

$48.00

Business

16GB

320GB

$72.00

$80

$96.00

Server Name

RAM

SSD/NVMe

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Lite

1GB

32GB

$5.40

$6.00

$8.00

Personal

2GB

88GB

$16.20

$18.00

$24.00

Growing

4GB

128GB

$21.60

$24.00

$32.00

Elite

8GB

256GB

$43.20

$48.00

$64.00

Titanium

8GB

384GB

$86.40

$96.00

$96.00

Ultimate

32GB

512GB

$172.80

$192.00

$192.00