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
4 Comments
Damn, it was really Great info, with deep info, Informative
ReplyDeletethanks
DeleteWSL or Virtual machine
ReplyDeletewhich one would you choose?
in this context it'll be VM only. As we'll work on server.
Delete