Windows Firewall via NetSH


netsh advfirewall firewall add rule name = ExchangeSMTPFirewall dir = in protocol = tcp action = allow localport = 2525 remoteip =localsubnet profile = DOMAIN