Navigate to Start->Administrative Tools->Windows Firewall with
Advanced Security
In left navigation left click Inbound Rules
In the Right navigation left click New Rule…
Click Custom and Next
Click All programs and Next
Select Protocol Type and ports or choose Any and All
Click Next
In Which remote IP addresses does this rule apply to
click “These IP addresses” and click Add…
Enter public IP and click OK
Click Next
Click Allow the connection and Next
Choose when rule applies and Next
Give the rule a name and description. Click Next.
Click Finish.
You can also add a rule from the command line. The below example adds a rule to allow Remote
Desktop services from public IP 209.172.32.36 with the rule name of
RDesktopRule.
netsh advfirewall firewall add rule name="RDesktopRule"
action=allow remoteip=209.172.32.36 protocol=TCP dir=in localport=3389
Sources
http://terenceluk.blogspot.com/2013/09/enabling-tls-for-exchange-server-2010.html
http://www.rackspace.com/knowledge_center/article/creating-an-inbound-custom-allow-rule-for-windows-firewall-windows-2008
http://www.rackspace.com/knowledge_center/article/creating-an-inbound-custom-allow-rule-for-windows-firewall-windows-2008