If you want to allow or whitelist only a specific IP address on a port, you can enable using this article.
For instance, you only want to allow your local IP Address to connect to your RDP port. By doing this, you can easily restrict your server's access to your local IP address only and disallow all other IP addresses from connecting to your server.
You can also grant access to the same IP address to multiple ports on the same server.
By limiting access to specific IPs, the security of your servers can be improved.
- Login to the server using RDP. Please refer to how to connect VPS using RDP from the different OS for more details.
- Click on Start >> Administrative tools >> Windows Firewall with Advanced Security.
- Go to Inbound Rule >> New Rule
- Click on Custom and on the next page select All Programmes.
- You are at Protocol & Ports wizard.
- select the Specific Port option for the Remote Port and enter the port number and click Next.
- Here, we have used Non-standard RDP Port 5000.
- You will need to enter the Remote IP Address by which you want to connect your port.
- Click on the Add Button and enter the IP Address and click Ok and Next.
- Select Allow the connection option and click Next.
- On the Profile Page, select all three options. Domain, Private and Public.
- Click Next Button.
- In the final step, you need to provide the Name of this Rule. (eg. Remote Desktop - IP Restriction Rule)
- Click on the Finish button.
→ Looking to block IP or IP range on windows firewall? Please refer to Block IPs in Firewall for more details.
→ Looking to enable PING/ICMP on windows server? Please refer to Enable Ping for more details.
→ Looking to open firewall port on windows? Please refer to open firewall port for more details.
→ Looking to know about recommended ports in windows firewall? Please refer to recommended firewall port for more details.