Dev.to Security 🔐 Cybersecurity 👁 0 📖 3 min read

A firewall rule set you can explain in one sitting

I have 1 test for a small shop's firewall. Can the person who runs it explain the rule set to an assessor in one sitting? If it can't be explained in one sitting, it can't be defended in one either. That sounds like a l

I have 1 test for a small shop's firewall. Can the person who runs it explain the rule set to an assessor in one sitting? If it can't be explained in one sitting, it can't be defended in one either.

That sounds like a low bar. Most rule sets fail it.

The blinky box

MSPs love installing a branded firewall and telling the client the blinky box protects them. It doesn't. The blinky box protects nobody until it is configured, and it can carry every feature on the datasheet while doing nothing.

What a defensible rule set looks like

Get a decent layer 3 gateway, segment the network, route between VLANs on purpose, and never permit any-to-any.

Deny by default, allow by exception. That's 03.13.06 in ITSP.10.171. Every rule that allows traffic is an exception somebody can name and justify, and a rule with no owner and no reason is a candidate for deletion.

Segment by function, not by floor. A guest wifi that is a different SSID and nothing else is not segmentation. Guest and personal devices need their own SSID and VLAN, firewalled from production. I've seen a shop where employees' phones joined a wifi that was the same flat network as the CAD workstations and the CNC controllers. There was no rule between them because nobody had written one. Nobody broke a policy. The network grew that way.

The other word to watch is "real." A VLAN with an any-any rule between segments is a diagram, not a separation. If the enclave is in a segment, the rules into that segment are the boundary, and those are the rules an assessor will read first.

What to bring to the assessment

3 things, and they will ask for the rule set:

  • A logical topology diagram that matches the running network.
  • The list of controls between a user and the enclave.
  • The firewall rule set.

Add DNS filtering. In Canada, CIRA DNS Firewall is the business service, and Canadian Shield is the free home product. Then lock down web access on the enclave to what the work needs.

Audit the configuration

This is why configuration auditing matters. A rule set drifts. Temporary rules for a vendor or a test stay behind, and soon the rules are no longer the ones anybody reviewed.

2 tools I point people to. rConfig is my push for network gear, because configurations can be diffed automatically and drift shows up on its own. Nipper is another option for auditing switch and firewall configurations. Either one gives you an arm's-length read of what someone else wrote.

Pair the tools with a change process. Someone wants to change a firewall rule, so they submit a request, a named approver approves it, a window is set, and completion gets recorded. When an auditor asks if you do change management, "yes" is followed by "show me," and the answer is the request, the completion record, and the documented process they match.

When the provider writes the rules

If an MSP manages the firewall, ask for the rule set, in full, on request. Your IT provider shouldn't be assessing its own work, and any provider that hides behind "proprietary" or refuses configuration access is a red flag. Whoever operates the firewall, you need a copy of what is running and a quarterly review of it, as a deliverable.

Read your own rule set this week. If you can't explain a rule, find its owner.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.