(Uncomplicated Firewall). The default Ubuntu Server firewall, however, is iptables,
which you learned about in this chapter.
In this project, you will learn some basic commands in iptables, configure a couple of
rules, and save the rules in a file. Complete the following steps:
1. Start your Ubuntu Server VM and log in. Refer to your notes in Wikidot and your
account information in LastPass if you need a refresher on where this VM is
2. Let’s begin by looking to see what rules are currently in force. Enter the
command sudo iptables -L and then enter your password. The three
chains, or lists of rules, are currently empty. What three chains are listed?
3. Firewall traffic can be set to either accept traffic that doesn’t meet a deny rule,
which is called implicit allow, or reject traffic that doesn’t meet an accept rule,
which is called implicit deny. No restrictions are configured by default, so we
need to add some. Let’s first allow any current connections to continue. Enter the
following command, as shown in Figure 10-35:
[[Insert Figure 10-35 here]]
4. Enter the sudo iptables -L command again to make sure the new rule is
listed. Which chain(s) includes the new rule?