For this lab, you'll use the same Ubuntu virtual machine that you used in the previous iptables labs. You'll leave the IPv4 firewall setup that's already there as is and create a new firewall for IPv6. Let's get started:
- View your IPv6 rules, or lack thereof, by using the following command:
sudo ip6tables -L
- Create the IPv6 firewall. Due to formatting constraints, I can't list the entire code block of commands here. You can find the respective commands in this chapter's directory, in the code file that you can download from the Packt Publishing website.
- View the new ruleset by using the following command:
sudo ip6tables -L
- Next, set up the mangle table rules for blocking invalid packets:
sudo ip6tables -t ...