Lab 3
Lab 3
Lab 3
• Recognize the need for having a security on host side by controlling incoming /
outgoing traffic using the acquired skills and knowledge.
Theory:
IPtables are the tables provided by the Linux kernel firewall (implemented as different
Netfilter modules) and the chains and rules it stores. Different kernel modules and programs
are currently used for different protocols; iptables applies to IPv4, ip6tables to IPv6, arptables
to ARP, and ebtables to Ethernet frames.
iptables requires elevated privileges to operate and must be executed by user root, otherwise
it fails to function. On most Linux systems, iptables is installed as /usr/sbin/iptables and
documented in its man pages which can be opened using man iptables when installed. It may
also be found in /sbin/iptables, but since iptables is more like a service rather than an
"essential binary", the preferred location remains /usr/sbin.
# sudo iptables -L -v –n
# sudo iptables -L -v –n
Conclusion:
There are many other firewall utilities and some that may be easier, but iptables is a good
learning tool, if only because it exposes some of the underlying netfilter structure and because
it is present in so many systems.
Questions:
Submit the screenshots of your lab (10 marks) and the answers to the below questions (5 marks)
in a document file (.doc/.pdf)