How to configure ufw to forward port 80/443 to internal server hosted on LAN

Originally published at:

I am using UFW to protect my network. How do I forward TCP HTTP port # 80 and 443 to an internal server hosted at and using UFW on Ubuntu Linux server?

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki