iptables quick note

Write at 2017 Mar 10

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/

Cheatset

Want Email Forwarding For Your Domain? Check out Mailwip.