A firewall is an important line of defense for your server. Learn about UFW and how to configure it to grant access for your services.
- [Instructor] A firewall is software that protects the…system from unwanted network connections.…Here at Ubuntu, we can enable the firewall and…manage it easily with UFW,…which stands for uncomplicated firewall.…UFW manages rules for the…iptables packet filtering software.…And makes it somewhat easier to manage them…than if you had to deal with them directly.…By default UFW blocks any incoming traffic that…isn't associated with outgoing requests.…So in order to not cut off our own access here,…we'll need to add a rule allowing it.…
SSH uses port 22 and the tcp protocol.…So to create a rule,…I'll write UFW allow 22/tcp.…That lets traffic destined for port 22…through the firewall.…So it can be used by the SSH server.…When you start up a service that uses a port on your server,…you'll need to open up that port on the firewall if you…want other systems to be able to connect to it.…With our one rule in place let's start up the firewall.…
I'll write uwf enable to start it up.…And I can take a look at the rules with ufw status.…
Author
Released
8/29/2018- Installing Ubuntu Server
- Configuring remote access with SSH
- Configuring the firewall
- Configuring networking with Netplan
- Managing users
- Configuring for scale
- Securing an HTTP server with TLS
- Hosting an application
- Setting up a forwarding DNS server
- Sending email with Postfix
Skill Level Beginner
Duration
Views
Related Courses
-
Introduction
-
Lab setup1m 26s
-
1. Ubuntu Server
-
Ubuntu Server1m 21s
-
Installing Ubuntu Server5m 27s
-
-
2. Securing and Monitoring Your Server
-
Configuring the firewall6m 41s
-
Exploring the logs2m 54s
-
Monitoring the server3m 9s
-
3. Configuring and Managing the Server
-
Service management3m 8s
-
Managing users4m 28s
-
Configuring for scale3m 24s
-
4. Exploring Common Services
-
Hosting an application1m 21s
-
LXD containers4m 50s
-
Working with snaps1m 59s
-
Conclusion
-
Juju, MAAS, and Landscape2m 23s
-
Next steps20s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Configuring the firewall