1,234
edits
Changes
→Automatic firewall updates
= Automatic firewall updates =
# Run '''iptables -L''' and redirect the output to a text file, so you can refer to it later.
# Shutdown your VMs
# Now you have two text files representing the before and after states of your firewall. You can compare the files visually but it's often easier to use a diff tool:
#* The command-line tool '''diff''' takes some time to get used to but you'll get used to it eventually, it's used a lot in the industry. Run '''diff -u before.txt after.txt''' and figure out how to read the output.
#* You can also install a graphical tool that makes it much easier to see differences:kompare before.txt after.txt# You can use these tools to compare any two text files, they often come in handy. For the purpose of this lab notice that some iptables rules are added automatically by the libvirtd service.
== IPTABLES ==