How to secure your Microsoft Windows Servers with SCW and Windows Firewall

You have installed the Windows Server operating system. It is working well. So now you should be thinking about the security, i.e. unnecessary ports, unlimited login access and ip restrictions. So if you haven’t got an hardware based firewall, you can use Microsoft’s SCW tool and Windows Firewall together to keep your server secure.

Security Configuration Wizard (SCW) is an attack-surface reduction tool for the Windows Servers. SCW guides system administrators in creating security policies based on the minimum functionality required for a server’s role or roles. In this article, i will show how to create the security policy you need and we will limit the access to your server with Windows Firewall configuring via GPO.

Firstly, we enable Security Configuration Wizard in Windows Components.

1

Then we run SCW.

2

Now, before clicking next, please make sure that all applications that use inbound ports are running. Then click next.

3

Now, we can create a new security policy, edit or apply an existing policy, or rollback to last applied security policy. We choose “Create a new security policy” and then we click next.

4

We must select the server which we use as a baseline for the security policy. Then click next.

5

Now, Security configuration database gets the necessary information.

6

Then, we continue for role based services. Click next.

7

We see installed server roles, we can add or delete new roles from the list.

8

Now we see the client roles of the server. We can add more or delete which we do not to perform.

9

We choose the administration options and click next.

10

If you want to allow addtional services, choose and click next.

11

The security policy, which now we configure, might be applied to the serverswith services not specified by the policy. So we choose one of the actions below.

12

Before continuing, SCW wants to confirm that service changes made by yourself.

13

Now we will configure inbound ports using Windows Firewall based on the roles that we selected.

14

From this screen, we can add or delete extra ports. Or you can prefer to defaults what windows found for you.

15

Now we must confirm the ports that we allowed or denied at previous window.

16

Now, at this section, we configure the protocols used to communicate with other computers. Click next.

17

Let’s choose the server attributes.

18

Choose the following minimum operating system requirement.

19

Now we select the methods for our server uses to authenticate wih remote computers.

20

Then we choose the outbound authentication setting using Domain Accounts.

21

Before continuing, we must confirm the registry settings that we applied.

22

Now at this section, we define audit policy for success and failure events.

23

I prefer to choose only successful activities’ audit.

24

Now we must confirm.

25

If webserver role was selected, SWC tool asks to configure IIS. We click next.

26

Select the Web Service extensions that you need and click next.

27

Remove the unneeded virtual directories and click next again.

28

You can deny anonymous users write access. It is totally up to you.

29

Before continuing, confirm your settings.

30

Save your security policy.

31

Give the security policy file name.

32

Choose Apply now and click next. (If you are not sure what you do, apply it later.)

33

You see that SCW is applying the security policy to your server.

34

And now click finish to complete the Security Configuration Wizard.

35

So, now we finished to configure our new policy with SCW. Now, we have closed unnecessary ports, roles and connectivities. So after than now, we will configure Windows Firewall for extra security.

To configure windows firewall, the best method is publishing that settings via GPO (Group Policy Objects). Create a new group policy object (or use your existing gpo) and link it to your server’s Ou. Then follow these steps to configure Windows Firewall via GPO. Computer Configuration -> Administrative Templates -> Network -> Network Connections -> Windows Firewall -> “Domain Profile” and then apply the same to “Standart Profile”.

k1

You can enable Windows Firewall by default.

k2

You can define port exceptions. ( I showed a sample below for remote desktop on 3475 port instead of 3389 only to my local network and vpn users’ network. You can open any port you need like this.)

k3 k4

And you can allow local port exceptions by default.

k5

Then update your group policy.

36

When your update is finish, click the Windows Firewall and check the properties. The general setting should be greyed out. Because now, they are controlling by GPO.

z1

And at Exceptions tab, the exceptions which you defined at GPO, should be greyed out and couldn’t changed by click.

z2

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>