Example of using iptables rules to redirect port 80 to 8181

Document ID : KB000010762
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

Example of using iptables rules to redirect port 80 to 8181

Environment:
CA Performance Management CA Performance Center
Instructions:

The following is an example of redirecting port 80 to 8181 using iptables:


iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8181


Note that you should have a full understanding of the iptables firewall including any
exiting rules you have to ensure compatibility with your environment

Additional Information: