# Windows Firewall

The Windows Firewall with Advanced Security is a firewall that runs on the Windows Server 2012 and is turned on by default. The Firewall settings within Windows Server 2012 are managed from within the <mark style="color:red;">**Windows Firewall Microsoft Management Console**</mark>. To set Firewall settings perform the following steps :

### <mark style="color:blue;">**Step 1**</mark> <a href="#step-1" id="step-1"></a>

Click on the <mark style="color:red;">**Server Manager**</mark> from the taskbar → Click the <mark style="color:red;">**Tools**</mark> menu and select <mark style="color:red;">**Windows Firewall with Advanced Security**</mark>.

<figure><img src="https://2804731566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLOszSitBb46QATDLUtW4%2Fuploads%2FIU5PAk62cfPvs4xvYfMU%2F0098.png?alt=media&#x26;token=12f51612-d283-4cd9-b3b7-9112465850b4" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">**Step 2**</mark> <a href="#step-2" id="step-2"></a>

To see the current configuration settings by selecting <mark style="color:red;">**Windows Firewall Properties**</mark> from the MMC. This <mark style="color:red;">**allows access to modify the settings**</mark> for each of the three firewall profiles, which are – Domain, Private and Public and IPsec settings.

<figure><img src="https://2804731566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLOszSitBb46QATDLUtW4%2Fuploads%2Fo2oDvsREhxznNMJunu0V%2F0099.png?alt=media&#x26;token=536863a2-5021-489b-85f5-393ce27c951f" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">**Step 3**</mark> <a href="#step-3" id="step-3"></a>

Applying custom rules, which will include the following two steps **:**

* Select either <mark style="color:red;">**Inbound Rules**</mark> or <mark style="color:red;">**Outbound Rules**</mark> under <mark style="color:red;">**Windows Firewall with Advanced Security**</mark> on the left side of the management console. (As you Know outbound traffic is the traffic generated from a server towards the internet and inbound traffic is vice versa). The rules that are currently enabled are denoted by a green checkbox icon, while disabled rules display a grey checkbox icon.
* Right-clicking a rule will allow you toggle enable/disable.

<figure><img src="https://2804731566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLOszSitBb46QATDLUtW4%2Fuploads%2FXjQ4QzqvBRdvduGihAqT%2F0100.png?alt=media&#x26;token=d52761fc-83ec-4ee5-aa98-891a7982b1be" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">How to Create a New Firewall Rule?</mark> <a href="#how-to-create-a-new-firewall-rule" id="how-to-create-a-new-firewall-rule"></a>

To create a new Firewall Rule, you have to adhere to the following steps:

### <mark style="color:blue;">**Step 1**</mark> <a href="#step-1-1" id="step-1-1"></a>

From the right side of either the Inbound Rules or Outbound Rules – click “<mark style="color:red;">**New Rule**</mark>”.

<figure><img src="https://2804731566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLOszSitBb46QATDLUtW4%2Fuploads%2FbSqRGu8Nt50rryyx8a0Y%2F0101.png?alt=media&#x26;token=c1aa6470-d4d4-4a1e-85fa-ef421ef24a9b" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">**Step 2**</mark> <a href="#step-2-1" id="step-2-1"></a>

Custom from the Rule Type radial button → click <mark style="color:red;">**Next**</mark>.

<figure><img src="https://2804731566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLOszSitBb46QATDLUtW4%2Fuploads%2FyVF1jadIBKbUfrxis1j2%2F0102.png?alt=media&#x26;token=a3c83ab1-a6fe-4d82-8450-a2c0a4c5d85b" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">**Step 3**</mark> <a href="#step-3-1" id="step-3-1"></a>

Select the Program association for the Custom Firewall Rule as either <mark style="color:red;">**All programs**</mark> or the path to a program → click <mark style="color:red;">**Next**</mark>.

<figure><img src="https://2804731566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLOszSitBb46QATDLUtW4%2Fuploads%2FFEAuEYe7BdrLKaH2W14W%2F0103.png?alt=media&#x26;token=4ba43ceb-6fa3-4be3-a08b-97ef7347153f" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">**Step 4**</mark> <a href="#step-4" id="step-4"></a>

Protocol type field <mark style="color:red;">**select the protocol type**</mark> → click <mark style="color:red;">**Next**</mark>.

<figure><img src="https://2804731566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLOszSitBb46QATDLUtW4%2Fuploads%2FnGpslfqXsLiwukjJS8jt%2F0104.png?alt=media&#x26;token=5ff27aab-bcb4-499a-a29e-c5e285c4719e" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">**Step 5**</mark> <a href="#step-5" id="step-5"></a>

Select an <mark style="color:red;">**IP address association**</mark> for both local and remote addresses → click <mark style="color:red;">**Next**</mark>.

<figure><img src="https://2804731566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLOszSitBb46QATDLUtW4%2Fuploads%2FZsTijVjKTCfBiYNCpGGD%2F0105.png?alt=media&#x26;token=f86a70e9-561a-40c5-8dd0-cb5148b17f11" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">**Step 6**</mark> <a href="#step-6" id="step-6"></a>

Select an action to take on matching traffic → click <mark style="color:red;">**Next**</mark>.

<figure><img src="https://2804731566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLOszSitBb46QATDLUtW4%2Fuploads%2FXD7i77gV6WzWcG59ndtp%2F0106.png?alt=media&#x26;token=51967a21-4e2b-4153-a82a-7a1f6d151e2b" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">**Step 7**</mark> <a href="#step-7" id="step-7"></a>

Select the profiles associated with the custom rule → click <mark style="color:red;">**Next**</mark>.

<figure><img src="https://2804731566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLOszSitBb46QATDLUtW4%2Fuploads%2F7SBGZVyLxxqRsRbDYBOW%2F0107.png?alt=media&#x26;token=0c105a76-1f17-4e39-ab27-5b53b070b466" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">**Step 8**</mark> <a href="#step-8" id="step-8"></a>

Put a name for your Firewall rule and an optional description → <mark style="color:red;">**Finish**</mark>.

<figure><img src="https://2804731566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLOszSitBb46QATDLUtW4%2Fuploads%2FXVCoCANEMX9TUCyk5gz8%2F0108.png?alt=media&#x26;token=6db60f2f-1aa2-489d-b9c7-a1540c49058c" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">**Step 9**</mark> <a href="#step-9" id="step-9"></a>

The firewall rule can be found on the corresponding Rule tab, either inbound or outbound depending on the type created. To disable or delete the rule find the rule in the MMC, right-click it and select either <mark style="color:red;">**Disable Rule**</mark> or <mark style="color:red;">**Delete**</mark>.

<figure><img src="https://2804731566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLOszSitBb46QATDLUtW4%2Fuploads%2Fekwwn0xbG7AkPpI2yPt2%2F0109.png?alt=media&#x26;token=f1396bf8-7bfb-4104-8421-2dc9ef3388bb" alt=""><figcaption></figcaption></figure>

