Mikrotik路由器RDPpowershell阻止与白名单

大师,

我们有一个miktorik路由器,我们想阻止RDPpowershell,但是我们也需要白名单来允许我们的学院连接而不会阻塞他们。 (他们有时打错密码..)

所以作为一个早期的post和@Regan的build议,我们用这个规则阻止RDP攻击:

add chain=forward protocol=tcp dst-port=3389 src-address-list=rdp_blacklist action=drop \ comment="drop rdp brute forcers" disabled=no add chain=forward protocol=tcp dst-port=3389 connection-state=new \ src-address-list=rdp_stage3 action=add-src-to-address-list address-list=rdp_blacklist \ address-list-timeout=10d comment="" disabled=no add chain=forward protocol=tcp dst-port=3389 connection-state=new \ src-address-list=rdp_stage2 action=add-src-to-address-list address-list=rdp_stage3 \ address-list-timeout=1m comment="" disabled=no add chain=forward protocol=tcp dst-port=3389 connection-state=new src-address-list=rdp_stage1 \ action=add-src-to-address-list address-list=rdp_stage2 address-list-timeout=1m comment="" disabled=no add chain=forward protocol=tcp dst-port=3389 connection-state=new action=add-src-to-address-list \ address-list=rdp_stage1 address-list-timeout=1m comment="" disabled=no 

但是这样,这个规则经常把我们的同事带到RDP黑名单(如果打了密码,或者用同一个IPlogin不同的计算机..)。

所以我需要修改这个代码,或者添加新的规则,如果RDP_White_List包含的是一个比总是允许连接的IP,而不是放到RDP_Black_list

所以我需要创build一个rdp_whitelist …

add chain = forward dst-port = 3389 src-address-list = rdp_whitelist action = accept

没关系。 但是,正确的规则顺序是什么? 因为这个接受规则不是在…

感谢您的build议…

这是我现在的规则:

在这里输入图像说明