4 You must use a netfilter configuration that use the TRAFMETUX target to
5 take into account all the packets that hits these rules. Here is how we
6 can create three monitors, one for incoming packets on wlan0, another one
7 for the outgoing packets from eth0, and another one for the total (in+out):
11 # ---- reload the trafmetux module
14 # ---- create three monitors
15 iptables -t mangle -A INPUT -i eth0 -p tcp -j TRAFMETUX --monitor input
16 iptables -t mangle -A OUTPUT -o eth0 -p tcp -j TRAFMETUX --monitor output
17 iptables -t mangle -A INPUT -i eth0 -p tcp -j TRAFMETUX --monitor total
18 iptables -t mangle -A OUTPUT -o eth0 -p tcp -j TRAFMETUX --monitor total