iptables Flashcards

1
Q

What is iptables?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the three predefined chains?

A

Input, output and forward.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an INPUT chain?

A

All packets destined for the host computer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an OUTPUT chain?

A

All packets originating from the host computer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a FORWARD chain?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly