Latest / CyberCode Academy / Course 32 - Checkpoint CCSA R80 | Episode 4: Layers, Timing, and Collaborative Firewall Management
Transcript
- 0:00Speaker 1: Imagine you are standing at the control center of this massive,
- 0:04Speaker 1: bustling digital fortress. You've got data flying in and out,
- 0:08Speaker 1: users accessing the Internet, external traffic constantly knocking on your servers,
- 0:13Speaker 1: administrators making all these tweaks.
- 0:15Speaker 2: It's pure chaos, honestly.
- 0:17Speaker 1: Yeah, exactly, and your job as the listener today is
- 0:20Speaker 1: to control this chaos smoothly, securely, and critically without slowing
- 0:28Speaker 1: everything down to a crawl.
- 0:29Speaker 2: Which is much harder than it sounds.
- 0:31Speaker 1: Oh, absolutely so. Welcome back to the deep dive. Today.
- 0:34Speaker 1: We are stepping right into the shoes of a network
- 0:37Speaker 1: security expert. We're going to walk step by step through
- 0:39Speaker 1: configuring advance bulletproof security policies.
- 0:42Speaker 2: Yeah, we're really getting into the architecture today. How to
- 0:45Speaker 2: handle logic, time and well human error.
- 0:49Speaker 1: Right, We'll explore how to control traffic based on the clock,
- 0:53Speaker 1: how to optimize rules so the system runs lightning fast,
- 0:56Speaker 1: how to collaborate without completely stepping on your colleague's toes,
- 1:00Speaker 1: and finally, how to deploy these policies flawlessly.
- 1:03Speaker 2: It's a journey from pure theory to actual physical hardware.
- 1:07Speaker 1: Okay, let's unpack this. We need to start with the
- 1:10Speaker 1: most fundamental restriction, which is time. Right, because you don't
- 1:14Speaker 1: just want to control what traffic gets in, you really
- 1:17Speaker 1: need to control when it gets in exactly.
- 1:19Speaker 2: Time introduces this incredibly dynamic variable into your rule set.
- 1:23Speaker 2: It's not just a static list anymore.
- 1:25Speaker 1: So how do we actually build that?
- 1:27Speaker 2: Well, you open your security management dashboard usually called the
- 1:30Speaker 2: smart console, and you create what are called time objects. Okay,
- 1:34Speaker 2: you don't write scripts. You just build dedicated objects. So
- 1:37Speaker 2: you might create one object for the first half of
- 1:40Speaker 2: the day, say from midnight or zero zero zero zero
- 1:43Speaker 2: to noon, and then you create another object for the
- 1:46Speaker 2: second half of the day noon to twenty three fifty nine.
- 1:49Speaker 1: Simple enough, and then you attach those to the rules.
- 1:52Speaker 2: Yeah, exactly, because firewalls read rules from top to bottom sequentially.
- 1:57Speaker 1: Right like a waterfall.
- 1:58Speaker 2: Exactly. If a piece of traffic, if it matches rule
- 2:00Speaker 2: number one, it just stops right there. It doesn't even
- 2:03Speaker 2: bother checking the rest of the list. So to control access,
- 2:07Speaker 2: you modify rule number one by adding your new time
- 2:09Speaker 2: object as a mandatory condition.
- 2:12Speaker 1: Wait, so it's if it's three point zero zero am
- 2:15Speaker 1: and rule one only permits access from noon to midnight,
- 2:19Speaker 1: what happens.
- 2:20Speaker 2: The system sees the time doesn't match, so it bypasses
- 2:23Speaker 2: rule one completely and moves to rule two. Ah.
- 2:26Speaker 1: Okay, so this is basically like a bouncer at a
- 2:28Speaker 1: VIP club.
- 2:29Speaker 2: A bouncer I like that.
- 2:30Speaker 1: Yeah, Like, if you're on the list, you can get in.
- 2:32Speaker 1: But if your ticket specifically says matine only and it's
- 2:35Speaker 1: ten pm, the bouncer just skips you and looks at
- 2:38Speaker 1: the very next person in line.
- 2:40Speaker 2: That is exactly how the logic engine handles it. It
- 2:42Speaker 2: just invalidates the rule for that specific packet.
- 2:44Speaker 1: Well wait, that brings up a huge practical issue. Oh yeah,
- 2:47Speaker 1: how do we actually test this? If I'm an engineer
- 2:50Speaker 1: and I'm building this massive system during the day, right
- 2:53Speaker 1: like two pm, but I desperately need to test a
- 2:56Speaker 1: night rule, I can't just stall a multimillion dollar mone
- 3:00Speaker 1: migration waiting for the sun to go down.
- 3:02Speaker 2: No, you definitely can't. And you don't want to mess
- 3:04Speaker 2: with the physical clock on the server either, because that
- 3:06Speaker 2: destroys your certificates. What's fascinating here is how you exploit
- 3:10Speaker 2: that top down architecture to test it instantly.
- 3:12Speaker 1: Okay, how you.
- 3:13Speaker 2: Simply duplicate the rule? Yeah, you make rule one rely
- 3:17Speaker 2: on the zero to twelve daytime object and rule two
- 3:20Speaker 2: rely on the twelve to twenty four nighttime object. Right,
- 3:23Speaker 2: and because you're testing during the day, you swap them.
- 3:25Speaker 2: You literally drag and drop their order. If you put
- 3:28Speaker 2: the daytime rule on top, your logs will immediately light up,
- 3:31Speaker 2: proving the system is accepting the traffic.
- 3:33Speaker 1: And to prove the nighttime rule drops it.
- 3:35Speaker 2: You just drag the nighttime rule above the daytime rule.
- 3:38Speaker 2: The system hits it, seize the clock doesn't match, and
- 3:41Speaker 2: bypasses it. You instantly verify the exact logic without ever
- 3:45Speaker 2: waiting for the actual clock to strike midnight.
- 3:47Speaker 1: That is so smart. You're just playing with the sequel exactly,
- 3:50Speaker 1: but relying on that sequential reading checking rules from top
- 3:55Speaker 1: to bottom. That feels like a huge problem. If we're
- 3:58Speaker 1: adding tons of condition as we add more rules for
- 4:02Speaker 1: different times user servers, the list just grows.
- 4:06Speaker 2: Oh, it grows massively.
- 4:07Speaker 1: Right. If a security policy is I don't know, a
- 4:09Speaker 1: thousand lines long, the system has to check every single
- 4:12Speaker 1: line until it finds a match. Doesn't they cause massive delays.
- 4:16Speaker 2: It creates devastating CPU spikes. I mean, sequential reads are
- 4:20Speaker 2: horribly inefficient at scale, so we have to optimize. We
- 4:24Speaker 2: have to organize the chaos.
- 4:25Speaker 1: Okay, how do we do that?
- 4:27Speaker 2: First? For the humans, we use section titles, like you know,
- 4:31Speaker 2: a management section or user traffic section. It just lets
- 4:35Speaker 2: administrators collapse and expand groups of rules so they can
- 4:38Speaker 2: actually read the screen.
- 4:40Speaker 1: Just visual organization, right.
- 4:42Speaker 2: But for the computer's performance, we introduce a total game changer.
- 4:46Speaker 2: We use inline layers. Inline layers, yeah, parent and child rules.
- 4:51Speaker 2: Think of it like a restaurant menu. Okay, if you
- 4:53Speaker 2: walk into a restaurant and you have, say a strict
- 4:56Speaker 2: dietary restriction, the restaurant probably has a specific portion of
- 5:00Speaker 2: the menu just for you, like a gluten free section. Right. Yeah,
- 5:03Speaker 2: you don't sit there and read the entire menu from
- 5:05Speaker 2: front to back. You skip straight to your specific section
- 5:08Speaker 2: and only read those options.
- 5:09Speaker 1: Oh I see.
- 5:10Speaker 2: So in the firewall, we create a parent rule. Let's
- 5:12Speaker 2: say we call it inside to outside, which is just
- 5:15Speaker 2: traffic from the internal network going to the Internet. Instead
- 5:18Speaker 2: of setting the action to accept or drop, you set
- 5:21Speaker 2: the action to an inline layer. This opens up a
- 5:24Speaker 2: nested sub policy of child rules, like rule two point
- 5:28Speaker 2: one is for DNS. Rule two point two is for
- 5:30Speaker 2: HTTP and so on.
- 5:32Speaker 1: Wait. Wait, doesn't nesting rules inside other rules make the
- 5:35Speaker 1: firewall work harder. I mean you're literally adding sub rules.
- 5:38Speaker 2: It seems like it would, but it's actually incredibly efficient.
- 5:41Speaker 2: Why because of the bypass. If a packet comes from
- 5:44Speaker 2: the outside Internet trying to reach a server, the firewall
- 5:47Speaker 2: looks at that parent rule, the inside to outside rule.
- 5:50Speaker 1: Right, the direction is wrong, exactly.
- 5:52Speaker 2: It immediately sees the direction doesn't match, so it skips
- 5:55Speaker 2: all the nested child rules entirely. It just jumps completely
- 5:58Speaker 2: over that section of the menu.
- 5:59Speaker 1: Oh wow, So it bypasses potentially hundreds of rules in
- 6:02Speaker 1: a fraction of a millisecond.
- 6:04Speaker 2: Yes, it saves massive amounts of processing power. And to
- 6:07Speaker 2: keep it secure. At the end of these sections, you
- 6:09Speaker 2: always add a cleanup rule, a cleanup role, yeah, a
- 6:12Speaker 2: mandatory default rule at the very bottom of the layer.
- 6:15Speaker 2: So if traffic gets inside the layer but doesn't match
- 6:18Speaker 2: the specific allowances, the cleanup rule just drops it.
- 6:21Speaker 1: Okay, So from an auditing perspective, that's actually really clean.
- 6:25Speaker 1: You have this beautifully optimized lightning fast policy extremely fast.
- 6:29Speaker 1: But let's talk about the real world for a second. Okay,
- 6:34Speaker 1: because in the real world, you are almost never the
- 6:37Speaker 1: only person managing this fortress.
- 6:39Speaker 2: Definitely not. You've got a whole team.
- 6:41Speaker 1: Right, So what happens when multiple administrators try to change
- 6:45Speaker 1: these nested rules at the exact same time.
- 6:47Speaker 2: Yeah, multi admin collaboration is tricky. You're treating the policy
- 6:51Speaker 2: like a live database. So first you have to break
- 6:53Speaker 2: down user management. Okay, Well, there are core operating system users,
- 6:58Speaker 2: the people who have absolute root power over the Linux kernel,
- 7:02Speaker 2: and then there are specific dashboard users. You create a
- 7:05Speaker 2: dashboard user, give them a password, and assign them a
- 7:08Speaker 2: super user profile.
- 7:09Speaker 1: So they have full access to edit the policies, but
- 7:11Speaker 1: they can't break the underlying server exactly.
- 7:14Speaker 2: But let's paint a picture. Say two admins are logged
- 7:16Speaker 2: in simultaneously. Okay, you double click a DNS rule to
- 7:19Speaker 2: update its name. The very second you start typing, a
- 7:23Speaker 2: tiny pencil icon appears next to the rule on your screen.
- 7:26Speaker 1: A pencil icon.
- 7:27Speaker 2: Yeah, it means you have an unpublished pending change.
- 7:31Speaker 1: Okay, here's where it gets really interesting, because this is
- 7:34Speaker 1: a lot like working in a shared online document, right,
- 7:38Speaker 1: like Google docs or something.
- 7:39Speaker 2: It is very similar.
- 7:40Speaker 1: Yeah, but instead of just seeing someone's little cursor floating
- 7:43Speaker 1: around on the screen. The system literally puts a padlock
- 7:48Speaker 1: on the paragraph so you don't accidentally crash the firewall
- 7:51Speaker 1: by overwriting their code.
- 7:52Speaker 2: That's spot on. The second admin doesn't see a pencil,
- 7:55Speaker 2: they see a lock icon.
- 7:57Speaker 1: Oh wow.
- 7:57Speaker 2: Yeah, And if they hover over that lock, they see
- 8:00Speaker 2: your username. They can even click more details, and the
- 8:02Speaker 2: system gives them your IP address and your session notes.
- 8:05Speaker 1: That is robust. But wait, what if that admin, the
- 8:09Speaker 1: one with the lock, goes to a three hour lunch
- 8:11Speaker 1: and leaves the rule locked, or what if there's a
- 8:13Speaker 1: crisis and we need to edit that exact rule right now.
- 8:16Speaker 2: Yeah, you can't wait for a database lock to just
- 8:18Speaker 2: time out during a breach, So.
- 8:21Speaker 1: The system has a built in solution. You can right
- 8:23Speaker 1: click their active session and select takeover.
- 8:25Speaker 2: Takeover. Does it just quietly steal the lock? Oh no, no, no,
- 8:29Speaker 2: The system gives you a giant warning message it's a
- 8:33Speaker 2: violent database action. If you click proceed, the locked out
- 8:37Speaker 2: admin the one at lunch, gets a pop up saying
- 8:40Speaker 2: their session was forcibly terminated. Wow, just kicked out entirely yep,
- 8:44Speaker 2: And then you own their workspace. You can now publish
- 8:47Speaker 2: their half finished work. If it's good, or just discard
- 8:50Speaker 2: it entirely and revert the rule.
- 8:51Speaker 1: That makes total sense. You have to maintain operational control. Okay,
- 8:56Speaker 1: so we've built the policy, we've optimized it with inline layers.
- 9:00Speaker 1: You safely collaborated on it by hijacking sessions if we
- 9:03Speaker 1: need to. Right, the final step has to be pushing
- 9:05Speaker 1: it live, like taking it out of our management dashboard
- 9:09Speaker 1: and installing it onto the actual firewalls that enforce the network.
- 9:12Speaker 2: The deployment phase. And this is where things often break.
- 9:15Speaker 2: Really why, Well, you have to understand the install on column.
- 9:18Speaker 2: By default, management systems want to push your policy to
- 9:22Speaker 2: all your gateways, every single firewall, but.
- 9:24Speaker 1: Not every firewall needs every.
- 9:26Speaker 2: Rule right Exactly, if you have rules managing your specific
- 9:30Speaker 2: admin PC communicating with firewall one, those rules only need
- 9:33Speaker 2: to live on firewall one. If you push them to
- 9:35Speaker 2: firewall two in another country, you're just wasting memory.
- 9:38Speaker 1: So you restrict it.
- 9:39Speaker 2: Yeah, you simply use the drop down menu in the
- 9:42Speaker 2: install on column to restrict that specific parent rule to
- 9:46Speaker 2: firewall one.
- 9:47Speaker 1: Okay, that sounds easy enough. What's the pitfall?
- 9:49Speaker 2: Let me walk you through a very common real world error.
- 9:53Speaker 1: Okay, wait on me.
- 9:54Speaker 2: You've got your newly minted insight to outside rule. You've
- 9:57Speaker 2: restricted it to Firewall two install policy. A little progress
- 10:02Speaker 2: bar appears at the bottom left of your screen. It
- 10:04Speaker 2: hits ten percent, fifty percent, and then boom, installation failed.
- 10:09Speaker 1: So what does this all mean? Did we break the code?
- 10:12Speaker 1: Is the database corrupted?
- 10:14Speaker 2: Usually know, the logic is perfectly fine. You calmly click
- 10:17Speaker 2: the error details, and it tells you Firewall two doesn't
- 10:20Speaker 2: have an inside or outside zone attached to its interfaces.
- 10:23Speaker 1: Wait, I don't get it. We just built an inside outside.
- 10:25Speaker 2: We built an abstract rule. We told the map what
- 10:27Speaker 2: to do, but we didn't label the physical territory the
- 10:30Speaker 2: hardware firewall just as physical ports copper and fiber. It
- 10:35Speaker 2: only knows it has Ethernet zero and Ethernet one. It
- 10:38Speaker 2: doesn't know what inside means.
- 10:40Speaker 1: Oh, it's looking for a contextual tag that hasn't been
- 10:43Speaker 1: defined on the actual hardware.
- 10:44Speaker 2: Precisely, you have to open the gateway's actual network management settings.
- 10:49Speaker 2: You double click Ethernet zero, modify its topology and explicitly
- 10:53Speaker 2: tell it you are the outside.
- 10:55Speaker 1: Zone, and then do the same for Ethernet one as
- 10:57Speaker 1: the inside zone.
- 10:58Speaker 2: Exactly, you map the abstract logic the physical reality. Once
- 11:01Speaker 2: those tags are defined, you hit publish, you install again,
- 11:05Speaker 2: and boom, successful deployment. The policy is live.
- 11:09Speaker 1: That is it's incredible. You're really acting as both a
- 11:12Speaker 1: database programmer and a physical network engineer at the same time.
- 11:15Speaker 2: You have to be both.
- 11:16Speaker 1: So just to recap the listener's journey today, we started
- 11:19Speaker 1: by acting as a time based bouncer, skipping rules to
- 11:22Speaker 1: test night logic during the day. Then we organized our
- 11:25Speaker 1: rules into an efficient restaurant menu using inline layers so
- 11:29Speaker 1: the CPU doesn't.
- 11:30Speaker 2: Melt crucial for performance.
- 11:32Speaker 1: We successfully navigated a multi admin workspace by forcibly hijacking
- 11:36Speaker 1: a locked session, and finally, we mapped our abstract network
- 11:40Speaker 1: topology to actual physical ports to push the policy live
- 11:44Speaker 1: to the world.
- 11:45Speaker 2: It's quite the workflow. And if we connect this to
- 11:47Speaker 2: the bigger picture, you know, configuring firewalls just isn't about
- 11:51Speaker 2: blocking bag guys anymore.
- 11:53Speaker 1: What is it about.
- 11:54Speaker 2: It's about designing a digital ecosystem, an ecosystem that is
- 11:58Speaker 2: legible to human engineers, invisible to authorized users, and absolutely
- 12:03Speaker 2: impenetrable to unauthorized traffic. The true art of cybersecurity really
- 12:07Speaker 2: lies in finding that balance.
- 12:09Speaker 1: The true art. I love that. Before we go, here's
- 12:12Speaker 1: a quick exercise for you, the listener, to try in
- 12:14Speaker 1: your head.
- 12:14Speaker 2: Oh, this is a good one.
- 12:16Speaker 1: Imagine you want to allow specific marketing software to access
- 12:19Speaker 1: the Internet, but only during business hours. Think about the
- 12:22Speaker 1: exact sequence we just covered. Would you create the time
- 12:24Speaker 1: object first or the inline layer? And how would you
- 12:27Speaker 1: actually test it without waiting for the clock to strike
- 12:30Speaker 1: five pm.
- 12:30Speaker 2: Play around with that sequence in your mind. It really
- 12:33Speaker 2: solidifies the architecture absolutely well.
- 12:35Speaker 1: Thank you for joining us on this deep dive. You
- 12:38Speaker 1: now equip to look at network security with a completely
- 12:41Speaker 1: new expert perspective. We'll catch you on the next one.