Guide to blocking Ports and IPs on Windows Server 2012 simply and effectively
https://www.youtube.com/watch?v=wOxNjcy92kU During server system administration and operation, especially on systems running Windows Server 2012, blocking Ports and IPs is...
During the management and operation of server systems, especially systems using Windows Server 2012, blocking Ports and IPs is an important step to control traffic and enhance security. Incorrectly configured ports and IP addresses can be vulnerabilities exploited by hackers.
However, not everyone knows how to block ports and IPs on Windows Server effectively, especially beginners. Some common errors users encounter include:
- Unsure which exact port is being exploited or needs to be blocked.
- Misconfigured rules negatively affect connections to legitimate services.
- Unsure how to add or exclude a specific IP from the access list.
- Complex management interface, prone to confusion between Inbound and Outbound Rules.
Why block Ports and IPs on Windows Server 2012 R2
- Prevent attacks from outside
- Minimize the risk of DoS attacks
- Control Access from Unknown Users
- Ensure Data Safety&Services
Guide on How to Block a Port
Step 1:open Control Panel, then navigate to and click on Administrative Tools – where powerful administration tools for your system are assembled.
Step 2:Find in the list and select Windows Firewall with Advanced Security.
Step 3:In the right menu, click New Rule
Step 4:Select Port and click Next
Step 5:Continue by selecting TCP, entering the port you want to block, and clicking Next
Step 6:Select Block the connection. Then, click Next to continue.
Step 7:Check all boxes and click Next
Step 8:Next, in the Name section, enter any rule name and click Finish.
Step 9:Repeat steps 3 through 8 for Outbound Rules.
Guide on How to Block an IP
Step 1:Similar to steps 1, 2, and 3 of port blockingStep 2:Select Rule Type, this time choose Custom and click Next
Step 3:Continue by selecting All programs and clicking Next.
Step 4:At the Protocol and Ports step, leave defaults intact and click Next.
Step 5:At the Scope step, under Which remote IP addresses does this rule apply to?, select These IP addresses. Click Add and enter the IP address you want to block, then click OK
STEP 6:Select Action, Profile, name the Rule, and repeat the following steps as when blocking ports to complete.
A few notes from VPTS
- Do not block system ports if you are unsure — this may cause connection loss or service errors.
- Clearly note rule names to avoid confusion later.
- VPTS always advises customers to regularly review logs and monitor connections to the server to detect anomalies in a timely manner.
- Prevention is better than cure – Proactively blocking hazardous ports/IPs not only ensures stable system operations but also improves early threat resilience.
CONCLUSION
Blocking ports and IPs is one of the simplest yet most crucial steps to protect Windows Server 2012 servers from security risks. With just a few steps in Windows Firewall with Advanced Security, you can prevent unauthorized access, protect critical services, and reduce the risk of external attacks.As a leading provider in network infrastructure and system security,VPTSalways accompanies customers in configuring and optimizing server security. If you need assistance with firewall configuration, security monitoring, or in-depth consulting, do not hesitate to contact the VPTS technical team for prompt, professional support.
VPTS – Comprehensive Digital Infrastructure Solutions Provider
VPTS is a digital infrastructure solution provider in Vietnam, serving deployment, operation, and data storage needs for individuals, developers, and enterprises. The service ecosystem includesVietnam VPS, International VPS, VPS Anti DDoS, Hosting cPanel, dedicated server, Rack rental, Proxy IPv4/IPv6, S3 MinIOandCloud Storage.
Besides providing infrastructure resources, VPTS also focuses on assisting customers with deployment, configuration, and practical troubleshooting. Content on the VPTS Blog is drawn from common scenarios in operating VPS, servers, and online systems, helping readers understand root causes and apply clear solutions.
VPTS – Stable infrastructure, flexible solutions, and continuous partnership throughout operations.
VPTS Team Contact Information
Website: https://vpts.shop
Facebook: https://www.facebook.com/trang.vpsttt/
Zalo OA: https://zalo.me/vpstttgroup
Hotline: 0328 812 674