Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Generic User Avatar

Restricting RDP to certain IP addresses on my LAN...


  • Please log in to reply
6 replies to this topic

#1 mjl1297

mjl1297

  •  Avatar image
  • Members
  • 164 posts
  • OFFLINE
  •  
  • Local time:12:50 AM

Posted 09 April 2023 - 08:57 PM

Edition Windows 10 Pro
Version 21H2
OS build 19044.2728

The subject line pretty much says it all. I want the one machine I connect to using Remote Desktop to only accept incoming connections from two computers on my internal network. I've consulted several articles online and in spite of editing the existing firewall rules to only allow for the IP addresses of the two computers involved, the target machine is still accepting RDP requests from other computers outside the selected IP range.

Do I need to compose a new rule? Am I allowed to edit the existing rule given that there is a box at the top saying it is a predefined rule and certain aspects of its properties (which ones?) cannot be modified? Do I need to reboot the computer I'm making the changes on in order for them to take effect? I was given to understand that firewall rule modifications took effect instantly.

Any questions please ask and any help appreciated.


Edited by Chris Cosgrove, 10 April 2023 - 04:35 PM.
Moved from Win 10 Support to Networking


BC AdBot (Login to Remove)

 


#2 greg18

greg18

  •  Avatar image
  • Members
  • 1,701 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Los Angeles, CA
  • Local time:10:50 PM

Posted 10 April 2023 - 06:51 PM

No the subject does not state it all. In order to restrict to a certain group of workstations/servers, you would need to utilize VLAN and suggest using a VPN server. That means a managed system. Easier yet, use VNC or Teamviewer and only have those systems that need to be accessed running that software and disable RDP on all others.



#3 mjl1297

mjl1297
  • Topic Starter

  •  Avatar image
  • Members
  • 164 posts
  • OFFLINE
  •  
  • Local time:12:50 AM

Posted 11 April 2023 - 12:17 AM

Thanks greg18 for responding.

 

Actually, for me anyway, the subject line does say it all. It expressly states what I wish to do and I think I have found a way that isn't nearly as involved as you suggest. I won't be able to busy myself with the target box until the weekend though so I can't confirm until then but I shall post an update.

 

As for third party RDP programs, whilst VNC is all right, I would NEVER use or recommend Teamviewer. It's an overpriced and bloated POS program. I know that they have a "free" version they offer for personal use but if you use it long enough you will eventually get a message from them informing you that their tech department has somehow determined you are using the software in a commercial environment and they will deny you access to their servers unless you agree to pay the blackmail of their insanely high subscription fees. I speak from experience and I know several other people who can relate the same tale.

 

However, if my plan doesn't work your advice to disable the RDP and go with a third party program is sound enough. And I do operate behind a VPN at all times.



#4 svim

svim

  •  Avatar image
  • Members
  • 1,181 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:12:50 AM

Posted 11 April 2023 - 11:16 AM

Some points to keep in mind that IP addresses are device identifiers, each PC in your home LAN is assigned its own unique IP address by your home router. Windows RDP is a locally sourced service that runs on each PC, and its connectivity is more based on ports. Both are of course interrelated but perhaps you might want to redirect your efforts not so much with firewall rules and more in re-configuring RDP with your PCs. There are options in the setup menu on controlling local and external exposure:

https://www.pcmag.com/how-to/how-to-use-microsofts-remote-desktop-connection

 

IP addressing

https://www.bleepingcomputer.com/tutorials/ip-addresses-explained/

TCP and UDP ports

https://www.bleepingcomputer.com/tutorials/tcp-and-udp-ports-explained/

 

Given Windows RDP doesn't have the best reputation on security even if you lock it down from external access it might be better to block it using your router's setup menu. This will be a more reliable restriction from RDP to be accessible outside your home LAN. Do you have your VPN service set up individually on each PC, or instead on your router so it applies to your entire LAN?



#5 mjl1297

mjl1297
  • Topic Starter

  •  Avatar image
  • Members
  • 164 posts
  • OFFLINE
  •  
  • Local time:12:50 AM

Posted 12 April 2023 - 05:45 AM

Ok thanks guys.

 

I am looking at AnyDesk as my remote access software. 

 

One thing though, why would what's advocated in this tutorial not work? Also, if I am making the edits on the target box why do I need a static IP? How am I going to get locked out of my server? Or is that just a safety precaution?



#6 mjl1297

mjl1297
  • Topic Starter

  •  Avatar image
  • Members
  • 164 posts
  • OFFLINE
  •  
  • Local time:12:50 AM

Posted 14 April 2024 - 05:37 PM

Going through my bookmarks manager today doing a bit of tidying up and came across this post and here I am responding just a touch over a year to date! Lol! Better late than never I suppose!  :grinner:

 

Firstly, greg18 and svim thanks again for checking in. Your answers were instructive and indeed helpful in some of the research I subsequently conducted on both RDP and remote access software!

 

Secondly, my eventual approach to resolving the issue combined a bit of both.

 

So once again, BC.com was a port in the cyberstorm!



#7 Shplad

Shplad

  •  Avatar image
  • Members
  • 6,554 posts
  • ONLINE
  •  
  • Gender:Not Telling
  • Location:Canada
  • Local time:01:50 AM

Posted 15 April 2024 - 01:47 PM

Some points to keep in mind that IP addresses are device identifiers, each PC in your home LAN is assigned its own unique IP address by your home router. Windows RDP is a locally sourced service that runs on each PC, and its connectivity is more based on ports. Both are of course interrelated but perhaps you might want to redirect your efforts not so much with firewall rules and more in re-configuring RDP with your PCs. There are options in the setup menu on controlling local and external exposure:

https://www.pcmag.com/how-to/how-to-use-microsofts-remote-desktop-connection

 

I agree that in general, this is a more logical choice of action. However, I worry that with Microsoft being as boneheaded as they are, an update at some point will re-enable RDS connections on one or more of the boxes in question.

 

I think your second point, about blocking stuff at the router/network level is necessary as well here.


- Use this to collect and post information about your PC hardware, software and configuration (Whether or not you have crashing).

 

Blue Screen of Death (BSOD) Posting Instructions - Windows 10, 8.1, 8, 7 & Vista

https://www.bleepingcomputer.com/forums/t/576314/blue-screen-of-death-bsod-posting-instructions-windows-10-81-8-7-vista/

 

 





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users