From: Sorin Panca <sorin.panca@gmail.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: iptables: No chain/target/match by that name (detailed)
Date: Fri, 13 Jan 2006 01:31:59 +0200 [thread overview]
Message-ID: <43C6E6EF.5070001@gmail.com> (raw)
In-Reply-To: <55893.193.173.147.3.1136991938.squirrel@webmail.sterenborg.info>
Hi Amresh Kumar!
The PREROUTING and POSTROUTING chains exist only in nat or mangle
tables. So add iptables -t nat or iptables -t mangle
> iptables rule : iptables -A PREROUTING -i eth0 -p tcp --dport 80 -m state
> --state NEW -m nth --counter 0 --every 4 --packet 0 -j DNAT
> --to-destination 192.168.0.5:80
>
> iptables -A PREROUTING -i eth0 -p tcp --dport 80 -m state --state NEW -m
> random --average 25 -j DNAT --to-destination 192.168.0.5:80
>
>
The above rules would be for the nat table.
HTH
Sorin
next prev parent reply other threads:[~2006-01-12 23:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-11 14:42 iptables: No chain/target/match by that name (detailed) Randy Grimshaw
2006-01-11 15:05 ` Rob Sterenborg
2006-01-12 23:31 ` Sorin Panca [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-01-09 7:21 iptables: No chain/target/match by that name Amresh Kumar
2006-01-11 10:21 ` iptables: No chain/target/match by that name (detailed) Amresh Kumar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43C6E6EF.5070001@gmail.com \
--to=sorin.panca@gmail.com \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox