December 2018
Beginner
826 pages
22h 54m
English
Prior to working with ufw in the previous section, we had to add this allow rule to let SSH traffic in, once the firewall was enabled:
vagrant@ubuntu1:~$ sudo ufw allow ssh/tcpRule addedRule added (v6)
The default ufw profile has incoming connections denied, as we can see in the following code:
vagrant@ubuntu1:~$ sudo ufw status verboseStatus: activeLogging: on (low)Default: deny (incoming), allow (outgoing), disabled (routed)New profiles: skip
Because of this, if we wanted to access a web server hosted on our Ubuntu box, we'd need a new rule.
Previously, we used the service name (ssh), so this time we're going to specifically allow a port (80, the default HTTP port) from our VirtualBox network:
vagrant@ubuntu1:~$ sudo ufw allow from ...
Read now
Unlock full access