M
M
mr_blond972016-03-30 23:36:29
openvpn
mr_blond97, 2016-03-30 23:36:29

How to restrict RDP connection only from a specific IP?

There is a windows server 2012 r2, you need to open an rdp connection only to users of the local OpenVPN network and close the connection from all other ip. I tried to create a rule in the firewall that prohibits connection on port 3389, but did not find how to make exceptions for the local network in this rule. How is this done using the windows firewall?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
O. J, 2016-03-31
@mr_blond97

windows_firewall_rdp_1_thumb.jpg
And you specify a pool of local addresses
windows_firewall_rdp_2_thumb.jpg

A
Alexey S., 2016-03-31
@Winsik

netsh to help
https://technet.microsoft.com/en-us/library/cc7710...

I
iKittles, 2019-07-05
@iKittles

A small addition, if remote desktop services are deployed on the server, that is, a terminal server, then this rule will not work.
The rule "Remote Desktop Services - User Mode (TCP - Incoming Traffic)" will work, and you need to set restrictions in it by analogy with this manual.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question