< All Cheat Sheets

Cheat Sheet: iptables

The iptables command is a user-space utility program that allows a system administrator to configure the IP packet filter rules of the Linux kernel firewall, used for packet filtering, NAT, and packet mangling.

iptables cheat sheet


Use BashSenpai to generate a command from a text prompt:

sudo iptables -A INPUT -s -j DROP


Enter your email address and we'll happily send you a download link. The cheat sheet is available in PDF and PNG formats, light and dark.