We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3
Setting up a firewall on Windows Server 2019 involves configuring the built-in
Windows Defender Firewall. Here’s a step-by-step guide:
1. Access Windows Defender Firewall 1. Open Server Manager: o Click on the Start button. o Open Server Manager. 2. Open Windows Defender Firewall: o In Server Manager, click on Tools. o Select Windows Defender Firewall with Advanced Security. 2. Configure Inbound and Outbound Rules You can create firewall rules to allow or block specific traffic. Create an Inbound Rule: 1. In the Windows Defender Firewall window, click on Inbound Rules on the left panel. 2. On the right panel, click on New Rule. 3. Select the type of rule: o Program: If you want to control traffic for a specific program. o Port: To control traffic based on TCP or UDP port. o Predefined: For rules already created for Windows services. o Custom: For custom rule settings. 4. For a Port rule: o Select Port, click Next. o Choose whether you want to control TCP or UDP traffic. o Enter the specific port number(s) (e.g., 80 for HTTP or 443 for HTTPS), then click Next. 5. Choose whether to Allow or Block the connection. 6. Select when the rule applies (Domain, Private, Public). 7. Name the rule (e.g., Allow HTTP Traffic), then click Finish. Create an Outbound Rule: 1. Click on Outbound Rules on the left panel. 2. Follow the same process as for inbound rules to define how outgoing traffic should be controlled. 3. Configure Firewall Profiles Windows Server 2019 uses different firewall profiles for different network environments: • Domain: When the server is connected to a domain. • Private: When connected to a private network. • Public: When connected to a public network. 1. In the Windows Defender Firewall window, click on Properties in the right panel. 2. For each profile (Domain, Private, Public): o Set Firewall State to On. o Set Inbound connections to Block (recommended). o Set Outbound connections to Allow (by default, but can be changed). 4. Allow a Program Through the Firewall 1. Go to Control Panel > System and Security > Windows Defender Firewall. 2. Click on Allow an app or feature through Windows Defender Firewall. 3. Click Change settings. 4. Check the box for the program or service you want to allow through the firewall. 5. Select the network type (Domain, Private, Public), then click OK. 5. Verify Firewall Status 1. To verify that the firewall is enabled, open Windows Defender Firewall. 2. On the left panel, click Turn Windows Defender Firewall on or off. 3. Make sure it’s turned on for Domain, Private, and Public networks. By following these steps, you will have successfully set up and configured the firewall on Windows Server 2019 to protect your system. Let me know if you need any PowerShell scripts or additional guidance for automating this configuration!