wiki/HowtoOpenBSD/PacketFilter.md
2017-06-20 15:55:40 -04:00

72 lines
828 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
categories: openbsd network firewall
title: HowToOpenBSD/PacketFilter
---
## Tips & Astuces
Vérifier la fichier de config :
~~~
# pfctl -nf /etc/pf.conf
~~~
Recharger la configuration :
~~~
# pfctl -f /etc/pf.conf
~~~
Voir la QoS en temps réel :
~~~
# systat queue
# pfctl -s queue -vv
~~~
Voir les logs :
~~~
# tcpdump -n -e -ttt -r /var/log/pflog
~~~
Voir les logs en temps réel :
~~~
# tcpdump -n -e -ttt -i pflog0
~~~
Liste des états :
~~~
# pfctl -s states | less
~~~
Flush des états :
~~~
# pfctl -F states
~~~
Toutes les infos sur PF :
~~~
# pfctl -sa | less
~~~
Gestion des tables :
~~~
# pfctl -t <table> -T flush/kill/add/delete
~~~
## FAQ
### pfctl: warning: namespace collision with \<table\> global table.
Il faut a priori effacer la table avec
~~~
# pfctl -t <table> -T kill
~~~