1. Live capture
tcpdump -i eth0 captures live packets on an interface; the filter narrows it to TCP traffic on port 80.
tcpdump -i eth0 tcp port 80Typorithm · medium
Step 1 of 8 · intro card
Network Security
An IDS like Snort or Suricata detects suspicious traffic by signatures and anomalies; an IPS blocks it inline. tcpdump captures packets live or to a .pcap file, and tools like Wireshark analyze them. This network telemetry feeds the SOC so defenders can spot and respond to intrusions.
An intrusion detection system (IDS) watches network traffic and raises alerts when it matches known-bad signatures or statistical anomalies. Snort and Suricata are the common open-source engines. An intrusion prevention system (IPS) sits inline and can drop the malicious traffic instead of only alerting.
tcpdump captures packets directly: -i selects an interface for live viewing, and -w writes them to a .pcap file. Analysts open those captures in Wireshark to inspect flows, reconstruct sessions, and confirm what an alert really was.
Snort loads a ruleset (snort.conf) and alerts on matches, while Suricata can replay a saved pcap with -r for offline analysis. Together these signals form network telemetry that feeds a security operations center (SOC) for detection and response.
IDS detects and alerts; IPS blocks inline.
Snort and Suricata use signatures plus anomalies.
tcpdump captures packets live or to a .pcap.
tcpdump -i eth0 tcp port 80
tcpdump -w capture.pcap host 10.0.0.5
snort -A console -q -c snort.conf
suricata -r capture.pcapConnect each part of the code to the concept before you type.
tcpdump -i eth0 captures live packets on an interface; the filter narrows it to TCP traffic on port 80.
tcpdump -i eth0 tcp port 80-w writes packets to a .pcap file you can open later in Wireshark; host filters to one address.
tcpdump -w capture.pcap host 10.0.0.5Snort reads its ruleset from -c snort.conf and alerts on matching signatures, here printed to the console.
snort -A console -q -c snort.conf-r replays a saved pcap through Suricata's signature and anomaly engine for offline analysis.
suricata -r capture.pcapRead the concept map and follow the code breakdown.
Type the implementation, repair mistakes and work through every recall exercise.
Use the final check without hints; revisit weak concepts in short practice sessions.