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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.