Latest / CyberCode Academy / Course 32 - Checkpoint CCSA R80 | Episode 6: Mastering NAT Types, Priority Hierarchies, and Manual Rules
Transcript
- 0:00Speaker 1: Network address translation is honestly, like the only reason the
- 0:04Speaker 1: modern Internet hasn't just completely collapsed under its own weight.
- 0:06Speaker 2: Oh absolutely. I mean we've been out of IPv four
- 0:09Speaker 2: addresses for what.
- 0:10Speaker 1: Years now, right, exactly years, and yet you know, thousands
- 0:14Speaker 1: of devices inside any given corporate enterprise are just humming along,
- 0:18Speaker 1: pulling data, keeping sessions alive, all while sharing maybe one
- 0:23Speaker 1: or two public IP addresses.
- 0:25Speaker 2: It's basically real time header manipulation at an industrial scale.
- 0:29Speaker 3: Yeah, it's a magic trick.
- 0:31Speaker 2: It is, and we take it for granted because you know,
- 0:34Speaker 2: modern firewalls make it look so seamless, But the underlying
- 0:37Speaker 2: mechanics like managing state tables, recalculating checksums on the fly,
- 0:41Speaker 2: resolving all those strict rule hierarchies, it requires just a
- 0:45Speaker 2: massive amount of computational logic.
- 0:47Speaker 1: Which is exactly what we're discepting today in the steep dives.
- 0:50Speaker 2: If we are.
- 0:50Speaker 1: We've got a stack of advanced firewall architecture documentation here,
- 0:54Speaker 1: specifically focusing on checkpoint environments, along with some really intensive
- 0:58Speaker 1: network configuration annuals.
- 1:01Speaker 2: And as someone who creates educational content in this space,
- 1:05Speaker 2: my goal here isn't just to talk about what NAT
- 1:07Speaker 2: does on a surface.
- 1:08Speaker 1: Level, right, no textbook definitions here exactly.
- 1:11Speaker 2: I want to walk you the listener, through the exact
- 1:15Speaker 2: step by step logic of how you actually engineer this stuff.
- 1:18Speaker 2: Because understanding why a firewall prioritizes packets a certain way
- 1:22Speaker 2: that's what separates a good technician from an elite cybersecurity engineer.
- 1:27Speaker 1: So we're going to explore the mechanics of source net
- 1:29Speaker 1: state tables, how inbound server traffic actually works, those hard
- 1:32Speaker 1: courted rule hierarchies, and manual port translation logic too.
- 1:36Speaker 2: It's going to be fun, but to really ground this,
- 1:39Speaker 2: you need to picture a mental laboratory, a standard enterprise topology.
- 1:42Speaker 3: Okay, setting the scene, I like it right.
- 1:44Speaker 2: So imagine we have an internal branch office network and
- 1:48Speaker 2: is operating on a private RFC nineteen eighteen subnet. At it.
- 1:52Speaker 2: We also have an internal web server, but that's tucked
- 1:54Speaker 2: away in an isolated DMZ, and standing between all these
- 1:57Speaker 2: internal networks and the external simulated in is our firewall gateway.
- 2:02Speaker 3: The bouncer at the door.
- 2:03Speaker 2: Exactly, every single packet crossing those boundaries is getting inspected.
- 2:08Speaker 2: Policies are enforced, and more often than not, translations are happening.
- 2:12Speaker 1: Okay, So let's look at the most common traffic flow first, right,
- 2:15Speaker 1: the outbound Jenny, the bread and butter. Yeah, So, an
- 2:18Speaker 1: internal client machine, let's say it's sitting at an IP
- 2:20Speaker 1: of ten point three point zero point one hundred zero,
- 2:24Speaker 1: and it attempts to start a TCP session with a
- 2:27Speaker 1: web server out on the Internet.
- 2:29Speaker 2: Right, And obviously that ten dot address is completely non
- 2:32Speaker 2: rettable on the public Internet.
- 2:33Speaker 1: Yeah, the upstream ISP router would just drop it immediately.
- 2:37Speaker 1: So the firewall has to step in, right, It has
- 2:38Speaker 1: to perform sourcenet.
- 2:39Speaker 2: It does. It has to rewrite that Layer three IP
- 2:41Speaker 2: header to replace the private source address with its own
- 2:44Speaker 2: external public IP.
- 2:46Speaker 1: So it intercepts the packet as it hits the ingress
- 2:49Speaker 1: interface exactly.
- 2:50Speaker 2: The firewall literally strips the original ten point three point
- 2:54Speaker 2: one hundred zero source IP out of the header, and
- 2:56Speaker 2: it injects a globally ratable address, let's say sixty seven
- 3:00Speaker 2: point eight three point zero point two Z zero zero.
- 3:02Speaker 1: It's kind of like a corporate mail room, Like you
- 3:05Speaker 1: send a letter from your internal desk, but the mail
- 3:07Speaker 1: room stamps the company's main public return address on the
- 3:10Speaker 1: envelope before it goes to the post office.
- 3:12Speaker 2: That's a great analogy, But simply swamping the IP address
- 3:15Speaker 2: creates a pretty massive architectural problem, right.
- 3:18Speaker 1: Because what if thousands of internal computers are sharing that
- 3:21Speaker 1: one public IP Exactly.
- 3:23Speaker 2: If an entire branch office of one thousand machines is
- 3:26Speaker 2: surfing the web and the firewall is stamping sixty seven
- 3:29Speaker 2: point eighty three point zero point two over zero on
- 3:32Speaker 2: every single outbound.
- 3:34Speaker 3: Packet, how does it know who gets the reply?
- 3:36Speaker 2: Yes, the returning traffic from the Internet is going to
- 3:39Speaker 2: hit the firewall's external interface, and the firewall wouldn't have
- 3:43Speaker 2: any native Layer three information left to determine which internal
- 3:46Speaker 2: machine actually requested that specific packet, just.
- 3:49Speaker 1: A pile of mail with the company address on it
- 3:51Speaker 1: and no names precisely.
- 3:52Speaker 2: And this is where port address translation comes in PDT,
- 3:56Speaker 2: or as it's typically called in checkpoint environments.
- 3:59Speaker 3: Hide hidet.
- 4:01Speaker 2: Okay, So the firewall isn't just altering the Layer three
- 4:03Speaker 2: IP header anymore. It's digging deeper into the layer four
- 4:06Speaker 2: header and modifying the source port.
- 4:09Speaker 1: Oh wow, so it's messing with the ports too.
- 4:11Speaker 2: Yeah, that's the critical mechanism. The firewall builds this dynamic
- 4:15Speaker 2: state table in its memory. Okay, when the packet from
- 4:18Speaker 2: ten point three point three point one zero zero arrives,
- 4:22Speaker 2: the firewall allocates a unique ephemeral port number. Let's say
- 4:26Speaker 2: it picks TCP fifty thousand and one.
- 4:28Speaker 1: So it rewrites both the source IP and the source.
- 4:31Speaker 2: Port exactly, and it records that exact mapping in its
- 4:34Speaker 2: state table. Then when the next machine like ten point
- 4:37Speaker 2: three point zero point one zero one sends a packet,
- 4:40Speaker 2: the firewall uses that same public IP, but it assigns
- 4:44Speaker 2: it a different port like TCP fifty thousand and two.
- 4:46Speaker 3: I see.
- 4:47Speaker 1: So it's acting like, well, like a proxy bidder at
- 4:49Speaker 1: a massive art auction.
- 4:51Speaker 2: Oh I like that, run with it.
- 4:52Speaker 1: Yeah. So the proxy's on the floor holding a single paddle, right,
- 4:55Speaker 1: that's the public IP, but they have dozens of clients
- 4:58Speaker 1: listening on different phone lines a place a bid. The
- 5:00Speaker 1: auctioneer only ever sees the proxy's paddle, but when the
- 5:03Speaker 1: proxy wins the piece, they just check their ledger, see
- 5:06Speaker 1: which phone line actually requested that bid, and route the
- 5:09Speaker 1: painting to the correct private client.
- 5:11Speaker 2: That captures the logic perfectly. In this case, the port
- 5:14Speaker 2: number is the phone line. When the return traffic hits
- 5:16Speaker 2: the external interface, The firewall inspects the destination port on
- 5:20Speaker 2: the returning Layer four header, It ses port fifty thousand
- 5:23Speaker 2: and one queries, its state table finds a corresponding private
- 5:27Speaker 2: IP untranslates it back to ten point three point zero
- 5:30Speaker 2: point one zero, and forwards it inside.
- 5:33Speaker 1: Well, wait, hang on, If this whole thing relies on
- 5:35Speaker 1: Layer four ports, how does the firewall handle protocols that
- 5:39Speaker 1: don't even use ports? Like what?
- 5:42Speaker 2: Well?
- 5:42Speaker 1: Like, if I sit at that client machine and send
- 5:44Speaker 1: an ICMPPING to an external server, there is no TCP
- 5:47Speaker 1: or UDP port in a pingheader, So how does the state.
- 5:51Speaker 3: Table track it?
- 5:52Speaker 2: That is a brilliant edge case question for ICMP. The
- 5:56Speaker 2: firewall actually has to look deeper into the protocol structure.
- 5:59Speaker 2: Oh really, Yeah. An ICMP echo request contains a sequence
- 6:02Speaker 2: number and an identifier field, So the firewall essentially hijacks
- 6:06Speaker 2: that identifier field and modifies it to act like a
- 6:08Speaker 2: pseudo port.
- 6:09Speaker 3: Whoa.
- 6:10Speaker 2: It tracks that modified identifier in the state table just
- 6:12Speaker 2: like it would a TCP port, which ensures the returning
- 6:15Speaker 2: echo reply gets routed back to the correct internal machine.
- 6:18Speaker 1: But that requires the firewall to actively recalculate the packet
- 6:21Speaker 1: checksums on the fly, doesn't it constantly? Because I mean,
- 6:23Speaker 1: if you change the source IP and you change the
- 6:26Speaker 1: port or the ICMP identifier, the original checksums in the
- 6:29Speaker 1: header are totally invalid.
- 6:30Speaker 2: Now exactly, the firewall has to run the math all
- 6:33Speaker 2: over again and inject the new checksum before putting the
- 6:36Speaker 2: packet back on the wire, and that consumes CPU cycles.
- 6:40Speaker 3: Right, And what about port exhaustion?
- 6:42Speaker 1: I mean, a single IP address only has what about
- 6:45Speaker 1: sixty four thousand available ephemeral.
- 6:47Speaker 2: Ports YEP around sixty four thousand, And from an engineering perspective,
- 6:52Speaker 2: that's a real bottleneck and a massive enterprise. If you
- 6:54Speaker 2: have tens of thousands of endpoints generating hundreds of concurrent sessions.
- 6:59Speaker 3: EAT just run out of ports on a single hide
- 7:02Speaker 3: gnat IP.
- 7:02Speaker 2: You literally run out. And when that happens, the firewall
- 7:05Speaker 2: just starts dropping new outbound connection requests.
- 7:08Speaker 3: Yikes.
- 7:09Speaker 1: Which is why I guess enterprise environments often configure high
- 7:12Speaker 1: net to use a whole pool of public eyeps, right,
- 7:14Speaker 1: not just one.
- 7:15Speaker 2: Exactly, you dynamically distribute the portload across multiple public eyeps.
- 7:20Speaker 2: But let's talk about how you actually verify This is
- 7:22Speaker 2: happening because if you're troubleshooting a connection failure, you need
- 7:25Speaker 2: to see this translation.
- 7:26Speaker 3: Right, Relying on basic pings just isn't enough, not at all.
- 7:30Speaker 2: You need to utilize the firewalls internal packet capture and
- 7:33Speaker 2: logging tools. So in a checkpoint environment, you might use
- 7:38Speaker 2: the few monitor command line utility.
- 7:40Speaker 3: Okay, how does that work?
- 7:41Speaker 2: It allows you to watch a packet physically traverse the
- 7:44Speaker 2: firewalls internal inspection chains. You can see the packet arrive
- 7:48Speaker 2: at the pre inbound chain, which is labeled with a
- 7:51Speaker 2: lowercase I, and it has its original private EYEP, and
- 7:55Speaker 2: then then you watch it pass through the routing and
- 7:57Speaker 2: that enforcement points. By the time it hits the post
- 8:00Speaker 2: out bound chain, the uppercase OI, you will literally see
- 8:04Speaker 2: that the source IP and port have been rewritten.
- 8:06Speaker 3: That is so cool.
- 8:07Speaker 1: Alternatively, you can just pull up the graphical logging monitor, right, Yeah.
- 8:11Speaker 1: You just filter for the traffic you generated and you
- 8:14Speaker 1: look at the translation fields. The logs will explicitly show
- 8:17Speaker 1: the original source and the uh isias the translated source.
- 8:21Speaker 2: Exactly gives you absolute confirmation that the high NAP policy
- 8:24Speaker 2: actually triggered correctly.
- 8:25Speaker 1: Okay, So that covers the outbound mechanics. But you know,
- 8:28Speaker 1: enterprise infrastructure is rarely just internal clients consuming Internet.
- 8:32Speaker 3: Data, right.
- 8:32Speaker 2: You almost always have internal services that need to be
- 8:34Speaker 2: accessible from the outside.
- 8:36Speaker 1: Which completely reverses the traffic flow and honestly, it significantly
- 8:39Speaker 1: complicates the security posture. We aren't disguising outbound requests anymore.
- 8:44Speaker 1: We're intentionally exposing an internal asset the inbound challenge exactly.
- 8:48Speaker 1: Let's look at the web server sitting in our DMZ
- 8:51Speaker 1: at one ninety two point one sixty eight point one
- 8:53Speaker 1: one hundred zero zero. We designate a specific public IP,
- 8:57Speaker 1: let's say sixty seven point eighty three point p one
- 9:00Speaker 1: one one zero purely.
- 9:01Speaker 2: For this server. Okay, I'm tracking.
- 9:03Speaker 1: When a user on the Internet sends an HTTP request,
- 9:06Speaker 1: they address it to that public IP, So the firewall
- 9:09Speaker 1: intercepts it and performs destination AT, which is also known
- 9:12Speaker 1: as static net.
- 9:13Speaker 2: Right right, And unlike HYDNAT, this is a permanent one
- 9:15Speaker 2: to one by directional mapping, the firewall is rewriting the
- 9:18Speaker 2: destination IP in the header from the public address to
- 9:21Speaker 2: the private one ninety two point one sixty eight point
- 9:24Speaker 2: one one zero address.
- 9:25Speaker 1: But here's where the firewall processing order gets notoriously tricky.
- 9:29Speaker 1: A firewall's primary job is to enforce security policies, which
- 9:33Speaker 1: means dropping unsolicited external traffic.
- 9:36Speaker 2: By default, the default deny rule always there, right, So
- 9:39Speaker 2: if a packet hits the external interface destined for a
- 9:42Speaker 2: public IP, the firewall evaluates it against the security rules. So,
- 9:48Speaker 2: as an engineer, do I write the security rule to
- 9:50Speaker 2: permit traffic to the public IP or to the private IP?
- 9:53Speaker 3: Well, what's your instinct?
- 9:55Speaker 2: My assumption is that because the packet hasn't been translated yet,
- 9:58Speaker 2: when it hits the ingress interface, the security rule absolutely
- 10:02Speaker 2: must target the public IP. Otherwise the rule would just
- 10:04Speaker 2: never match. Right.
- 10:05Speaker 1: That is the logical assumption, and honestly, it's how a
- 10:07Speaker 1: lot of legacy firewalls used to operate, but modern checkpoint
- 10:11Speaker 1: architecture specifically engineers around this problem using early NAT lookups.
- 10:15Speaker 2: Early NAT lookup.
- 10:17Speaker 1: Yeah, in this environment you write the security policy directly
- 10:19Speaker 1: against the real internal private IP object.
- 10:22Speaker 2: Wait, how does that not just cause an immediate drop?
- 10:25Speaker 2: If the packet's header says sixty seven point eight three
- 10:28Speaker 2: one hundred zero, but the rule says permit one ninety
- 10:31Speaker 2: two point one sixty eight point one point one hundred zero.
- 10:34Speaker 2: That's a total mismatch because the checkpoint system evaluates the
- 10:37Speaker 2: net policy before it enforces the final security policy check oh.
- 10:42Speaker 2: When the packet arrives, the firewall does a really fast
- 10:46Speaker 2: early lookup at the NEAT table. It recognizes OH sixty
- 10:49Speaker 2: seven point eight three point one oh zero zero is
- 10:51Speaker 2: statically mapped to this internal server, so it flags it exactly.
- 10:55Speaker 2: It essentially flags the packet signaling to the security policy
- 10:58Speaker 2: engine heyuate this packet based on its translated destination, not
- 11:02Speaker 2: its original one.
- 11:03Speaker 1: That is a fascinating piece of internal architecture. I mean
- 11:07Speaker 1: it allows engineers to build their security rule bases around
- 11:11Speaker 1: the actual physical topology of the network.
- 11:13Speaker 2: It creates a much cleaner object oriented rule base. You're
- 11:16Speaker 2: not cluttering up your rules with external translation addresses. You
- 11:19Speaker 2: just have a network object representing the internal web server.
- 11:22Speaker 1: Right.
- 11:22Speaker 2: You can figure the static net properties directly on that
- 11:25Speaker 2: object and then use that exact same object in your
- 11:27Speaker 2: security policy to permit TCP pourt eighty. The firewall handles
- 11:31Speaker 2: all the associative logic in the background.
- 11:33Speaker 1: But this brings up a larger operational challenge, doesn't it.
- 11:36Speaker 1: When you rely on the system to automatically generate these rules,
- 11:40Speaker 1: what we call auto neet. You inevitably run into configuration
- 11:43Speaker 1: clashes all the time. In a live enterprise, an engineer
- 11:47Speaker 1: might configure dozens of overlapping network definitions.
- 11:50Speaker 3: So suppose I can.
- 11:51Speaker 1: Figure a hide net on the entire one ninety two
- 11:54Speaker 1: point one sixty eight point one point zero subnet right.
- 11:58Speaker 2: Masking it all behind the firewall of main public IP. Sure.
- 12:01Speaker 1: Yeah, but then I have a specific IT management server
- 12:04Speaker 1: sitting inside that exact same subnet at let's say Dot fifty,
- 12:08Speaker 1: and I can figure a static net on its host object,
- 12:10Speaker 1: mapping it to a completely dedicated public IP.
- 12:13Speaker 2: Well, now the firewall is looking at a packet originating
- 12:15Speaker 2: from that management server and seeing two completely valid, conflicting
- 12:19Speaker 2: translation instructions.
- 12:21Speaker 1: Right now, my instinct as an engineer would be to
- 12:23Speaker 1: open the NAT rule base in the GI and just
- 12:25Speaker 1: physically drag the specific server's rule above the subnets rule.
- 12:29Speaker 1: Because firewalls process top down exactly, first match wins, so
- 12:32Speaker 1: GUI placement should solve the clash.
- 12:34Speaker 2: If we're building manual rules, you'd be absolutely correct. But
- 12:37Speaker 2: with autnet, the firewall completely ignores GUI placement. Really, it
- 12:41Speaker 2: just ignores it, totally ignores it. It strips away the
- 12:44Speaker 2: administrator's ability to sequence the rules visually, and instead it
- 12:48Speaker 2: enforces a hard coded internal logic called the autonet pecking order.
- 12:53Speaker 1: Wow. So the system decides which rule tastes precedence regardless
- 12:56Speaker 1: of how the management console actually looks.
- 12:58Speaker 2: Precisely, Deckpoint engineers designed this definitive six step hierarchy. The
- 13:04Speaker 2: whole point is to ensure translations fail safe and that
- 13:07Speaker 2: specificity is always prioritized over broad strokes.
- 13:11Speaker 3: Okay, So what is this hierarchy? How does it rank them?
- 13:13Speaker 2: The logic is processed in this exact order. Priority one
- 13:16Speaker 2: is a static GNAT for a specific host object.
- 13:19Speaker 3: That makes sense, the most specific thing possible, right.
- 13:21Speaker 2: Priority two is a highe ned for a specific host object.
- 13:25Speaker 2: Priory three is a static NAT for an address range.
- 13:27Speaker 3: Okay, getting broader, yep.
- 13:29Speaker 2: Priority four is a static NED for a network object.
- 13:32Speaker 2: Priority five is a high net for an address range,
- 13:34Speaker 2: and Priority six, the absolute lowest tier, is a hide
- 13:38Speaker 2: GNAT for a network object.
- 13:39Speaker 1: Okay, looking at that logic, it's heavily weighted toward the
- 13:42Speaker 1: size of the object. A single host always beats an
- 13:46Speaker 1: IP range and a range always beats a massive network
- 13:50Speaker 1: subnet exactly, and within those size tiers, static translations always
- 13:54Speaker 1: beat dynamic hide translations.
- 13:56Speaker 2: That's the exact engineering philosophy behind it. Think about the
- 13:59Speaker 2: op operrational risk if it worked the other way around.
- 14:02Speaker 3: Oh, it would be a nightmare.
- 14:04Speaker 2: It would. If a broad network hide neat could override
- 14:07Speaker 2: a specific host static NAT, some junior engineer could accidentally
- 14:12Speaker 2: wipe out the external routing for critical internal servers just
- 14:16Speaker 2: by checking a box on a subnet object.
- 14:18Speaker 1: Right, They just accidentally swallow up the specific rules. So
- 14:22Speaker 1: by hard coding the hierarchy, the architecture ensures that specific
- 14:26Speaker 1: exceptions are always honored over general policies exactly.
- 14:29Speaker 2: So in our clash scenario, the management server static NAT
- 14:32Speaker 2: is a priority level one. The subnet's hide neat is
- 14:35Speaker 2: a priority level six.
- 14:36Speaker 1: So when the server initiates a connection, the firewall matches
- 14:39Speaker 1: the priority one rule, translates the source to the dedicated
- 14:42Speaker 1: public IP and just stops evaluating.
- 14:45Speaker 2: It stops right there. The broad network rule never even
- 14:48Speaker 2: touches it, And if you pull the logs you will
- 14:50Speaker 2: see the RECLAYCRAC reflects the dedicated public IP. The hierarchy
- 14:55Speaker 2: resolve the conflict completely invisibly.
- 14:57Speaker 1: Which is incredibly efficient until you hit a design requirement
- 15:01Speaker 1: that the hard coded logic simply cannot accommodate, and you
- 15:04Speaker 1: will hit those Yeah. This happens frequently in edge deployments
- 15:07Speaker 1: or like small remote branches. Let's say the ISP only
- 15:11Speaker 1: provisions a single public IP address for the entire branch firewall,
- 15:15Speaker 1: but the branch needs to host two distinct internal services.
- 15:19Speaker 1: Let's say a web server on one ninety two point
- 15:22Speaker 1: one sixty eight point one one one zero and an
- 15:24Speaker 1: email exchange server on dot one oh one.
- 15:27Speaker 2: Yeah, now you've hit the hard limit of autonet.
- 15:29Speaker 3: Because it's IP centric exactly.
- 15:31Speaker 2: Autonet is fundamentally IP centric. You cannot configure two different
- 15:34Speaker 2: internal host objects to statically map to the same single
- 15:38Speaker 2: public IP using automat checkboxes.
- 15:40Speaker 1: The system will just throw an overlapping address error, right,
- 15:43Speaker 1: because it wouldn't know how to route the inbound traffic.
- 15:45Speaker 2: Right. And this is where we had to take the
- 15:46Speaker 2: training wheels off. We abandon the automated features and we
- 15:49Speaker 2: engineer MANUALNAT rules manually. Yeah. Manual net gives us access
- 15:54Speaker 2: to layer four parameters, which allows us to build conditional
- 15:57Speaker 2: logic based on protocols and portant. We are no longer
- 16:01Speaker 2: just translating IPS. We are executing true port forwarding.
- 16:05Speaker 1: Okay, So to build this we open the NAT rule
- 16:08Speaker 1: base and construct two distinct manual translation policies.
- 16:11Speaker 2: Right.
- 16:12Speaker 1: The first rule dictates that if the original destination is
- 16:14Speaker 1: our single public IP and the destination port is TCP eighty,
- 16:19Speaker 1: then the translated destination becomes the internal web server spot on.
- 16:23Speaker 2: And the second rule states that if the original destination
- 16:26Speaker 2: is that exact same public IP, but the destination port
- 16:29Speaker 2: is TCP twenty five, the translated destination becomes the internal
- 16:33Speaker 2: email server.
- 16:34Speaker 3: It operates kind of like a well, like a railway
- 16:36Speaker 3: switch yard.
- 16:37Speaker 2: Oh I love a good analogy. Go ahead.
- 16:38Speaker 1: The packet is the train right arriving at the external interface.
- 16:42Speaker 1: Rather than just looking at the destination city, which is
- 16:44Speaker 1: the IP address, the firewall inspects the cargo.
- 16:47Speaker 3: Manifest, which is the port number.
- 16:49Speaker 2: Okay, yeah.
- 16:49Speaker 1: If the cargo is HTTP, it physically switches the tracks,
- 16:54Speaker 1: rewriting the layer three header to route the train to
- 16:57Speaker 1: the web server depot. But if the cargo is SA,
- 17:00Speaker 1: it flips a different switch and routes it to the
- 17:03Speaker 1: email depot.
- 17:04Speaker 2: That is a brilliant way to visualize it, or like
- 17:06Speaker 2: a VIP bouncer who isn't just checking the address on
- 17:09Speaker 2: your ID, but actually checking your specific event ticket to
- 17:12Speaker 2: route you to the correct room.
- 17:13Speaker 1: Yes, exactly, and because these are manual GNAT rules, the
- 17:17Speaker 1: engineer finally regains control over the execution order. Manual rules
- 17:22Speaker 1: don't adhere to that autoet pecking.
- 17:24Speaker 2: Order we talked about. That is their primary advantage. You
- 17:27Speaker 2: physically place manual NEAT rules at the very top of
- 17:29Speaker 2: the rule base. The firewall evaluates the manual section top
- 17:33Speaker 2: down before it ever even loads the hard coded autonat hierarchy.
- 17:37Speaker 1: So if a manual rule matches, the translation executes immediately exactly.
- 17:42Speaker 2: But there is an architectural detail here that often trips
- 17:44Speaker 2: up engineers deploying manual net for the first time. What's up, Well,
- 17:48Speaker 2: if the firewall is using an IP address that isn't
- 17:51Speaker 2: physically assigned to its external interface, say an IP from
- 17:55Speaker 2: a routed block provided by the ISP, the upstream router
- 18:00Speaker 2: to know how to deliver packets to that IP right
- 18:03Speaker 2: With autonat, the firewall handles this in the background, but
- 18:06Speaker 2: with manual NET it doesn't. Hi you're talking about PROXYARP
- 18:09Speaker 2: address resolution protocol. Yes I am. If you manually tell
- 18:13Speaker 2: the firewall to translate traffic destined for a specific public IP,
- 18:18Speaker 2: the upstream router still needs the MSS address associated with
- 18:21Speaker 2: that IP to physically deliver the frame across the local link.
- 18:25Speaker 1: Right, because switches and local routers they move frames using
- 18:28Speaker 1: layer two A MAC addresses, not layer three IP addresses.
- 18:31Speaker 2: Exactly, when you configure autonat checkpoint automatically generates a PROXYARP entry,
- 18:37Speaker 2: It essentially tells the firewall to broadcast a gratuitous ARP
- 18:40Speaker 2: message to the external subnet announcing, hey, I am the
- 18:43Speaker 2: owner of this public I send the frames to my
- 18:45Speaker 2: external interface MAME address.
- 18:47Speaker 1: But when you use manual net you have to do
- 18:49Speaker 1: that yourself.
- 18:50Speaker 2: You often have to configure that PROXYARP entry manually, either
- 18:54Speaker 2: at the OS level or through the global properties.
- 18:57Speaker 1: And if you forget that step, your manual GNAT rule
- 19:00Speaker 1: might be flawless, but the traffic will literally never reach
- 19:03Speaker 1: the firewall.
- 19:04Speaker 2: Nope, the ISP router will just drop the packets because
- 19:07Speaker 2: it has no idea where to send them.
- 19:09Speaker 1: Wow, it's those deep structural dependencies, you know the interplay
- 19:14Speaker 1: between layer two ARP, layer three IP routing and layer
- 19:18Speaker 1: four port state tables that really define true network engineering.
- 19:22Speaker 2: It really does. It emphasizes that configuring a firewall isn't
- 19:26Speaker 2: about memorizing where to click in a management console. It's
- 19:29Speaker 2: about visualizing the packet flow. As an educator, that's what
- 19:32Speaker 2: I try to drill into my students. If you understand
- 19:35Speaker 2: the inspection chain, if you know exactly when a header
- 19:37Speaker 2: is tripped, when a checksum is recalculated, and how the
- 19:40Speaker 2: state table allocates memory, you can architect solutions for almost
- 19:44Speaker 2: any deployment challenge, and you can.
- 19:46Speaker 1: Actually interpret the logs to find exactly where a packet died.
- 19:49Speaker 1: So we've mapped out a really comprehensive journey today. We
- 19:53Speaker 1: started with the mechanics of sourcenat discepting how dynamic state
- 19:57Speaker 1: tables track ephemeral ports to hide entire networks YEP. We
- 20:00Speaker 1: analyzed inbound destination NAT uncovering the firewalls internal processing order
- 20:05Speaker 1: and early translation lookups. We navigated that rigid failsafe hierarchy
- 20:10Speaker 1: of the autonet pecking.
- 20:12Speaker 2: Order, specific beats general.
- 20:14Speaker 1: Always, and finally, we engineered manual GNAT rules manipulating ports
- 20:19Speaker 1: and managing proxy ARP to basically bypass the system limitations.
- 20:24Speaker 2: And here is a quick review question for you to
- 20:26Speaker 2: test yourself on everything we just cover. If you have
- 20:29Speaker 2: a manual net rule set to priority one that translates
- 20:32Speaker 2: port eighty traffic to a web server. Yeah, but you
- 20:34Speaker 2: also have an auto neet static rule for that exact
- 20:37Speaker 2: same server configured on its host object, which one handles
- 20:40Speaker 2: the web traffic.
- 20:41Speaker 3: Oh, that's a good one.
- 20:42Speaker 2: Think about the execution order we discussed. The manual rules
- 20:44Speaker 2: placed at the top will always override the automatic pecking order,
- 20:47Speaker 2: always at.
- 20:48Speaker 1: The top, which brings us to a final thought worth
- 20:51Speaker 1: exploring on your own. For decades now, NAT has been
- 20:54Speaker 1: the crucial band aid keeping the Internet functional right, mitigating
- 20:59Speaker 1: the exhaustion of IP four.
- 21:00Speaker 2: Absolutely it saved the Internet.
- 21:02Speaker 1: But we are slowly inevitably moving toward IPv six, where
- 21:06Speaker 1: every single device on Earth can have a globally routable
- 21:09Speaker 1: public address. Theoretically, IPv six eliminates the need for NAT entirely.
- 21:15Speaker 2: A fully routed end to end Internet, just the way
- 21:18Speaker 2: it was originally designed.
- 21:19Speaker 1: But interestingly enough, network engineers are actively developing GNAT for
- 21:23Speaker 1: IPv six Net sixty six, and it raises this really
- 21:27Speaker 1: fascinating philosophical question for the industry.
- 21:30Speaker 2: It does.
- 21:30Speaker 1: Over the years, we have conflated translation with security. We've
- 21:34Speaker 1: come to believe that hiding our internal ips behind a
- 21:37Speaker 1: GNAT boundary is a fundamental security layer.
- 21:40Speaker 2: Which was never its original purpose.
- 21:42Speaker 1: Right, So as you look toward the future of your
- 21:44Speaker 1: own networks, you really have to ask yourself, is NAT
- 21:46Speaker 1: actually providing security or is it just obscurity?
- 21:49Speaker 2: That's the million dollar question.
- 21:50Speaker 1: If your firewall policies are robust, do you really need
- 21:53Speaker 1: to hide your internal addressing or are we just clinging
- 21:57Speaker 1: to NAT because it's the architecture we've spent our entire
- 21:59Speaker 1: careers mastering.
- 22:00Speaker 2: Definitely something to mull over as you analyze your own infrastructure,
- 22:04Speaker 2: keep experimenting in your own labs.
- 22:06Speaker 3: Guys, thanks for joining us on this deep dive.