In short
- What to look for in a rule review: any-any rules, unused rules, undocumented rules and forgotten port forwards.
- The network should be split into at least management, server, user, voice/camera and guest zones, with inter-zone traffic managed on a “block by default” basis.
- Closing SMB/RDP traffic between user computers slows the spread of ransomware considerably.
In most businesses, the firewall doesn’t live in the state it was installed in, but with “temporary” rules added over the years. And the network is flat: servers, user computers, cameras and guests’ phones share the same broadcast domain. Put these two together, and an attacker who compromises a single computer spreads easily across the whole network. This article walks IT teams through rule review and network segmentation with practical steps. For the basic concepts, first see our article what is a firewall.
Part 1: Firewall rule review
Export the rules and build an inventory
Export all rules to a table with their source, destination, port/service, action, hit count, creation date and description. Most next-generation firewalls provide this directly from the management interface.
Review checklist
- Any-any rules: identify allow rules whose source, destination and service are “any”; each should be narrowed to the real need.
- Unused rules: rules whose hit counters have been zero for months are candidates for removal (disable them first and watch for a while).
- Shadowed rules: rules that never trigger because a broader rule sits above them cause confusion.
- Port forwards (NAT): for every port opened from outside to inside, ask whether it is still needed and whether the source can be restricted. Internet-facing RDP, SMB or database ports are unacceptable. See RDP security.
- Management interface: the firewall’s own management interface must not be reachable from the internet.
- Description and owner: every rule should have a written record of why it exists, who added it and when.
- Logging: logs should be kept for blocked traffic and critical allow rules.
Don’t forget egress traffic
Most firewalls allow everything from inside to outside. But outbound traffic should also be limited to make it harder for malware to communicate with the outside world and to exfiltrate data:
- Allow DNS queries out only from internal DNS servers; block clients from going directly to external DNS.
- Block SMB (445) and NetBIOS ports from leaving the network.
- Allow outbound SMTP (25) only from the mail server.
- Limit servers’ internet access to updates and the services they need.
Part 2: Network segmentation
An example zone (VLAN) design
| Zone | Example network | Contents |
|---|---|---|
| Management | 10.10.1.0/24 | Switches, firewall, hypervisors, server management cards (iDRAC/iLO) |
| Server | 10.10.10.0/24 | Domain controllers, file and application servers |
| User | 10.10.20.0/24 | Staff computers |
| Voice / Camera / IoT | 10.10.30.0/24 | IP phones, cameras, recorders, printers |
| Guest | 10.10.99.0/24 | Visitor and personal devices (internet only) |
If you’re new to VLANs, start with What is a VLAN?; for the switch, firewall and DHCP commands, see our VLAN configuration guide.
Inter-zone access matrix
The default rule is “block”; only the flows that are needed are opened:
| Source → Destination | Management | Server | User | IoT | Internet |
|---|---|---|---|---|---|
| Management | — | Management protocols | Management protocols | Management | Updates |
| Server | Required services | Limited | |||
| User | Application ports, DNS, AD | Printer ports | |||
| IoT | Recording server only | — | Limited | ||
| Guest |
Part 3: Micro-segmentation (within the same network)
User computers on the same VLAN can reach each other directly, and that is exactly how ransomware spreads. By managing Windows Defender Firewall through Group Policy, you can block SMB and RDP connections to user computers from other user computers:
# Example: block SMB and RDP connections from the user network on workstations
New-NetFirewallRule -DisplayName "Block SMB between workstations" -Direction Inbound `
-Protocol TCP -LocalPort 445 -RemoteAddress 10.10.20.0/24 -Action Block
New-NetFirewallRule -DisplayName "Block RDP between workstations" -Direction Inbound `
-Protocol TCP -LocalPort 3389 -RemoteAddress 10.10.20.0/24 -Action Block
# Status of Windows Firewall profiles
Get-NetFirewallProfile | Select-Object Name, Enabled, DefaultInboundAction, DefaultOutboundAction
For a permanent set-up, deploy these rules through Group Policy and explicitly allow connections from the management network; otherwise your remote support tools will be affected too.
Apply and verify changes safely
- Observe traffic first: work out from the logs which zone talks to which.
- Write rules in “allow and log” mode first and watch their effect, then switch to blocking.
- Apply changes in a change window and take a configuration backup so you can roll back.
- Test access between segments:
# From a computer on the user network, test access to the server and to another user
Test-NetConnection 10.10.10.5 -Port 445 # file server: should be allowed
Test-NetConnection 10.10.20.35 -Port 445 # another workstation: should be blocked
Conclusion
Regularly reviewed firewall rules and a segmented network keep a security incident confined to a single device. A rule inventory, egress filtering, zone design and micro-segmentation between workstations, applied together, make it much harder for an attacker to move through the network. At SistemON, as part of our network solutions and cyber security services, we review firewall rules and segment your network in stages without disrupting your workflow.
Frequently Asked Questions
How often should we review firewall rules?
A comprehensive review at least once a year is recommended, with extra checks after major network changes. Rules opened temporarily should be created with an end date and reviewed automatically when it passes.
Do VLANs provide security on their own?
No. VLANs separate traffic logically, but if routing between them isn’t controlled by a firewall or access lists, the segments can reach each other freely. Security comes from the rules applied to traffic between zones.
Why should user computers be blocked from reaching each other?
Ransomware and attackers spread from a compromised computer to others using SMB, RDP or remote management protocols. In normal workflows, user computers don’t need to connect to each other with these protocols; blocking them slows spreading considerably.
Need help with this?
Let us review your infrastructure free for the first month and share a clear list of risks and priorities.