| | 177 | |
| | 178 | == UFW Lab == |
| | 179 | === Introduction === |
| | 180 | ''' UFW (uncomplicated firewall) ''' is a firewall configuration tool that runs on top of iptables, included by default within Ubuntu distributions. It provides a streamlined interface for configuring common firewall use cases via the command line. |
| | 181 | |
| | 182 | '''Verify UFW Status''' |
| | 183 | |
| | 184 | To check if ufw is enabled, run: |
| | 185 | {{{ |
| | 186 | sudo ufw status |
| | 187 | }}} |
| | 188 | |
| | 189 | ''' Enable UFW ''' |
| | 190 | |
| | 191 | If you got a '''Status: inactive''' message when running ufw status, it means the firewall is not yet enabled on the system. You’ll need to run a command to enable it. |
| | 192 | {{{ |
| | 193 | sudo ufw enable |
| | 194 | }}} |
| | 195 | You’ll see output like this: |
| | 196 | {{{ |
| | 197 | Output |
| | 198 | Firewall is active and enabled on system startup |
| | 199 | }}} |
| | 200 | |
| | 201 | '''Disable UFW''' |
| | 202 | |
| | 203 | If for some reason you need to disable UFW, you can do so with the following command |
| | 204 | {{{ |
| | 205 | sudo ufw disable |
| | 206 | }}} |
| | 207 | Be aware that this command will fully disable the firewall service on your system. |