Latest / CyberCode Academy / Course 29 - AZ-500 Microsoft Azure Security Technologies | Episode 6: Azure Network Security
Transcript
- 0:00Speaker 1: Imagine having absolute X ray vision over every single piece
- 0:04Speaker 1: of data entering and leaving a massive corporate network. Like,
- 0:08Speaker 1: just picture it.
- 0:08Speaker 2: Oh, that would be the dream, right right.
- 0:10Speaker 1: You're sitting at your terminal and you don't just see servers,
- 0:13Speaker 1: you see the invisible lifeblood of the entire organization everything. Yeah,
- 0:19Speaker 1: you know instantly what traffic is allowed, what traffic is blocked,
- 0:23Speaker 1: and you can spot malicious activity originating from halfway across
- 0:27Speaker 1: the globe.
- 0:28Speaker 2: And you do all of this without ever having to
- 0:30Speaker 2: log into a single virtual machine exactly.
- 0:33Speaker 1: It sounds like science fiction or at least some kind
- 0:36Speaker 1: of superpower. But today we're going to show you exactly
- 0:39Speaker 1: how to build it. We're mastering cloud network security, unpacking
- 0:42Speaker 1: the blueprints of advanced architecture, and exploring how to diagnose
- 0:47Speaker 1: the absolute most complex routing failures.
- 0:50Speaker 2: It really is an incredibly powerful level of visibility to achieve,
- 0:54Speaker 2: because once you understand the underlying mechanisms of how cloud
- 0:58Speaker 2: networks communicate, and honestly, more importantly, the exact reasons why
- 1:03Speaker 2: they fail to communicate, transition from just guessing at problems
- 1:08Speaker 2: to actively engineering robust solutions.
- 1:11Speaker 1: Okay, let's unpack this before you can secure a cloud network,
- 1:14Speaker 1: you need the tools to see it and diagnose it.
- 1:16Speaker 1: I mean you obviously can't protect.
- 1:18Speaker 2: What you can't see, right, that's step one.
- 1:20Speaker 1: And in the Azure ecosystem, that core visibility tool is
- 1:23Speaker 1: a built in service called network Watcher.
- 1:25Speaker 2: Yeah, network Watcher is fundamentally your diagnostic control plane. I
- 1:29Speaker 2: think about a traditional on premise data center. If you
- 1:32Speaker 2: wanted to monitor traffic, you might have physical appliances like
- 1:35Speaker 2: actual hardware plugged into physical switches to tap the lines,
- 1:38Speaker 2: the old school way exactly. But in the cloud, the
- 1:41Speaker 2: infrastructure is entirely virtualized. The switches are software, the cables
- 1:45Speaker 2: are software, so your diagnostic tools have to be virtualized too.
- 1:49Speaker 2: Network Watcher basically gives you a suite of monitoring, analysis,
- 1:54Speaker 2: and diagnostic capabilities built directly into the Azure fabric. It
- 1:58Speaker 2: allows you to understand the hell both of your network
- 2:01Speaker 2: without the massive overhead of installing third party agent software
- 2:05Speaker 2: on every single virtual machine you deploy.
- 2:07Speaker 1: Right, Because if the network is virtual, the old methods
- 2:10Speaker 1: just don't apply. It's less like installing physical security cameras
- 2:13Speaker 1: in an office building and more like injecting contrasts dye
- 2:17Speaker 1: into a patient's bloodstream.
- 2:19Speaker 2: Ooh, I like that analogy.
- 2:20Speaker 1: Because the network is entirely virtual, Network Watcher is fundamentally
- 2:25Speaker 1: injecting diagnostic capabilities directly into the fabric of the hypervisor itself,
- 2:30Speaker 1: letting you watch the data flow light up in real
- 2:32Speaker 1: time without having to cut the patient open, or in
- 2:35Speaker 1: our case, without logging into the servers. But here is
- 2:38Speaker 1: the operational reality that always trips people up. If I
- 2:41Speaker 1: have a massive enterprise network with hundreds of subnets, thousands
- 2:44Speaker 1: of network interface cards, and these incredibly complex security policies,
- 2:48Speaker 1: how do I know which specific rule is locking me
- 2:51Speaker 1: out of a server? It can be a nightmare, Like
- 2:53Speaker 1: if my front end web server suddenly can't talk to
- 2:56Speaker 1: my back end database, how do I find the needle
- 2:59Speaker 1: in that massive digital haystack.
- 3:01Speaker 2: So that is the exact problem that a specialized tool
- 3:04Speaker 2: within Network Watcher called ip flow Verify was built to solve.
- 3:09Speaker 1: Ip flow Verify.
- 3:11Speaker 2: Yes, instead of manually parsing through hundreds of lines of logic,
- 3:15Speaker 2: ip flow verify allows you to query the Azure resource
- 3:18Speaker 2: manager to see is a specific hypothetical traffic flow will
- 3:22Speaker 2: be allowed or blocked by your network security group rules
- 3:25Speaker 2: commonly known as NSG's so it's.
- 3:27Speaker 1: Essentially running a simulation of the network fabric.
- 3:30Speaker 2: That's a great way to look at it. Let's say
- 3:31Speaker 2: you are troubleshooting why an HTTTPS request from application server
- 3:35Speaker 2: A simply refuses to arrive at database server B. Instead
- 3:38Speaker 2: of pulling your hair out, you just plug the parameters
- 3:40Speaker 2: into it flow verify, nice and easy. You give it
- 3:42Speaker 2: the classic five tuple the source IP, the destination IP,
- 3:46Speaker 2: the source port, the destination port, and the protocol E
- 3:48Speaker 2: quick check. The ASTRA fabric evaluates all the active rules
- 3:51Speaker 2: in the control plane and tells you definitively this traffic
- 3:53Speaker 2: is blocked by a specific DENI rule on port four
- 3:57Speaker 2: forty three within your database's NSG. What's fascinating here is
- 4:00Speaker 2: the sheer amount of manual labor this eliminates and the
- 4:03Speaker 2: precision it offers. In a complex architecture, you often have
- 4:08Speaker 2: network security groups applied at the individual network interface card
- 4:12Speaker 2: level the NIC and completely different, potentially conflicting nsgs applied
- 4:17Speaker 2: at the broader subnet level. Right they can overlap, and
- 4:20Speaker 2: trying to manually read through the logic of overlapping rules
- 4:23Speaker 2: for both the source and the target is an absolute nightmare.
- 4:26Speaker 2: Ipflow Verify clits right through the noise by testing the
- 4:29Speaker 2: actual combined state.
- 4:31Speaker 1: That is a massive life saver, because trying to mentally
- 4:35Speaker 1: calculate the priority of fifty different firewall rules is not
- 4:38Speaker 1: how anyone wants to spend their Friday afternoon.
- 4:40Speaker 2: Definitely not.
- 4:41Speaker 1: And I understand there's another feature right next to this
- 4:44Speaker 1: called effective security rules.
- 4:46Speaker 2: Yes there is. While ipflow verify simulates a single specific connection,
- 4:51Speaker 2: effective security rules gives you the full mathematical breakdown. It
- 4:54Speaker 2: aggregates every single policy affecting a virtual machine. It looks
- 4:58Speaker 2: at the NSC rules, it looks at the subnet rule rules,
- 5:00Speaker 2: it calculates the priorities, and it returns a consolidated, unified
- 5:04Speaker 2: list of exactly which inbound and outbound rules are actively
- 5:10Speaker 2: being applied to that specific interface at that exact moment.
- 5:14Speaker 1: So it's the ultimate truth teller for your firewall rules exactly.
- 5:17Speaker 1: But knowing the rules is only half the battle, right.
- 5:20Speaker 1: Sometimes you need to see the actual evidence, you know,
- 5:22Speaker 1: the actual data flowing through the pipes.
- 5:24Speaker 2: This you do.
- 5:25Speaker 1: Here's where it gets really interesting when you have to
- 5:27Speaker 1: get down into the absolute weeds of a security incident.
- 5:31Speaker 1: Network watcher allows you to trigger packet captures.
- 5:35Speaker 2: Right, and packet captures the gold standard for forensic network analysis.
- 5:39Speaker 2: When you initialize a packet capture, you are instructing the
- 5:42Speaker 2: hypervisor to literally copy the raw data packets bit forbid
- 5:47Speaker 2: as they traverse the virtual machines network interface. It captures
- 5:51Speaker 2: the headers, the payload.
- 5:52Speaker 1: Everything, everything. And what's cool is the flexibility. You don't
- 5:55Speaker 1: have to be sitting there hitting a manual record button.
- 5:57Speaker 2: No note at all.
- 5:58Speaker 1: You can configure azure to trigger are these captures automatically
- 6:01Speaker 1: the moment of specific security alert fires. You can initiate
- 6:05Speaker 1: them from the portal or via a PowerShell script if
- 6:08Speaker 1: you are automating incident.
- 6:09Speaker 2: Response, or even the rest API.
- 6:11Speaker 1: Right. It takes all that raw packet data and writes
- 6:14Speaker 1: it out to a storage account or directly as a
- 6:17Speaker 1: file on the target VM, so you can pull it
- 6:20Speaker 1: into an inspection tool like wireshark and look at every
- 6:23Speaker 1: single bite.
- 6:24Speaker 2: It's incredible for micro analysis.
- 6:26Speaker 1: Wait, I have to push back here. Okay, if I
- 6:28Speaker 1: turn on raw packet capture for an entire enterprise network,
- 6:31Speaker 1: wouldn't I generate terabytes of data in minutes?
- 6:34Speaker 2: Oh? Absolutely?
- 6:35Speaker 1: I mean copying the full payload of every single transmission.
- 6:38Speaker 1: I bankrupt the IT department just on storage costs a loan,
- 6:42Speaker 1: not to mention the computing power needed to process it.
- 6:44Speaker 1: I can't actually do this at scale, can we?
- 6:46Speaker 2: You are absolutely right, and that is a very valid
- 6:48Speaker 2: architectural concern. Packet captures are heavy. They are designed for
- 6:53Speaker 2: surgical strikes when you need deep forensic evidence for a
- 6:56Speaker 2: specific compromise machine.
- 6:57Speaker 1: Okay, so just for the really bad days.
- 6:59Speaker 2: Yeah, when you need macro analysis, the big picture of
- 7:03Speaker 2: the entire network. You do not capture the payload. You
- 7:06Speaker 2: turn to NSG flow logs, specifically version two, and a
- 7:10Speaker 2: powerful visualization engine called traffic analytics.
- 7:13Speaker 1: So, if raw packets are the whole fire hose, a
- 7:15Speaker 1: flow log sounds like it's just the metadata, like reading
- 7:19Speaker 1: the outside of the envelope instead of opening the letter
- 7:21Speaker 1: to read the actual message.
- 7:22Speaker 2: That is a perfect way to describe it.
- 7:24Speaker 1: Is that really enough data to actually troubleshoot a complex
- 7:27Speaker 1: network with it?
- 7:28Speaker 2: Is more than enough because of how the metadata is structured.
- 7:31Speaker 2: An NSG flow log records the critical parameters of the conversation.
- 7:35Speaker 2: It logs every single packet flow, whether the firewall accepted
- 7:38Speaker 2: it or dropped it along with the source IP, the
- 7:41Speaker 2: destination IP, the ports, the protocol, and crucially exactly which
- 7:45Speaker 2: firewall rule cause the allow or deny action. Oh wow,
- 7:49Speaker 2: And in version two of this feature, these logs are
- 7:52Speaker 2: saved as JSON formatted blobs inside an Azure storageccount. It
- 7:56Speaker 2: gives you the connection state without the massive payload overhead.
- 7:59Speaker 1: Okay, so we are generating a massive, constantly updating Jason
- 8:03Speaker 1: text file of every connection attempt, which is infinitely cheaper
- 8:07Speaker 1: and better for scale than raw packets. But Jason text
- 8:11Speaker 1: files aren't exactly easy for a human being to read
- 8:14Speaker 1: when there are millions of lines.
- 8:15Speaker 2: Which is exactly why we need traffic analytics.
- 8:18Speaker 1: Ah Okay.
- 8:18Speaker 2: Traffic analytics is the intelligence engine that ingests those raw
- 8:22Speaker 2: Jason logs and translates them into actionable, human readable insights.
- 8:27Speaker 2: It takes those millions of lines of text and maps
- 8:29Speaker 2: them visually.
- 8:30Speaker 1: That sounds much better.
- 8:31Speaker 2: It really is. You can look at a dashboard and
- 8:33Speaker 2: see subnit utilization, you can see the direction of traffic flow,
- 8:36Speaker 2: and most impressively, it automatically cross references every single IP
- 8:41Speaker 2: address in those logs with Microsoft's Global Threat Intelligence database. Wait, seriously, yes,
- 8:47Speaker 2: it instantly flags which traffic is benign and which traffic
- 8:50Speaker 2: is originating from known malicious botnets or compromised infrastructure.
- 8:54Speaker 1: That is the x ray vision we were talking about at
- 8:56Speaker 1: the start. There it is, But to get that kind
- 8:58Speaker 1: of automated insight, you have to set the infrastructure up correctly.
- 9:02Speaker 1: You can't just flip a switch. You are orchestrating several
- 9:05Speaker 1: different Azure services to work in harmony, right correct.
- 9:08Speaker 2: The architecture for this visibility requires precise configuration. First, you
- 9:13Speaker 2: need a log analytics workspace to act as the processing engine. Okay,
- 9:17Speaker 2: and a critical detail here is that the name of
- 9:20Speaker 2: this workspace must be globally unique across all of Azure.
- 9:24Speaker 1: Why globally unique? Why does it matter if my workspace
- 9:27Speaker 1: has the same name as someone else's in a different company.
- 9:30Speaker 2: Because of how Azure Resource Manager and the underlying DNS
- 9:33Speaker 2: infrastructure resolve endpoints, your log analytics workspace needs to be
- 9:38Speaker 2: accessible for injection across the entire global Azure backbone. Oh
- 9:42Speaker 2: I see, If the naming space wasn't globally unique, the
- 9:44Speaker 2: routing for those telemetry logs could conflict. So unique name first. Next,
- 9:49Speaker 2: you need a storage account to hold the raw Jason
- 9:51Speaker 2: flow logs got it. Typically you can figure a general
- 9:55Speaker 2: purpose V two storage account, but you only need locally
- 9:57Speaker 2: redundant storage or lars.
- 10:00Speaker 1: And LRS is sufficient because we don't need to pay
- 10:02Speaker 1: extra for georeplicating this data across the world. Right, it's
- 10:07Speaker 1: just transient log data waiting to be ingested by the
- 10:10Speaker 1: analytics center.
- 10:11Speaker 2: Precisely, it's about cost efficiency. You place this storage account
- 10:15Speaker 2: in the same region as the network you are monitoring,
- 10:18Speaker 2: say east US. Then you go to your network security
- 10:22Speaker 2: group and able to flow logs, point them to that
- 10:25Speaker 2: East US sworage account and set a retention policy.
- 10:28Speaker 1: How long do we normally keep those.
- 10:29Speaker 2: Thirty days is a standard baseline. It gives you enough
- 10:32Speaker 2: historical data to investigate a breach without paying to store
- 10:36Speaker 2: ancient history. Finally, when you enable traffic analytics, you want
- 10:40Speaker 2: to adjust the processing interval. By default, it might batch
- 10:43Speaker 2: process every hour, but you can reduce that interval down
- 10:46Speaker 2: to ten minutes.
- 10:47Speaker 1: And dropping it to ten minutes means when you make
- 10:49Speaker 1: a change to a firewall rule, you aren't waiting until
- 10:51Speaker 1: after lunch to see if it actually works. You get
- 10:53Speaker 1: near real time feedback exactly. Okay, so we have the
- 10:56Speaker 1: diagnostic toolkit built. We have ipflow verify for simulating the
- 11:00Speaker 1: packet captures for microscopic forensic evidence, and traffic analytics for
- 11:04Speaker 1: the macro level X raymap.
- 11:05Speaker 2: That's the toolkit.
- 11:06Speaker 1: So I want to invite you, the listener, to run
- 11:09Speaker 1: through a mental simulation with us. Let's step into a
- 11:11Speaker 1: mental lab and see exactly how network traffic behaves under
- 11:15Speaker 1: the hood and how it gets recorded by these tools.
- 11:18Speaker 2: A mental simulation is a fantastic way to solidify these
- 11:21Speaker 2: abstract concepts. Let's set the stage all right.
- 11:24Speaker 1: Picture this architecture. You have a virtual network a vnet.
- 11:28Speaker 1: Inside this vnut, you have two virtual machines living in
- 11:31Speaker 1: completely separate subnets. On the front end subnet, you have
- 11:34Speaker 1: a Windows virtual machine acting as a jump box.
- 11:37Speaker 2: Okay.
- 11:38Speaker 1: On the back end subnet, you have a Linux virtual
- 11:40Speaker 1: machine acting as a secure database and standing guard over
- 11:43Speaker 1: both subnets is a single network security group.
- 11:46Speaker 2: So we have a classic multi tier application boundary exactly.
- 11:50Speaker 1: Now, let's take three specific actions. Imagine you are at
- 11:53Speaker 1: your laptop and you securely remote desktop into that front
- 11:57Speaker 1: end Windows machine. You open up the command prompt the
- 12:00Speaker 1: cursor is blinking. Action one, you try to ping the
- 12:03Speaker 1: internal IP address of your back end Linux server. You
- 12:06Speaker 1: hit enter and it times out. It fails completely.
- 12:09Speaker 2: Okay, so the ICMP echo request failed, right.
- 12:12Speaker 1: Action two, You open up an SSH client from that
- 12:14Speaker 1: same Windows machine. You type in the username and that
- 12:18Speaker 1: exact same IP address for the back end Linux VM.
- 12:21Speaker 1: You enter your password and boom, you're in. It succeeds.
- 12:23Speaker 2: The tcport twenty two connection was a success.
- 12:26Speaker 1: Action three. Now that you are securely logged into the
- 12:29Speaker 1: back end Linux machine, you run a command to reach
- 12:32Speaker 1: out to the open Internet. You use the CURL command
- 12:35Speaker 1: to request a secure web page let's say https, dot Cloud,
- 12:39Speaker 1: dot guru. The terminal outputs the raw HTML code the
- 12:43Speaker 1: external requests. Succeeds.
- 12:45Speaker 2: If we connect this to the bigger picture, we need
- 12:48Speaker 2: to ask why the network behave this way and how
- 12:51Speaker 2: our diagnostic tools capture this invisible logic. Let's look at
- 12:54Speaker 2: the pin command first.
- 12:55Speaker 1: Why did it fail?
- 12:56Speaker 2: Ping utilizes the ICMP protocol out because by default, Azure
- 13:02Speaker 2: network security groups do not have an explicit rule allowing
- 13:05Speaker 2: ICMP traffic between subnets. Therefore, the underlying default deny all
- 13:10Speaker 2: rule caught those packets and dropped them.
- 13:12Speaker 1: Silently, which is a great security posture. Just because machines
- 13:15Speaker 1: are in the same virtual network doesn't mean they should
- 13:16Speaker 1: automatically be allowed to ping each other. But the SSH
- 13:19Speaker 1: connection work perfectly.
- 13:21Speaker 2: Yes, because SSH uses TCP over Port twenty two. In
- 13:26Speaker 2: a properly engineered multi tier setup, the architect would have
- 13:29Speaker 2: created an explicit high priority rule allowing Port twenty two
- 13:33Speaker 2: traffic specifically from the front end subnet's IP range to
- 13:37Speaker 2: the back end subnet.
- 13:38Speaker 1: Right.
- 13:39Speaker 2: And finally, the curl command worked because Azure nsgs possess
- 13:42Speaker 2: a built in default rule that permits all outbound traffic
- 13:45Speaker 2: to the Internet unless you explicitly override it.
- 13:48Speaker 1: Now Here is the magical part of everything we've talked
- 13:51Speaker 1: about today. You log out of those servers, you wait
- 13:53Speaker 1: that ten minute processing interval, and you open up your
- 13:55Speaker 1: Azure portal to the traffic analytics dashboard. Yeah, you don't
- 13:59Speaker 1: see command line or Jason text files anymore.
- 14:02Speaker 2: Oh, you see the visual map.
- 14:03Speaker 1: You see a beautiful interactive visual map of exactly what
- 14:06Speaker 1: we just did. You see a green line showing the
- 14:08Speaker 1: accepted RDP traffic coming from your laptop's public IP to
- 14:12Speaker 1: the Windows front end. You see another green line showing
- 14:15Speaker 1: the accepted SSH traffic bridging the subnets.
- 14:18Speaker 2: It's so clear.
- 14:19Speaker 1: You see a bold red line representing those blocked icmpping attempts,
- 14:23Speaker 1: and you see the outward flow of the CURL request
- 14:26Speaker 1: heading to the Internet.
- 14:27Speaker 2: It takes the purely invisible logic of the software defined network.
- 14:31Speaker 2: It makes it entirely visible. You no longer have to
- 14:34Speaker 2: assume your security rules are working. You have empirical visual
- 14:39Speaker 2: proof that the rules are behaving exactly as intended.
- 14:43Speaker 1: Visualizing these flows is incredible, But that map is only
- 14:46Speaker 1: going to show you a disaster if the underlying routing
- 14:48Speaker 1: rules were built poorly to begin with. Very true, Let's
- 14:51Speaker 1: look at how we actually engineer those rules. We are
- 14:54Speaker 1: going to put this into practice with two high stakes,
- 14:57Speaker 1: real world architectural dilemmas, all the kinds of scenarios that
- 15:01Speaker 1: trip up even seasoned cloud engineers.
- 15:03Speaker 2: This is where we transition from merely observing the network
- 15:06Speaker 2: to actively designing its defenses.
- 15:08Speaker 1: Dilemma number one. Imagine you are passed with locking down
- 15:11Speaker 1: a highly sensitive virtual machine. The business requirements state that
- 15:15Speaker 1: this VM is only allowed to connect outbound to Azure
- 15:19Speaker 1: storage services period. Okay, pretty strict, and it is only
- 15:23Speaker 1: allowed to accept inbound traffic from Azure load balancers, nothing else.
- 15:28Speaker 1: The challenge is what is the absolute minimum number of
- 15:31Speaker 1: new NSG rules you need to create to enforce this,
- 15:34Speaker 1: and just a quick parameter, we are not counting the
- 15:38Speaker 1: default hidden rules that exist on every NSG, just the
- 15:41Speaker 1: custom ones you have to write.
- 15:43Speaker 2: This scenario demands a deep understanding of the hypervisor's to
- 15:46Speaker 2: fault behaviors. If you don't know what an NSG allows automatically,
- 15:51Speaker 2: you will end up creating unnecessary, redundant rules that bloat
- 15:54Speaker 2: your administrative overhead.
- 15:56Speaker 1: Let's work through the logic together. Let's tackle the inbound
- 15:58Speaker 1: traffic first. Sounds good by default, and NSG automatically allows
- 16:02Speaker 1: all inbound traffic originating from within the same virtual network.
- 16:06Speaker 1: We don't want that. We only want the load balancer,
- 16:08Speaker 1: so we need to create one new rule that explicitly
- 16:11Speaker 1: denies vnet inbound traffic. By doing that, we override and
- 16:14Speaker 1: cancel out that default allow rule. And because Azure has
- 16:17Speaker 1: another separate default rule that natively allows Azure load balancers,
- 16:20Speaker 1: simply denying the vnet leaves the load balancer access perfectly intact.
- 16:24Speaker 1: So that's one custom rule for the inbound side.
- 16:26Speaker 2: That is precisely how you leverage the default architecture to
- 16:30Speaker 2: your advantage. Now, what about the outbound requirements?
- 16:34Speaker 1: Outbound gets a bit trickier. By default, Azure nsgs are
- 16:38Speaker 1: very permissive. They allow all outbound traffic to both of
- 16:41Speaker 1: virtual network and the open Internet. We have to lock
- 16:44Speaker 1: that down, entirely, complete lockdown. So our second new rule
- 16:47Speaker 1: must be a blanket deny all outbound. This completely severs
- 16:52Speaker 1: the VM's ability to initiate connections anywhere. But wait, if
- 16:55Speaker 1: we deny absolutely everything outbound, the VM can't hit Azure Storage,
- 17:00Speaker 1: which was the core business requirement.
- 17:02Speaker 2: Ah, there's the catch.
- 17:03Speaker 1: So we need our third custom rule, an explicit allow
- 17:06Speaker 1: rule placed at a higher priority than the deny rule,
- 17:09Speaker 1: with its destination set dynamically to the Azure service tag
- 17:12Speaker 1: for storage.
- 17:13Speaker 2: Exactly, you drop a massive steel door to deny everything,
- 17:16Speaker 2: and then you drill a highly specific monitored hole through
- 17:19Speaker 2: that door using a service tag, which ensures Microsoft handles
- 17:22Speaker 2: the underlying IP addresses for the storage service.
- 17:25Speaker 1: So the final architecture one rule to deny v net inbound,
- 17:29Speaker 1: one rule to deny all outbound, one rule to allow
- 17:32Speaker 1: storage outbound via the service tag. The minimum number of
- 17:36Speaker 1: custom rules needed is exactly three.
- 17:39Speaker 2: That is elegant rule design. You achieve the zero trust
- 17:42Speaker 2: posture with maximum security and minimum administrative complexity.
- 17:46Speaker 1: All right, Dilemma number two, we are moving from firewall
- 17:49Speaker 1: rules to route tables. Firewall rules dictative traffic is allowed,
- 17:53Speaker 1: but write tables dictate where the traffic physically goes. It's
- 17:56Speaker 1: the life blood.
- 17:57Speaker 2: Of the network, the plumbing.
- 17:58Speaker 1: Exactly here is the architecture. You have a server sitting
- 18:02Speaker 1: in an isolated DMZ subnet. In that exact same subnet,
- 18:05Speaker 1: there is a network virtual Appliance an MVA, which acts
- 18:08Speaker 1: as a router. This NVA maintains an IPsec VPN tunnel
- 18:12Speaker 1: directly to an on premise corporate data center.
- 18:15Speaker 2: Got it.
- 18:15Speaker 1: At the same time, you have an Azure firewall deployed
- 18:18Speaker 1: elsewhere in the cloud to inspect all traffic headed to
- 18:21Speaker 1: the open Internet. Your job is to engineer the route
- 18:23Speaker 1: table for the servers subnet so that Internet traffic and
- 18:26Speaker 1: corporate traffic go to their respective security checkpoints.
- 18:29Speaker 2: Let's break down the precise ip routing logic required here.
- 18:32Speaker 2: A route table is essentially a said of instructions evaluating
- 18:35Speaker 2: the longest prefix match, telling packets where their next hop
- 18:39Speaker 2: should be based on their ultimate destination IP. We have
- 18:42Speaker 2: two primary destinations to account for, the massive open Internet
- 18:46Speaker 2: and the specific on premise corporate network.
- 18:48Speaker 1: Let's tackle the Internet first.
- 18:50Speaker 2: The Internet route must function as your default route. It
- 18:53Speaker 2: is a catch all for any traffic that isn't explicitly
- 18:56Speaker 2: destined for a known internal network. In networking terms, the
- 19:00Speaker 2: address prefix for a default route is zero point zero
- 19:03Speaker 2: point zero zero.
- 19:04Speaker 1: The classic catch all YEP.
- 19:06Speaker 2: When a packet's destination doesn't match anything more specific, it
- 19:10Speaker 2: hits that catch all prefix. The route table then needs
- 19:13Speaker 2: to know where to send it. In this scenario, the
- 19:15Speaker 2: next hop must be explicitly defined as the private IP
- 19:18Speaker 2: address of your Azure firewall, which let's say is ten
- 19:21Speaker 2: point one by one two eight point four.
- 19:23Speaker 1: That makes perfect sense. If the server tries to reach
- 19:26Speaker 1: a random public web address, the route table catches it
- 19:29Speaker 1: with the zero point zero point zero zero zero rule
- 19:31Speaker 1: and funnels it directly to the firewall for deep packet inspection.
- 19:34Speaker 1: But what about the highly sensitive corporate traffic.
- 19:37Speaker 2: The on prem route requires a specific address prefix that
- 19:40Speaker 2: corresponds exclusively to the internal corporate network space. Let's assume
- 19:45Speaker 2: that on premise data center operates on the ten point
- 19:47Speaker 2: zero point zero one six IP block. Okay, If a
- 19:51Speaker 2: server in the DMZ tries to reach an IP address
- 19:53Speaker 2: in that specific range, the route table intercepts it because
- 19:57Speaker 2: it is a more specific match than the default route.
- 20:00Speaker 2: Its next hop cannot be the azure firewalls. Next hop
- 20:03Speaker 2: must be the private IP address of the network virtual
- 20:06Speaker 2: appliance that manages the encrypted VPM tunnel, the NVA. Right,
- 20:10Speaker 2: Let's say that NVA's IP is ten point zero point
- 20:12Speaker 2: six to four point one zero wow. Okay, this raises
- 20:15Speaker 2: an important question. Why must we be so meticulous about
- 20:18Speaker 2: these specific next hops? Because understanding exact IP routing is
- 20:22Speaker 2: the bedrock of preventing catastrophic security breaches.
- 20:24Speaker 1: It's so easy to mess up, it is.
- 20:27Speaker 2: If you make a TYPO and accidentally route your zero
- 20:29Speaker 2: point zero point zero zero zero Internet traffic through the
- 20:32Speaker 2: VPN appliance instead of the firewall, you have just exposed
- 20:36Speaker 2: your on premise network to uninspected, unauthenticated Internet traffic, or conversely,
- 20:42Speaker 2: you've black holed your outbound web traffic entirely. A single
- 20:46Speaker 2: routing error can completely bypass every single firewall rule you've painstakingly.
- 20:51Speaker 1: Built, which is terrifying but also exhilarating when you engineer
- 20:55Speaker 1: it correctly. It's like solving a giant high stakes puzzle
- 20:57Speaker 1: where the pieces are made of live data.
- 20:59Speaker 2: That's why why we do it.
- 21:01Speaker 1: So what does this all mean? We've covered a tremendous
- 21:03Speaker 1: amount of ground today. We've learned that true cloud network
- 21:06Speaker 1: security isn't just about throwing up giant digital walls and
- 21:09Speaker 1: hoping they hold. It's about having the right combination of tight,
- 21:12Speaker 1: precisely engineered rules and perfect, unblinking visibility into how those
- 21:17Speaker 1: rules are operating in the real world.
- 21:19Speaker 2: The x ray vision.
- 21:20Speaker 1: The x ray vision. To make sure this toolkit really
- 21:23Speaker 1: sticks with you, think back to the specific scenarios we covered.
- 21:27Speaker 1: Here is a quick review question for non The next
- 21:30Speaker 1: time you are staring at a broken connection between two
- 21:32Speaker 1: servers and you need to know if a firewall rule
- 21:35Speaker 1: is blocking it, but you absolutely do not want to
- 21:38Speaker 1: dig through millions of lines of raw packet data. Which
- 21:41Speaker 1: tool would you use? If you said ip flow Verify.
- 21:45Speaker 1: You nailed it. You are well on your way to
- 21:47Speaker 1: mastering cloud diagnostics.
- 21:49Speaker 2: And as you master these diagnostic tools, I want to
- 21:51Speaker 2: leave you with a final thought to mull Over. Today,
- 21:54Speaker 2: we talked extensively about using traffic analytics to ingest massive
- 21:59Speaker 2: JSON law ugs and instantly categorize malicious traffic on a
- 22:03Speaker 2: visual map. It's an incredible application of threat intelligence. But
- 22:07Speaker 2: consider this. If the analytic system is already intelligent enough
- 22:10Speaker 2: to definitively flag a flow as malicious in near real
- 22:13Speaker 2: time based on global data, how close are we to
- 22:16Speaker 2: a future where these networks are entirely self healing. Imagine
- 22:19Speaker 2: an architecture that doesn't just send you an alert, but
- 22:21Speaker 2: dynamically rewrites its own network security group rules, severing malicious connections,
- 22:25Speaker 2: and updating route tables before a human engineer even has
- 22:28Speaker 2: time to open the dashboard. The leaf from automated analytics
- 22:32Speaker 2: to truly autonomous network defense is much smaller than you think.