Problem with statistic module nth mode

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

 



Hi, I have a set of rules as follows

iptables -t nat -N SNAT1
iptables -t nat -A SNAT1 -m statistic --mode nth --every 5 --packet 0 -j SNAT --to-source 87.194.x.1 iptables -t nat -A SNAT1 -m statistic --mode nth --every 5 --packet 1 -j SNAT --to-source 87.194.x.2 iptables -t nat -A SNAT1 -m statistic --mode nth --every 5 --packet 2 -j SNAT --to-source 87.194.x.3 iptables -t nat -A SNAT1 -m statistic --mode nth --every 5 --packet 3 -j SNAT --to-source 87.194.x.4 iptables -t nat -A SNAT1 -m statistic --mode nth --every 5 --packet 4 -j SNAT --to-source 87.194.x.5

iptables -t nat -A POSTROUTING -o eth1 -j SNAT1
...
iptables -t nat -A POSTROUTING -o eth1 -j LOG --log-prefix "Failed to nat"


The last rule is occasionally triggered, is this a bug? I could put a catch all there, but the 5 "nth" rules should cover all possible cases or have I missed something obvious??


I'm running ubuntu hardy, kernel 2.6.24-24 and iptables 3.8

Thanks

John
--
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