RHEL: How do I log packets that have been forwarded to another IP address via NAT with iptables

Solution In Progress - Updated -

Issue

  • We have a RHEL7.3 server and we have a requirement from our customer to forward TCP packets going to an IP to another destination IP and at the same time log it.

Environment

  • Red Hat Enterprise Linux
    • iptables

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