add custom firewall rule with netsh on Windows Server 2012R2

netsh advfirewall firewall add rule name="Port Scanner Range" dir=in action=allow protocol=ANY remoteip=192.168.1.96/27

netsh advfirewall firewall add rule name="Zabbix" dir=in action=allow protocol=ANY remoteip=192.168.1.85

Please follow and like us:

Add a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.