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 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.