RHEL: Policy based routing does not work when the incoming packets are redirected via iptables NAT rules
Issue
- When incoming TCP segments are directed to another port via iptables "-j REDIRECT" the policy routing that should route the response back to the sender is not used. Instead the default routing table is used.
Environment
- Red Hat Enterprise Linux 7.5
- Policy routing is based on a secondary address of the interface
- incoming packets are addressed to the secondary address
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.