SNAT "accounting"
Hi!
I seem to have a problem I don't know how to solve.
Intro: it is pretty easy to do accounting of various types by creating an iptables rule without a target.
What I am trying to do is to write rules that match the source IP of a SNAT with multiple sources. Example:
iptables -t nat -A masquerade -s local_subnet -j SNAT --to-source source_ip1 --to-source source_range1
This should, according to docs, "loadbalance" the source IPs and I would like to do accounting for each of them. However, I don't know what rule to write. In the POSTROUTING chain in nat table, the original one is used even after the SNAT rule, as well as in the whole filter chain.
I'm using iptables-cvs from july 30th and kernel 2.4.19-rc3-ac3.
If possible please cc, I'm not on the list.
Bye,
Peter Surda (Shurdeek) <[email protected]>, ICQ 10236103, +436505122023
--
Reboot America.