Whenever I want to use iptables
I have to search for its syntax. This
serves at a note for myself on what I have used frequently.
Basic
- -i: Use to filter by interface
- port: can use together with not such as
port not 22
- host: filter by host
https://www.cyberciti.biz/faq/tcpdump-capture-record-protocols-port/