---
title: 'Protecting an RDP connection against bruteforce with IPBan | Zomro'
description: 'In this article, we will look at how to protect a RDP connection from bruteforce using the IPBan tool.'
image: 'https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/05/22/image-20230522184331-1.jpg'
---

![opened image]()

  * [Zomro](https://zomro.com/)
  * [FAQ](https://zomro.com/blog/faq/)
  * Protecting an RDP connection against bruteforce with IPBan 



# Protecting an RDP connection against bruteforce with IPBan

22-05-2023

Remote control of computers has become an important part of daily work for many IT professionals. However, with this comes certain security risks. One of these risks is remote desktop root-forwarding (RDP) attacks. In this article, we will look at how to protect a RDP connection from bruteforce using the IPBan tool.

As we know, a bruteforce attack is a cyberattack method where an attacker tries to guess a password using all possible combinations of characters until he finds the right one. In the case of RDP, the attacker can gain access to your computer if the username and password are matched.

## 

## **What is IPBan and how does it work?**

IPBan is free and open-source software designed to protect against bruteforce attacks on various services such as RDP, FTP, SQL and others. IPBan monitors failed login attempts and blocks IP addresses from which attacks are launched.

### **Installing IPBan**

1\. Download IPBan from the official website: <https://github.com/DigitalRuby/IPBan/releases>

![Protecting an RDP connection against bruteforce with IPBan - 1](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/05/22/image-20230522184331-1.jpg)

2\. Unzip the archive and move the IPBan folder to a convenient location on your computer.

![Protecting an RDP connection against bruteforce with IPBan - 2](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/05/22/image-20230522184828-2.jpg)

3\. Run the executable file IPBan.exe with administrator rights (right click and select "Run as administrator").

![Protecting an RDP connection against bruteforce with IPBan - 3](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/05/22/image-20230522184850-4.jpg)

### **Configuring IPBan**

1\. Find the IPBan.config file in the IPBan folder and open it with Notepad or another text editor.

![Protecting an RDP connection against bruteforce with IPBan - 4](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/05/22/image-20230522185010-6.jpg)

2\. modify the parameters in the configuration file to suit your needs. The main parameters to change are:

\- "**banTime** ": the time for which an IP address will be blocked after a certain number of failed attempts. Set it according to your security requirements (e.g. "1.00:00:00" to block for 1 day).

"**failedLoginAttemptsBeforeBan** ": the number of failed login attempts after which the IP address will be blocked. It is recommended to set this value not too low to avoid false positives.

"**whitelist** ": a list of IP addresses that will never be blocked. Enter the IP addresses from which you always want to access RDP, such as your home or office IP address.

Save your changes and close the configuration file.

**Launch IPBan.**

Run IPBan.exe with administrative privileges (if you have not already done so).

If executed successfully, IPBan will run in the background and block IP addresses from which bruteforce attacks are launched.

![Protecting an RDP connection against bruteforce with IPBan - 5](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/05/22/image-20230522184859-5.jpg)

### **Checking IPBan operation**

Open the Event Viewer in Windows and look for "Windows Logs".

![Protecting an RDP connection against bruteforce with IPBan - 6](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/05/22/image-20230522185406-7.jpg)

You can also see how the IPBAN service works by running the command: **services.msc**

![Protecting an RDP connection against bruteforce with IPBan - 7](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/05/22/image-20230522185639-8.jpg)

Open the "Security" section to see records of login attempts and IP blocking.

![Protecting an RDP connection against bruteforce with IPBan - 8](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/05/22/image-20230522190052-9.jpg)

Verify that IPBan is successfully blocking attacking IPs.

**Conclusion**

Using IPBan is an effective way to protect your RDP connection from bruteforce attacks. However, in addition to IPBan, other security measures are recommended, such as using complex passwords, limiting RDP access to only trusted IP addresses, and regularly updating your operating system and anti-virus software.

By following the instructions in this article, even novice users can effectively protect their RDP connections from bruteforce attacks, increasing the security of their computer systems.

We also suggest you other useful articles:

  * [How to change the port for RDP connection on Windows Server](https://zomro.com/blog/faq/421-how-to-change-the-port-for-rdp-connection-on-windows-server)
  * [How to view RDP connection logs in Windows Server 2016, 2019](https://zomro.com/blog/faq/277-how-to-view-rdp-connection-logs-in-windows-2016-2019)
  * [Connecting via mstsc.exe with the /admin parameter: what you need to know](https://zomro.com/blog/faq/469-connecting-via-mstscexe-with-the-admin-parameter-what-you-need-to-know)



Similar articles:

[Nano text editor](https://zomro.com/blog/faq/189-kak-redaktirovat-fajly-na-linux-servere-ot-zomro) [How to install phpMyAdmin in Docker](https://zomro.com/blog/faq/289-kak-ustanovit-phpmyadmin-v-docker) [How to file a complaint about abuse](https://zomro.com/blog/faq/595-kak-podat-zhalobu-na-zlopolzovanie) [VestaCP: Database without user prefix.](https://zomro.com/blog/faq/214-vestacp-baza-dannyh-bez-prefiksa-polzovatelja) [How to install and configure IIS on Windows Server](https://zomro.com/blog/faq/349-kak-ustanovit-i-nastroit-vebserver-iis-php-i-mysql-na-windows-server)

[ GPU server from €174.80/mon ](/dedicated-servers/type=gpu)
