Jump to content

Recommended Posts

Posted

My hardware firewall is just a netgear adsl modem. I use port forwading to servers, and on my linux boxes i run iptables to limit connections to certain IPs.

 

Im wanting to forward 3389 (rdp) to a windows machine, but I want to limit connections to certain IPs only..

 

Is there anything in windows I can use to do this, or perhaps a 3rd party (free) application I can use?

 

Cheers

Posted

There's already a default rule for Remote Desktop, so you would only need to update it with the remote IPs. e.g.

 

netsh advfirewall firewall set rule name="Remote Desktop (TCP-In)" new remoteip=1.2.3.4,5.6.7.8

 

To specify a range of IPs you can do either of the following...

 

netsh advfirewall firewall set rule name="Remote Desktop (TCP-In)" new remoteip=1.2.3.4/32,5.6.7.8-5.6.7.14

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...