== What is a Firewall?== Firewall is a network security system that filters and controls the traffic on a predetermined set of rules. This is an intermediary system between the device and the internet. == How the Firewall of Linux works: == Most of the Linux distro’s ship with default firewall tools that can be used to configure them. We will be using “IPTables” the default tool provided in Linux to establish a firewall. Iptables is used to set up, maintain and inspect the tables of the IPv4 and IPv6 packet filter rules in the Linux Kernel. == Chains :- == Chains are a set of rules defined for a particular task. We have three chains(set of rules) which are used to process the traffic:- 1. INPUT Chains[[BR]] 2. OUTPUT Chains[[BR]] 3. FORWARD Chains[[BR]] == 1. INPUT Chains == Any traffic coming from the internet(network) towards your local machine has to go through the input chains. That means they have to go through all the rules that have been set up in the Input chain. == 2. OUTPUT Chains == Any traffic going from your local machine to the internet needs to go through the output chains. == iptables Lab == In this lab, you will setup a Basic Firewall Rules with iptables.