To configure the Uncomplicated Firewall (ufw) to forward incoming traffic on ports 80 (HTTP) and 443 (HTTPS) to an internal server hosted on the local area network (LAN), you will need to perform the following steps:
sudo ufw enable sudo ufw allow 80/tcp sudo ufw allow 443/tcp
192.168.1.100
and it is listening on port 8080, you can add the following rule:sudo ufw route allow in on eth0 to 192.168.1.100 port 8080
Replace eth0
with the name of your external network interface and 192.168.1.100
with the internal server's IP address.
sudo ufw status
This should show you the rules you have added.