You can allow or whitelist only specific IP Addresses on the required ports.
Suppose you have allowed only your local system IP Address to connect to the RDP port. It means that you can connect your server via RDP from your local system only. No other IP Address can connect the server via RDP.
You can allow other service ports on specific IP Addresses as well. It provides more security to the services you have configured on your server.
- 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 Last step, We need to provide the Name of this Rule. (eg. Remote Desktop)
- 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.