Network Security and Defense Questions

Securing networks at the infrastructure layer. Covers firewalls, ACLs and rule design, network device hardening and secure configuration, intrusion detection and prevention systems, VPN and remote-access encryption, network protocols and their security properties, and packet-level traffic analysis. The hands-on network-defense layer, distinct from zero-trust architecture strategy.

MediumTechnical
34 practiced

Write a tcpdump/BPF filter that captures TCP packets destined to port 443 that contain a TLS "ClientHello" record (TLS record type 0x16) in the first TLS record. Provide the BPF filter expression and explain why it works (explain offsets for IP and TCP headers and the TLS record header check).

HardTechnical
18 practiced

Write detailed pseudocode or a Python outline (using scapy or pyshark) to reconstruct TCP sessions from a pcap, reassemble payloads per session, compute per-session entropy and average packet inter-arrival time, and output a CSV of session metadata for downstream analysis. Discuss memory, concurrency, and performance considerations for large pcaps.

HardTechnical
21 practiced

Explain how NAT, hairpinning (NAT loopback), and service discovery interact when traffic traverses multiple firewalls or VPCs. Walk through how you would diagnose a resulting failure (for example, a callback or health check that stops working) and propose concrete mitigations and troubleshooting steps.

MediumTechnical
20 practiced

Write a set of Azure Network Security Group (NSG) rules (in descriptive form) that permit outbound HTTPS only for a web application subnet while denying outbound SSH for that same subnet, and allow inbound health-check probes from a public load balancer IP range. Explain rule priority numbers and how implicit deny plays out in NSGs.

HardTechnical
25 practiced

Provide a concise nftables or iptables configuration snippet that rate-limits new HTTP connections to 200 new connections per second per source IP with a burst of 400, dropping connections that exceed this. Explain limitations of this approach under high-cardinality distributed attacks and the impact on conntrack tables.

Unlock Full Question Bank

Get access to all Network Security and Defense interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.