Answer the question
In order to leave comments, you need to log in
RDP ban for certain users from certain IPs?
There is a server with Win2003 Server, Kerio Winroute Firewall, Terminal Server. There is a screw user group Remote Desktop Users. It is necessary that certain users from this group can connect (RDP) both from local IP addresses (internal subnet) and from the Internet, and other users can connect (RDP) only (!!) from local IP addresses.
That is, so that the director, for example, can connect to the server both from home and from work directly, and Vasya Ivanov only from work.
How can this be implemented? Maybe Kerio rules or some screw mechanisms?
Answer the question
In order to leave comments, you need to log in
It is very bad to share a direct RDP connection outside, so I recommend hanging a VPN outside, but through it the connection will already be similar to LAN. Thus, the presence of permission for a VPN connection will be a natural restriction on connecting to a remote location not from a local network.
I think setting up a VPN for the director should not cause very big difficulties. Especially if you explain to him that this is a safer option.
as the boss said " With infinite time and infinite payment, everything is possible. "
So:
RDP is looking outside and no one wants to change it yet. (If there is a VPN, the problem disappears).
Those. outside RDP always responds, but if the correct password is entered, the correct user is entered, but the client is from outside, the connection must be refused.
Make a Logon script. Check the client's RDP address. And do not let extra)))
In order to forbid Vasya Ivanov to connect from home, and to allow the director, the order of the director will be enough.
It is not necessary to produce things unnecessarily.
Forward port 63000 to rdp port 3389 in kerio and give the boss an address to connect like myip:63000 instead of what he currently uses myip (aka myip:3389).
Made on Powrshell permission to log in via rdp only to certain users with the correct IP.
The situation is similar, only did for 1c7 rdp.
Also, for reliability, I disabled the account if the user logged in from the wrong IP, followed by manual activation upon request.
The script is executed at the rdp login event, checks the user, IP, if everything matches, does nothing, if it does not match - the event is logged (username, IP), the user account is disabled.
Logon script did not do because it will be executed for all users, but I needed only for certain ones.
Thanks everyone. The idea with vpn was spinning in my head, but I wanted to do it with the means already available. There is one thought, but the advice of people who worked with Kerio is needed:
Name: Deny rdp users
Source: Internet //interface to the internet
Destination: Prohibited //this group of Kerio users who should be denied RDP access from the internet. (Yes, Kerio allows you to specify user groups in this field)
Service: RDP //determine which service to close access to (the definition goes by port)
Action: Deny //actually, the rule is to refuse.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question