I'm trying to redirect a traffic that goes to a certain port - to another port. I've read how to do it with iptables, but my system is using firewalld. Here what I have for iptables:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 10080
And here is what I think is the equivalent for firewalld:
Is this this the correct way ?