1 min read

Basic Firewall Setup

sudo ufw app list
sudo ufw allow OpenSSH

Enable the Firewall

sudo ufw enable

Check the Firewall status

sudo ufw status

Configure domain name

Change on nameservers, the DNS settings:

  • ns1.digitalocean.com
  • ns2.digitalocean.com
  • ns3.digitalocean.com

Install Nginx server

sudo apt-get install nginx

Configure Firewall

sudo ufw app list

Enable Nginx HTTP

sudo ufw allow 'Nginx HTTP'

Check again the status

sudo ufw status

Testing Web Server

systemctl status nginx

Setup NGINX Configuration

sudo nano /etc/nginx/sites-available/default

Find the server name

server_name opendevops.dev www.opendevops.dev;

Verify any error by typing:

sudo nginx -t

Reload Server

sudo systemctl reload nginx

Access the HTTP Firewall

sudo ufw allow 'Nginx Full'
Orestis Pantazos

Orestis Pantazos

DevOps Engineer