Ad Code

Responsive Advertisement

Recent Posts

Step-by-Step Guide: Installing and Configuring a Firewall on Ubuntu

Requirements

1.A server - VPSDime

2.YouTube Playlist - Firewall Installation Tutorial

3.WinSCP - File transfer client for Windows

4.PuTTY - SSH and Telnet Client

Required Ports

- HTTP: 80

- HTTPS: 443

- SSH: 22

- SMTP: 25, 465, 587

Steps to Install and Configure UFW (Uncomplicated Firewall)

1.Update the OS:

2.Install the UFW package:

3.Check the status of UFW:

4.Add Firewall Rules:

- Allow SSH (port 22 by default):

- Allow HTTP (port 80 by default):

- Allow HTTPS (port 443 by default):

- Allow SMTP (port 25 by default):

- Allow SMTP SSL protocol (port 465):

- Allow SMTP TLS protocol (port 587):

5.Deleting a Rule:

- Check the current rules with indices:

- Delete a rule by its index number (example: to delete rule 5):

Additional Resources

Post a Comment

4 Comments

  1. Damn, it was really Great info, with deep info, Informative

    ReplyDelete
  2. WSL or Virtual machine
    which one would you choose?

    ReplyDelete
    Replies
    1. in this context it'll be VM only. As we'll work on server.

      Delete

Comments

Ad Code

Responsive Advertisement