| | 33 | === 1. ACCEPT === |
| | 34 | When traffic passes the rules in its specified chain, then the iptable accepts the traffic. |
| | 35 | That means it opens up the gate and allows the person to go inside the kingdom of Thanos. |
| | 36 | |
| | 37 | === 2. DROP === |
| | 38 | When the traffic is unable to pass the rules in its specified chain, the iptable blocks that traffic. |
| | 39 | That means the firewall is closed. |
| | 40 | |
| | 41 | === 3. REJECT === |
| | 42 | This type of action is similar to the drop action but it sends a message to the sender of the traffic stating that the data transfer has failed. |
| | 43 | As a general rule, use REJECT when you want the other end to know the port is unreachable’ use DROP for connections to hosts you don’t want people to see. |
| | 44 | |
| | 45 | '''NOTE:- |
| | 46 | You need to keep in mind a simple rule here:- |
| | 47 | The Rules you set in the iptables are checked from the topmost rules to the bottom. Whenever a packet passes any of the top rules, it is allowed to pass the firewall. The lower rules are not checked. So be careful while setting up rules.''' |
| | 48 | |