Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
First we allow port 80:
sudo ufw allow 80/tcp
ufw itself doesn't have commands to redirect, so you need to change its configs, Add the following lines to
the
/etc/ufw/before.rules file, before the filter section
:
:0]
-A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 500
COMMIT
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question