UFW: How to Allow Ports for HTTP, HTTPS, HTTP3 QUIC

40 sec read

Illustration showing UFW allowing ports for HTTP, HTTPS, and HTTP3 QUIC

What’s UFW

UFW (Uncomplicated Firewall) is a user-friendly frontend for managing iptables firewall rules on Ubuntu and other Linux distributions. It allows users to easily configure firewall settings to protect their systems from unauthorized access and attacks.

How to Allow Web Services Ports in UFW

To allow ports for HTTP, HTTPS, and HTTP3 QUIC in UFW, you can follow these steps:

  • Open a terminal window on your server.
  • Check the status of UFW by running the command:
sudo ufw status
  • If UFW is not enabled, you can enable it by running:
sudo ufw enable
  • Allow port 80 for HTTP traffic by running:
sudo ufw allow 80/tcp comment 'Allow HTTP'

  • Allow port 443 for HTTPS traffic by running:
sudo ufw allow 443/tcp comment 'Allow HTTP/2'
  • Allow port 443 for HTTP3 QUIC traffic by running:
sudo ufw allow 443/udp comment 'Allow HTTP/3 QUIC'
  • Verify that the rules have been added by running:
sudo ufw status

By allowing these ports in UFW, you can ensure that your website can securely send and receive HTTP, HTTPS, and HTTP3 QUIC traffic, improving both security and performance.

Leave a Reply

Your email address will not be published. Required fields are marked *