Redirecting outgoing traffic from one IP to another using iptables

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content