While ingress filtering controls incoming traffic to protect a network from external threats, egress filtering manages outgoing traffic to prevent data leaks and internal-originating attacks.