I tried 2.4 and 2.6 with DNAT to 127.0.0.1. The packets were sent on the loopback device as expected. Please send some more information about your specific setup.
Best regards, Patrick
Evan Harris wrote:
Ok, I've upgraded to kernel 2.4.22, and the same behaviour is being exhibited.
To recap the problem:
Packets being nat'd on the OUTPUT chain of a machine are still being sent on the same interface they would have without the nat, and ignoring the route that aims them to the right iface for that dest addr.
Evan