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.…
- 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
Lab setup1m 26s
1. Ubuntu Server
2. Securing and Monitoring Your Server
3. Configuring and Managing the Server
4. Exploring Common Services
- 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.Cancel
Take 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.