Opening on a humorous note: To quote a local Widiot (tm
) "Why would you want to do thaaat?" This in an MCSE class discussing *nix ability to accept multiple simultaneous log-ins.
Well, why would
you want to do that? -- Oskar Andreasson in Iptables Tutorial 1.1.19
says don't do that: (3.2. mangle table
3.2. mangle table
This table should as we've already noted mainly be used for mangling packets. In other words, you may freely use the mangle matches etc that could be used to change TOS (Type Of Service) fields and so on.
You are strongly advised not to use this table for any filtering; nor will any DNAT, SNAT or Masquerading work in this table.
Targets that are only valid in the mangle table:
If you have come up with a good reason the break this "rule", I would be very interested to see it.
If Oskar were asked "Is there any side effects filtering packets in prerouting in the mangle table.", his short answer might be "Yes, all bad."
Hope this helps, please post your results.