iptables Flashcards
What is iptables?
Iptables is a firewall tool built into Linux (CentOS). Iptables is the userspace module where the user can built firewall rules into predefined tables.
Iptables Iptables places rules into predefined chains (INPUT, OUTPUT and FORWARD) that are checked against any network traffic (IP packets) relevant to those chains and a decision is made about what to do with each packet based upon the outcome of those rules, i.e. accepting or dropping the packet. These actions are referred to as targets, of which the two most common predefined targets are DROP to drop a packet or ACCEPT to accept a packet.
What are the three predefined chains?
Input, output and forward.
What is an INPUT chain?
All packets destined for the host computer.
What is an OUTPUT chain?
All packets originating from the host computer.
What is a FORWARD chain?
All packets neither destined for nor originating from the host computer, but passing through (routed by) the host computer. This chain is used if you are using your computer as a router.