Network › Module 3 › Lesson 3
East-West vs North-South
Direction is a map — then label THIS host’s talks to vs :8792.
Visual · east_west_north_south
North-south crosses the edge. East-west stays among peers. http://192.168.0.1/ YOUR lab. /8792.
Opening
The edge firewall can be perfect and the building still burns sideways.
North-south is traffic that crosses a perimeter you drew: browser to public site, partner to DMZ, laptop to internet. East-west is peer to peer inside that perimeter: app to database, workstation to workstation, container to container. Attackers who phish one laptop often need east-west more than they need another north-south hole. A flat LAN is an east-west highway with no tolls. Original Cyberlium.
1. Draw the arrows before you buy another edge box
North-south controls are familiar: home NAT, office edge, cloud load balancer. They do nothing to a process that already sits beside its victim. If 8782 and 8792 were two VMs on one VLAN, a curl from one to the other would never hit the internet firewall.
first. A router admin page is an edge device; it is not your east-west lab. STOP and keep arrows on 127.0.0.1. List THIS host’s addresses so you remember which talks never leave the machine.
Command guide
Draw the arrows before you buy another edge box
═══ COMMANDS ═══
Command — copy this
ip -4 -o addr show | head -n 20 powershell.exe -NoProfile -Command "Get-NetIPAddress -AddressFamily IPv4 | Select-Object IPAddress,InterfaceAlias | Format-Table -AutoSize"
2. Loopback-to-loopback is sideways even though it never hits a switch
When you curl from a client that also uses 8782, no packet hits 192.168.0.1. That is the pedagogical gift: you can talk about east-west without a second physical NIC. The metaphor’s limit is also honest — real east-west crosses real NICs you must be authorized to instrument.
Do not “make it more real” with ettercap on the LAN. Do not bind 0.0.0.0 so a second laptop can be the east. Classmates run their own two ports.
Command guide
Loopback-to-loopback is sideways even though it never hits a switch
═══ INSTALL ═══
Linux (Debian/Ubuntu):
Command — copy this
sudo apt install curl sudo apt install python3 sudo apt install dnsutils
macOS:
Command — copy this
brew install python3
Windows: Built-in (PowerShell: Invoke-WebRequest) Download https://python.org/downloads/ Use nslookup (built-in)
═══ COMMANDS ═══
Command — copy this
python3 - << 'PY'
import socket
for port in (8782, 8792):
s = socket.socket(); s.settimeout(0.4)
r = s.connect_ex(("127.0.0.1", port))
s.close()
print("east-west cartoon dest 127.0.0.1:%s" % port, "listen" if r == 0 else "down")
PYCommand — copy this
curl -sS -m 2 -o /dev/null -w "8782:%{http_code}
" "http://127.0.0.1:8782/"
curl -sS -m 2 -o /dev/null -w "8792:%{http_code}
" "http://127.0.0.1:8792/"3. Microsegmentation is east-west policy with smaller rooms
Once you can say “app may speak to db on this port, workstations may not,” you are doing east-west allowlisting. Identity can sit in that sentence. A giant “inside” VLAN cannot. Tomorrow’s lab starts two listeners so the dests exist; today’s job is the arrow labels.
Refuse lateral-movement cookbooks: no nmap -sS inside, no hydra between peers, no hping3. Literacy is the map, then YOUR two ports.
Command guide
Microsegmentation is east-west policy with smaller rooms
═══ INSTALL ═══
Linux (Debian/Ubuntu):
Command — copy this
sudo apt install nmap sudo apt install python3
macOS:
Command — copy this
brew install nmap brew install python3
Windows:
Command — copy this
choco install nmap # or download https://nmap.org/download.html
Download https://python.org/downloads/
═══ COMMANDS ═══
Command — copy this
grep "east_west" "$HOME/cyberlium-lab/t11-m03-arrows.txt"
python3 - << 'PY'
dests = [("127.0.0.1", 8782), ("127.0.0.1", 8792)]
for ip, port in dests:
if ip != "127.0.0.1":
raise SystemExit("refusing non-loopback dest")
print("ew dests ok", dests)
print("never nmap peers, never 0.0.0.0")
PY4. What you ship: labeled arrows and two loopback dests, not a lateral-movement kit
north_south vs east_west written. THIS host addresses listed. 8782/8792 named as unseen-by-edge cartoons. No ARP spoof, no peer nmap, no 0.0.0.0.
5. What you record before the next lesson
Date. Arrow definitions. DEMO GATE. ip/Get-NetIPAddress. Loopback EW cartoon. File t11-m03-l03-east-west.txt chmod 600. NEVER nmap/ettercap/arpspoof.
6. Wrong vs right: stranger networks vs literacy on systems you own
Worked failure — same network word, opposite target. Right never needs a café or campus LAN.
Wrong
arpspoof to watch coworkers. nmap -sS “for lateral movement class.” Treat the edge firewall as proof that inside is safe.
Right
Write the arrows. Curl loopback dests if they exist. Next: Lab — Two Loopback Zones.
Mission: name sideways vs edge-crossing on dests YOU own
1) / STOP if router. 2) List THIS host IPv4. 3) Write north-south vs east-west and the 8782/8792 cartoon. Do not scan peers. Do not tap a LAN.
Stuck? Ask Cyberlium AI Mentor
Ask Mentor why an edge allowlist misses process-to-process on the same host — not how to span a switch.
Knowledge Check
APPLY: Phish succeeds on one laptop; the attacker then talks to a file server on the same VLAN. That second hop is:
Multiple choice
Knowledge Check
APPLY: True or False: curling from the same PC is a safe cartoon of east-west for this course.
True or False
Knowledge Check
APPLY: curl http://192.168.0.1/ shows Huawei Router Admin during this lesson. You:
Multiple choice