LKBEN10912: Howto show and change the firewall settings for a windows 2008 server core-installation


Symptom

You have a windows server 2008 core server and need to check your firewall settings and open some ports

Cause

none

Solution

You can use the netsh command to check your firewall settings. e.g.

netsh firewall show state

This command will show you if your firewall is active and the state it has.

To open certain ports you use the following command. e.g.

netsh firewall add portopening ALL 53 DNS-server

netsh firewall add portopening TCP 135 remote-admin

netsh firewall add portopening UDP 137 netbios-ns

netsh firewall add portopening UDP 138 netbios-dgm

netsh firewall add portopening TCP 139 netbios-ssn

netsh firewall add portopening TCP 445 netbios-ns

Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!

About the Author

Author: Wim Peeters - Keskon GmbH & Co. KG

Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.