All of lore.kernel.org
 help / color / mirror / Atom feed
* "iptables: No chain/target/match by that name"
@ 2006-12-21 18:48 Brian McNally
  2006-12-21 18:51 ` David Coulson
       [not found] ` <458AD7D0.2010001@jrmy.net>
  0 siblings, 2 replies; 3+ messages in thread
From: Brian McNally @ 2006-12-21 18:48 UTC (permalink / raw)
  To: netfilter

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: "iptables: No chain/target/match by that name"
  2006-12-21 18:48 "iptables: No chain/target/match by that name" Brian McNally
@ 2006-12-21 18:51 ` David Coulson
       [not found] ` <458AD7D0.2010001@jrmy.net>
  1 sibling, 0 replies; 3+ messages in thread
From: David Coulson @ 2006-12-21 18:51 UTC (permalink / raw)
  To: Brian McNally; +Cc: netfilter

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

iptables -t nat -A PREROUTING .....

Default table is 'filter', and PREROUTING isn't in there.

David

-- 
David J. Coulson
email: david@davidcoulson.net
web: http://www.davidcoulson.net/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: "iptables: No chain/target/match by that name"
       [not found] ` <458AD7D0.2010001@jrmy.net>
@ 2006-12-21 19:02   ` Brian McNally
  0 siblings, 0 replies; 3+ messages in thread
From: Brian McNally @ 2006-12-21 19:02 UTC (permalink / raw)
  To: netfilter

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-12-21 19:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-21 18:48 "iptables: No chain/target/match by that name" Brian McNally
2006-12-21 18:51 ` David Coulson
     [not found] ` <458AD7D0.2010001@jrmy.net>
2006-12-21 19:02   ` Brian McNally

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.