xt_ACCOUNT define many network by table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
all I'm using xt_ACCOUNT for accounting on my linux box.
I have two network 192.168.2.0/24 and 172.16.2.0/24. and i want to
account these 2 network via table http.
So i've made these two rules :
rule 1: iptables -t mangle -A POSTROUTING -m mark --mark 123
-j ACCOUNT --addr 192.168.2.0/24 --tname http
rule 2: iptables -t mangle -A POSTROUTING -m mark --mark 123
-j ACCOUNT --addr 172.16.2.0/24  --tname http

but when I enter the rule2 i got this error message :
[282339.158532] ACCOUNT: Table http found, but IP/netmask mismatch.
IP/netmask found: 192.168.2.0/255.255.255.0
[282339.158670] ACCOUNT: Table insert problem. Aborting

I'm wondering and I'd like to know if there is mean to define a table
for 2 deferent network.
regards.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux