I'm trying to redirect all HTTP/HTTPS trafic from one server to another (via IP).
I do use the
ufw firewall. How can I configure it do to so?
It's possible to configure ufw to make port forward to external IP
(You will need admin privileges for this, so login as root or use sudo accordingly)
One easy solution is to use
will redirect all traffic in the interface
After tested you can just save your current iptables rules with
and restore them with
Knowing this, the options to restore the rules at boot time are multiple. The most simple one I can think of is to edit your
I do not think