Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zealfire/0450663f9706c19dd736e949297633e2 to your computer and use it in GitHub Desktop.
Save zealfire/0450663f9706c19dd736e949297633e2 to your computer and use it in GitHub Desktop.
Since firewalls essentially filter data, the answer depends on what kind of filtering you do.
If you filter based on IP address (for example), you can say that your firewall is filtering at layer 3. If you filter specific ports, you can say you're filtering at layer 4. If your firewall inspects specific protocol states or data, you can say it operates at layer 7.
The truth is that most firewalls do all these things in combination. So practically speaking there really is no useful answer to your question.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment