I'm working on a per host traffic monitoring script, using RETURN rules in the FORWARD chain.
The problem is that whenever udhcpc get a new wan lease the FORWARD chain is reloaded, loosing my own rules among with its counters..
Is there any way to avoid this or should i modify my script??
Any suggestions for some new iptables rules to log the in/out to each lan user?
This is the iptables rules i would like to use:
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RETURN tcp -- 192.168.0.21 0.0.0.0/0
RETURN tcp -- 0.0.0.0/0 192.168.0.21