Use a file as a Capture filter
Is it possible to use a file containing filters as a filter itself? Instead of having to write each filter -f ...... -f .......
have a file that contains all the filters I wish to use to capture? What should the format of this file be? How do I create said file?
"Filter1" udp
"Filter2" ip6
When using this file using CMD what would the expression be?
dumpcap -i 5 -???????? -w capture.pcapng
Comments
The dumpcap man page says
predef
should work but doesn't seem to be implemented:8091: Allow/Create an option to use "capture filter" labels defined in wireshark GUI from CLI