Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After running following command:

iptables -t nat -I POSTROUTING -m state --state NEW -p tcp --dport 25 -o eth0 -m statistic --mode nth --every 5 -j SNAT --to-source

I get following error:

iptables: No chain/target/match by that name.

I am running this command to change ips for outgoing smtp connections for postfix.This "" is a public ip.I am doing this setup for testing purpose so dont blame me for spamming. My system is centos5 32 bit using mail server with postfix as an MTA. You can look at an article from which i learnt to do this Please help me out of this.

share|improve this question
up vote 2 down vote accepted

It sounds like the xt_statistic module isn't enabled/loaded into the running kernel. Checking with:

$ grep -i statistic /boot/config-$(uname -r)

If the result is # CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set, then recompile your kernel to enable it:

[*] Networking support  --->
  Networking options  --->
    [*] Network packet filtering framework (Netfilter)  --->
      Core Netfilter Configuration  --->
        <*>   "statistic" match support

If you get CONFIG_NETFILTER_XT_MATCH_STATISTIC=m, load it into the kernel by running:

# modprobe xt_statistic
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.