Thanks, that did the trick. I wonder why the rule I specified works
on other hosts without specifying '-t nat'.
--
Brian McNally
On Dec 21, 2006, at 10:52 AM, Jeremy Freeman wrote:
Try putting a -t nat in there.. May solve your issue.
--
Jeremy
Brian McNally wrote:
Hello,
I'm running Red Hat Enterprise Linux 3 with the
2.4.21-27.0.2.ELsmp kernel and iptables 1.2.8. When I try and
insert the following rule:
iptables -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-
ports 8080
I get the following error:
iptables: No chain/target/match by that name
$ lsmod | grep ipt
iptable_nat 22808 0 (autoclean) (unused)
ipt_REJECT 4632 1 (autoclean)
ipt_state 1080 5 (autoclean)
ip_conntrack 29800 2 (autoclean) [iptable_nat ipt_state]
iptable_filter 2412 1 (autoclean)
ip_tables 16544 6 [iptable_nat ipt_REJECT
ipt_state iptable_filter]
Any ideas? I'm wondering if I'm missing a kernel module that
iptables needs, but my understanding was that it should load the
modules it needs on the fly.
Thanks,
--
Brian McNally