Latest / CyberCode Academy / Course 32 - Checkpoint CCSA R80 | Episode 3: From System Safeguards to Advanced Security Orchestration
Transcript
- 0:00Speaker 1: You know, there's this really stark, almost brutal piece of
- 0:04Speaker 1: it wisdom out there. It basically goes, there are only
- 0:09Speaker 1: two types of users, people who have lost data and
- 0:12Speaker 1: people who will lose data.
- 0:13Speaker 2: Yeah, that's I mean, the gravity of that statement really
- 0:16Speaker 2: hits home when you're actually architecting an enterprise network. Yeah,
- 0:20Speaker 2: you just you can't rely on optimism, right.
- 0:22Speaker 1: Hardware fails exactly.
- 0:24Speaker 2: Hardware fails, upgrades get corrupted, and let's be honest, administrators
- 0:28Speaker 2: make mistakes. You have to build with the assumption that
- 0:31Speaker 2: things will go wrong.
- 0:32Speaker 1: Well, welcome to the deep dive. Today. We are doing
- 0:35Speaker 1: a highly practical, step by step exploration of configuring a
- 0:39Speaker 1: secure network environment, specifically looking at checkpoint security architecture, which is.
- 0:44Speaker 2: A it's a fantastic environment to learn in. Managing firewalls
- 0:47Speaker 2: and gateways. Might sound a bit intimidating at first, but
- 0:50Speaker 2: we are going to break it all down logically.
- 0:52Speaker 1: Because the main dilemma here is like, how do you
- 0:54Speaker 1: build and scale a secure environment without accidentally locking yourself
- 0:58Speaker 1: out of your own network?
- 0:59Speaker 2: Right exactly, So we're going to explore how to set
- 1:01Speaker 2: up your safety nets, how to manage your licenses, build
- 1:04Speaker 2: robust access rules, and then finally scale those rules using
- 1:08Speaker 2: what we call zones.
- 1:10Speaker 1: Before anyone even touches a configuration or modifies a routing table,
- 1:15Speaker 1: we need a safety net which brings us to the
- 1:18Speaker 1: ultimate reset button.
- 1:20Speaker 2: Right, the backups versus snapshots debate. There is a very
- 1:24Speaker 2: critical distinction here. Before a major system event, using the
- 1:28Speaker 2: wrong one will leave you completely stranded.
- 1:30Speaker 1: So let's break down that concept. A standard backup is well,
- 1:34Speaker 1: it's usually just grabbing your configuration database, right, yeah, exactly.
- 1:37Speaker 2: It saves your firewall rules, your object definitions, basically the
- 1:40Speaker 2: things you've actively built. It's fast, the file size is
- 1:43Speaker 2: pretty small, and you can run it on a regular
- 1:45Speaker 2: schedule without crippling the system.
- 1:47Speaker 1: It's kind of like saving your progress in a video game.
- 1:50Speaker 2: That's a perfect analogy.
- 1:51Speaker 1: But if we're doing a major version upgrade, like migrating
- 1:54Speaker 1: the core operating system, that backup isn't going to be enough.
- 1:57Speaker 1: If the OS corrupts, that's saved file is useless because
- 2:01Speaker 1: you don't have a working console to load it onto.
- 2:03Speaker 2: Right, And that is where the full system snapshot comes in.
- 2:06Speaker 2: A snapshot operates on a much much deeper level. It's
- 2:10Speaker 2: capturing everything. It's a whole hard drive basically. Yeah. Yeah,
- 2:13Speaker 2: it captures the entire file system, the system configurations like
- 2:16Speaker 2: your host names and network interfaces, your routing protocols, all
- 2:20Speaker 2: your software blades, and the management database.
- 2:24Speaker 1: So it's not just saving the game, it's like saving
- 2:26Speaker 1: the exact state of the console, the TV, and the
- 2:29Speaker 1: living room at that exact millisecond.
- 2:31Speaker 2: Yeah, literally freezing time.
- 2:33Speaker 1: Yeah.
- 2:33Speaker 2: And the practical steps to do this are actually really straightforward.
- 2:36Speaker 2: If you're working from a command line, you just type
- 2:38Speaker 2: ad snapshot followed by a highly meaningful name.
- 2:41Speaker 1: Right, So you don't want to just name it snapshot one.
- 2:43Speaker 2: Oh please, No, you want to call it something like
- 2:47Speaker 2: you to s NAP or prior upgrade, So the context
- 2:50Speaker 2: is baked right into the file name.
- 2:51Speaker 1: And if you're using the web interface instead of the
- 2:54Speaker 1: command line.
- 2:54Speaker 2: Then you just navigate under the maintenance section, find snapshot
- 2:58Speaker 2: management and kick it off from there.
- 2:59Speaker 1: But there's catch right, because capturing the entire living room,
- 3:03Speaker 1: so to speak, is massive.
- 3:05Speaker 2: It is massive. A single snapshot file can easily exceed
- 3:09Speaker 2: ten gigabytes wow, and generating that file requires a ton
- 3:12Speaker 2: of disk and CPU power. It can literally tie up
- 3:15Speaker 2: system resources for like half an.
- 3:17Speaker 1: Hour, So you definitely aren't doing this every day exactly.
- 3:20Speaker 2: You reserve snapshots for massive fundamental changes. For daily safety nets,
- 3:25Speaker 2: you stick to standard backups.
- 3:26Speaker 1: Okay, so we have our OS preserved, our safety net
- 3:29Speaker 1: is deployed. The next step is actually unlocking the system
- 3:33Speaker 1: so we can use the software features.
- 3:35Speaker 2: Right, getting the legal right to run the software, which
- 3:38Speaker 2: is all managed through a tool called smart update.
- 3:40Speaker 1: And this brings up our first real architectural choice, which
- 3:44Speaker 1: is local licensing versus central licensing.
- 3:48Speaker 2: Yeah, and the whole distinction here revolves around IP addresses,
- 3:51Speaker 2: specifically which component's IP address the license key is mathematically
- 3:55Speaker 2: tied to.
- 3:56Speaker 1: Okay, so how does a local license work with a
- 3:58Speaker 1: local license?
- 3:59Speaker 2: The cryptographic key is tied directly to the IP address
- 4:02Speaker 2: of a specific gateway. So let's say you deploy a
- 4:05Speaker 2: firewall gateway out to a remote branch office in I
- 4:09Speaker 2: don't know, timbuckto timbuck two.
- 4:10Speaker 1: Got it?
- 4:11Speaker 2: You would generate a key for that exact IP address
- 4:14Speaker 2: and apply it locally to that machine.
- 4:16Speaker 1: Quo, bait. Let me push back on that a bit.
- 4:18Speaker 1: Why wouldn't I just always put the license directly on
- 4:21Speaker 1: the machine in Timbucto?
- 4:23Speaker 2: Why at a middleman, because in a dynamic network, that
- 4:28Speaker 2: logic has a massive flaw. What if your internet provider
- 4:31Speaker 2: changes the routing or the branch office gets a new
- 4:34Speaker 2: IP subnet. Oh right, If the license is mathematically locked
- 4:39Speaker 2: to an IP address that suddenly changes, the license instantly breaks.
- 4:43Speaker 2: The gateway will just drop all its advanced security features
- 4:46Speaker 2: because it thinks it's unlicensed.
- 4:48Speaker 1: That sounds like a nightmare to manage.
- 4:50Speaker 2: It is, and that vulnerability is exactly why you lean
- 4:53Speaker 2: heavily on central licensing.
- 4:54Speaker 1: Which ties the license to the management server.
- 4:57Speaker 2: Pucisely, the central license is tied to this static IP
- 5:00Speaker 2: address of your security management server. That server acts as
- 5:04Speaker 2: the central brain, so.
- 5:05Speaker 1: It holds the license securely and then basically just loans
- 5:07Speaker 1: it out to the remote gateways.
- 5:09Speaker 2: Exactly. You attach the central license out to the target
- 5:12Speaker 2: intimook two, and if that remote gateway ever needs a
- 5:15Speaker 2: new IP address, it's super seamless. You just attach the license,
- 5:19Speaker 2: change the IP address on the gateway, and then reattach
- 5:22Speaker 2: the license.
- 5:23Speaker 1: Because the management server's IP never changed, the core license
- 5:26Speaker 1: remains perfectly valid.
- 5:28Speaker 2: You got it, And just a quick note for anyone
- 5:30Speaker 2: building a lab environment to test this stuff out. You
- 5:33Speaker 2: can usually grab a fifteen day plug and play evaluation
- 5:36Speaker 2: license just for kicking.
- 5:37Speaker 1: The tires, right, But for an actual production environment, you'd
- 5:40Speaker 1: obviously be using perpetual or annual subscription licenses.
- 5:43Speaker 2: Yeah, exactly.
- 5:45Speaker 1: So we've got the licenses applied via the smart console.
- 5:48Speaker 1: It's time to actually start letting traffic flow. But firewalls
- 5:51Speaker 1: are inherently paranoid, aren't they? Oh?
- 5:52Speaker 2: Absolutely? The default policy is absolute zero trust.
- 5:56Speaker 1: So if I try to run a practical test, like
- 5:58Speaker 1: let's say I just try to paying fire let's say
- 6:00Speaker 1: it's IP is one ninety two point one sixty eight
- 6:03Speaker 1: point one point one one.
- 6:04Speaker 2: It's going to fail. By default, the network stack receives
- 6:08Speaker 2: your paying, but the firewall kernel just drops it before
- 6:10Speaker 2: it can even generate a reply.
- 6:12Speaker 1: So how do we fix that?
- 6:13Speaker 2: You have to explicitly tell it to be friendly. You
- 6:16Speaker 2: go into the global properties, navigate over to the firewall settings,
- 6:20Speaker 2: and actively check the box that says accept ICNP request.
- 6:25Speaker 1: But just checking the box doesn't magically make it happen instantly. Right,
- 6:29Speaker 1: This introduces that mandatory three step workflow.
- 6:33Speaker 2: Yeah, this is a crucial rhythm to get used to. First,
- 6:35Speaker 2: you can figure the change. Doing this actually places a
- 6:39Speaker 2: lock on that specific setting in the.
- 6:41Speaker 1: Database, which prevents other administrators from logging in and stepping
- 6:44Speaker 1: on your toes while you're working exactly.
- 6:46Speaker 2: Then step two is publishing. This writes your changes into
- 6:50Speaker 2: the central database on the management server and removes that lock.
- 6:54Speaker 1: But the actual physical firewall still don't know the change
- 6:57Speaker 1: happened yet.
- 6:57Speaker 2: Right, which brings us to step three. Installing the policy.
- 7:01Speaker 2: You actively push the rules from the management server to
- 7:04Speaker 2: the actual firewalls. Only then will it start replying to
- 7:07Speaker 2: your pings.
- 7:08Speaker 1: Okay, so basic connectivity is up. Now we have to
- 7:11Speaker 1: build the actual security.
- 7:12Speaker 2: Rules, which act just like an access control list, process
- 7:15Speaker 2: sequentially from top to bottom, so.
- 7:17Speaker 1: It evaluates rule one. If there's no match, it checks
- 7:19Speaker 1: rule two and so on.
- 7:21Speaker 2: Yep, and at the very bottom of that list is
- 7:23Speaker 2: the most important rule of all, the cleanup rule.
- 7:26Speaker 1: I like to think of the cleanup rule like a
- 7:28Speaker 1: VIP bouncer at an exclusive club.
- 7:31Speaker 2: I love that analogy.
- 7:32Speaker 1: Like the bouncer stands at the door checking names on
- 7:35Speaker 1: the list one by one, and the cleanup rule is
- 7:37Speaker 1: basically the bouncer's final directive if they aren't on any
- 7:41Speaker 1: list above kick them out.
- 7:42Speaker 2: That's exactly how it works. It's a catch all statement.
- 7:45Speaker 2: If traffic comes from anywhere, going anywhere on any service,
- 7:49Speaker 2: drop it.
- 7:50Speaker 1: But by default it does this silently, right, which seems
- 7:53Speaker 1: like a problem.
- 7:54Speaker 2: It's a huge problem for troubleshooting. If legitimate traffic cans
- 7:57Speaker 2: dropped silently, you're just flying blind. You have to change
- 8:00Speaker 2: the tracking action on that cleanup rule to log ah.
- 8:03Speaker 1: So when it kicks someone out, it writes down their
- 8:05Speaker 1: name exactly.
- 8:06Speaker 2: You get a literal record in your logs. You can
- 8:09Speaker 2: see the source IP, the destination, and the exact ports
- 8:12Speaker 2: being blocked, like SSH port twenty two or HTGP eighty
- 8:16Speaker 2: or HTTPS four four to three.
- 8:18Speaker 1: That makes figuring out what rules you need to build
- 8:20Speaker 1: next so much easier.
- 8:22Speaker 2: It's basically the only way to figure it out efficiently.
- 8:24Speaker 1: Okay, so managing one firewall is fine, but networks grow,
- 8:28Speaker 1: we need to expand. Let's say we want to add
- 8:30Speaker 1: a second eight way firewall two at IP address sixty
- 8:33Speaker 1: seven point eighty three point zero point one one two,
- 8:37Speaker 1: and we are using our management PC which is sitting
- 8:40Speaker 1: at one ninety two point one sixty eight point one
- 8:42Speaker 1: point one two.
- 8:43Speaker 2: Well, now you've got a real world snag, a routing.
- 8:46Speaker 1: Dilemma because the management PC doesn't inherently know how to
- 8:49Speaker 1: get to that sixty seven network right.
- 8:51Speaker 2: It looks at it's internal routing table, shrugs, and just
- 8:54Speaker 2: drops the packet locally. To reach firewall two, you have
- 8:58Speaker 2: to set the management PC's default eight way to point
- 9:01Speaker 2: to firewall one's inside interface, which is that one ninety
- 9:04Speaker 2: two point one sixty eight by one point one internag
- 9:06Speaker 2: as we used earlier.
- 9:07Speaker 1: So we tell the PC, hey, ham this over to
- 9:09Speaker 1: firewall one and let it figure out the next step exactly.
- 9:11Speaker 2: But once Firewall one gets it, we run into the
- 9:13Speaker 2: policy engine again. Firewall one checks its rules, doesn't see
- 9:16Speaker 2: anything explicitly allowing you to talk to Firewall two, hits
- 9:19Speaker 2: that cleanup rule and drops it.
- 9:21Speaker 1: The bouncer kicks us out again.
- 9:22Speaker 2: The bouncer strikes again, So you have to go into
- 9:24Speaker 2: the system and create host objects. You define an object
- 9:27Speaker 2: for your management PC and an object for Firewall two.
- 9:30Speaker 1: And then combine them into a rule.
- 9:31Speaker 2: Yep, you create a specific rule, place it above the
- 9:34Speaker 2: cleanup rule, and allow the management server unfettered HTTTS access
- 9:38Speaker 2: to Firewall two.
- 9:39Speaker 1: Configure, publish, install, always.
- 9:42Speaker 2: And once that secure path is open, you can finally
- 9:45Speaker 2: initialize firewall two. You log in using wizard mode, give
- 9:48Speaker 2: it a password, and establish what we call secure internal
- 9:52Speaker 2: communications or.
- 9:53Speaker 1: SIC SIIC, right, and that's basically setting up a trust relationship.
- 9:57Speaker 1: So the second gateway is fully under your management umbrella exactly.
- 10:01Speaker 2: It uses cryptographic certificates to ensure everything is perfectly secure.
- 10:05Speaker 1: Okay, so we have multiple firewalls passing traffic now. But
- 10:08Speaker 1: if we keep writing rules mapping individual IP addresses to
- 10:12Speaker 1: other individual IP addresses, this ruless is going to get
- 10:15Speaker 1: insanely long, right.
- 10:16Speaker 2: Oh, it becomes a complete nightmare to manage as the
- 10:19Speaker 2: company grows thousands of lines long. It's totally unscalable.
- 10:22Speaker 1: So there has to be a smarter way to work.
- 10:24Speaker 2: There is, and it's called zone based policies zones.
- 10:28Speaker 1: I like the sound of that. How does it work?
- 10:30Speaker 2: Instead of relying on network IP addresses, you assign physical
- 10:33Speaker 2: firewall interfaces to conceptual zones.
- 10:36Speaker 1: Give me an example.
- 10:37Speaker 2: So you might tag Ethernet Port zero as your inside zone,
- 10:42Speaker 2: which is your trusted network. Then Ethernet Port one is
- 10:45Speaker 2: tagged as the outside zone, which is the wild Internet.
- 10:49Speaker 2: And maybe Ethernet Port two is your DMZ.
- 10:51Speaker 1: Okay, so how does that make writing the rules easier?
- 10:55Speaker 2: Because now you can create broad intent based rules to say,
- 10:59Speaker 2: if track that originates from the inside zone and is
- 11:02Speaker 2: destined for the outside zone on HTTP or HTTPS, accept it.
- 11:07Speaker 1: So it's kind of like organizing guests at a wedding reception.
- 11:10Speaker 2: Okay, I want to hear this one.
- 11:11Speaker 1: Well, instead of giving the caterer a specific list of
- 11:14Speaker 1: two hundred individual names of people who get the chicken dinner,
- 11:17Speaker 1: which would be awful if the guest list changes, you
- 11:20Speaker 1: just tell the caterer, hey, everyone at tables four, five,
- 11:23Speaker 1: and six gets the chicken.
- 11:24Speaker 2: That's exactly it. When a new guest is added to
- 11:27Speaker 2: the network or you know, a new IP address, you
- 11:29Speaker 2: just seat them at the right table. You just plug
- 11:31Speaker 2: them into the inside interface.
- 11:33Speaker 1: And you don't have to rewrite the menu rules.
- 11:34Speaker 2: At all, not a single line. They just inherit all
- 11:37Speaker 2: the permissions of that zone automatically.
- 11:39Speaker 1: That is so much cleaner. But wait, I have a
- 11:41Speaker 1: question about the return traffic. If we only wrote a
- 11:43Speaker 1: rule saying the inside can talk to the outside, how
- 11:46Speaker 1: does the reply from the web server get back in?
- 11:49Speaker 1: Didn't we say default is zero.
- 11:50Speaker 2: Trust. Ah. That is the magic of a stateful firewall.
- 11:55Speaker 1: Stateful.
- 11:55Speaker 2: Yeah, the firewall remembers the outgoing session. When you request
- 11:59Speaker 2: a web page, it essentially opens a temporary pinhole for
- 12:02Speaker 2: that specific conversation.
- 12:04Speaker 1: So it's tracking the state of the connection exactly.
- 12:06Speaker 2: When the reply traffic comes back, it automatically recognizes, it
- 12:10Speaker 2: allows it through the pinhole, and then closes it up
- 12:12Speaker 2: when the session is done.
- 12:13Speaker 1: So I don't have to write a reverse rule.
- 12:15Speaker 2: Yep, the firewall handles the return path automatically.
- 12:18Speaker 1: That's incredibly smart. So if I'm migrating my old IP
- 12:22Speaker 1: based rules to this new zone based system, how do
- 12:25Speaker 1: I test it safely? I probably shouldn't just delete all
- 12:28Speaker 1: my old rules immediately, right.
- 12:29Speaker 2: Definitely do not do that. Instead, you simply disable the
- 12:33Speaker 2: old rules.
- 12:33Speaker 1: Ah, so they are still there, just turned off.
- 12:35Speaker 2: Right. Then you watch your logs. You generate some traffic
- 12:39Speaker 2: and watch the logs successfully catch and permit the traffic
- 12:42Speaker 2: based purely on your new zone rules. Once you verify
- 12:45Speaker 2: its working, then you can clean out the old ones.
- 12:48Speaker 1: Wow, we have covered a massive amount of ground today.
- 12:51Speaker 1: Let me just recap this journey real quick. Please, do
- 12:54Speaker 1: we set up our safety net using snapshots for the
- 12:56Speaker 1: big stuff and backups for the daily stuff. We distributed
- 13:00Speaker 1: our central licenses, We established basic rules and make sure
- 13:03Speaker 1: a log dropped traffic on the cleanup rule. We routed
- 13:06Speaker 1: our way to a second gateway using SIC, and finally
- 13:10Speaker 1: we streamlined everything with zone based policies.
- 13:12Speaker 2: It all cascades together so perfectly, it really does. So
- 13:16Speaker 2: to really lock this in for you, let's do a
- 13:18Speaker 2: quick review scenario.
- 13:19Speaker 1: Let's do it.
- 13:20Speaker 2: Okay, Imagine you have a remote firewall that's plugged into
- 13:23Speaker 2: a modem where the IP address frequently changes like a
- 13:26Speaker 2: standard DHCP connection. Which type of licensing should you use?
- 13:30Speaker 2: And why?
- 13:32Speaker 1: Think about that for a second.
- 13:33Speaker 2: You should definitely use central licensing, right.
- 13:35Speaker 1: Because the license is tied to the management server static IP,
- 13:39Speaker 1: not the remote gateways changing.
- 13:40Speaker 2: IP exactly, you avoid breaking that mathematical.
- 13:43Speaker 1: Hash perfect Well, I want to leave you with one
- 13:47Speaker 1: final thought to ponder as we wrap up. As networks
- 13:50Speaker 1: move increasingly to the cloud and everything becomes virtualized, how
- 13:55Speaker 1: might the concept of a zone or an interface completely
- 13:58Speaker 1: transform when physical ethernet cables no longer even exist?
- 14:03Speaker 2: Now that is a really fascinating engineering challenge. What does
- 14:06Speaker 2: the perimeter look like when there is.
- 14:07Speaker 1: No perimeter exactly? Completely changes the game. Well, thank you
- 14:11Speaker 1: so much for joining us on this deep dive. Keep
- 14:13Speaker 1: questioning the logic behind your technology, and remember set up
- 14:17Speaker 1: your safety nets before you start tweaking things.
- 14:19Speaker 2: Definitely, don't be the user who loses their data.
- 14:21Speaker 1: We'll catch you next time.