Redirecting outgoing traffic from one IP to another using iptables
Issue
- An application on the server is sending traffic to an IP address 1.2.3.4. We need the traffic to instead go to 5.6.7.8.
- Due to system constraints, we cannot change the setting in the application.
Environment
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.