Bitzu

CPSA ยท Network protocols and filtering

Ingress and egress filtering

Why outbound filtering matters, spoofed-source filtering and risks of unrestricted outbound connections.

Key points

  • Ingress filtering: checks traffic entering a network, drops packets whose source could not legitimately come from that side (spoofed sources, BCP 38).
  • Egress filtering: controls traffic leaving your network; allow only needed outbound services and your own source addresses.
  • Unrestricted outbound: malware calls home, shells connect out, data leaves, hosts can be used for spoofed attacks.

Source: https://www.rfc-editor.org/rfc/rfc3704

Practice questions

Single choice

Which traffic does egress filtering control?

  1. Traffic leaving the protected network
  2. Traffic arriving from the internet only
  3. Traffic between two hosts on one switch
  4. Traffic stored in the backup system
Show answer

Answer: A. Traffic leaving the protected network

Egress filtering applies to traffic leaving your network toward outside. Inbound controls are ingress rules; traffic between internal VLANs is handled by internal segmentation rules.

Select all that apply

Which statements about source-address filtering are correct?

  1. Outbound packets with a source outside your ranges should be dropped
  2. It limits your hosts being used for spoofed floods against others
  3. Inbound packets claiming an internal source should be dropped at the edge
  4. It only works on stateful firewalls, never on simple routers
  5. It is meant to hide the tester from intrusion detection
Show answer

Answer: A. Outbound packets with a source outside your ranges should be dropped, B. It limits your hosts being used for spoofed floods against others, C. Inbound packets claiming an internal source should be dropped at the edge

Good practice drops outbound packets whose source is not in your ranges, protects other networks from spoofed floods launched from yours, and drops inbound packets that claim an internal source. Filtering by source address works on stateless and stateful devices alike.

True or false

True or false: outbound filtering is unnecessary if inbound traffic is already tightly filtered.

Show answer

Answer: False

False. Compromised hosts initiate outbound connections themselves (callbacks, reverse shells, exfiltration), which inbound rules do not stop.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More CPSA topics in this module