Question: Lab exercise: 1 . Install iptables on your Kail or Ubuntu system. 2 . Set the default policy to ACCEPT for all three chains including
Lab exercise:
Install iptables on your Kail or Ubuntu system.
Set the default policy to ACCEPT for all three chains including the INPUT, FORWARD, and OUTPUT
chanis. Sample command:
iptables P INPUT DROP
iptables P FORWARD DROP
iptables P INPUT DROP
Add an input policy:
iptables A INPUT I lo j ACCEPT
List the rules with rule names
iptables L linenumber
List the rules with rule numbers
iptables L linenumber
Install ufw firewall on the same Linux system
aptget install ufw
Check the ufw status
ufw status
Hostbased firewall Linux
Enable ufw firewall on your system
ufw enable
Show the information of ufw rules
ufw status verbose
Deny all IPV rules by modify the configuration file
nano etcdefaultufw
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
