We can define different rules using Iptables. These rules are then followed by the kernel when checking the incoming and outgoing traffic packets:
- The first thing we shall do on our system is check which version of iptables is installed by using the following command:
- Now, we will check whether any rule already exists on the system for Iptables by using the -L option:
- The preceding output can also be seen in a format that tells us about the commands that are necessary for each policy. To do this, use the -S option, as follows: ...