* Iptables - Error: No chain/target/match by that name
@ 2007-04-03 21:18 Rafael Dewes
2007-04-03 21:33 ` Mike Wright
0 siblings, 1 reply; 4+ messages in thread
From: Rafael Dewes @ 2007-04-03 21:18 UTC (permalink / raw)
To: netfilter
Friends, I am using iptables 1.5.7 + linux kernel 2.6.20.2 and the
last patch-o-magic.
But, when I exec this rule
iptables -I INPUT -s 192.168.0.0/24 -p tcp --dport 21 -j ACCEPT
This error occurs
iptables: No chain/target/match by that name
This occurs in the chain ACCEPT, DROP and REJECT, but if I modify the
rule for the following one:
iptables -I INPUT -s 192.168.0.0/24 -p tcp -j ACCEPT
or
iptables -I INPUT -s 192.168.0.0/24 -j ACCEPT
it is accepted, the error only occurs when I specify the the origin or
destination port.
Any Ideas to solve this?
Thanx.
iptables -L output:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
modules loaded:
/sbin/modprobe ipt_REDIRECT
/sbin/modprobe ipt_state
/sbin/modprobe ipt_recent
/sbin/modprobe ipt_MASQUERADE
/sbin/modprobe ipt_LOG
/sbin/modprobe ip_tables
/sbin/modprobe iptable_filter
/sbin/modprobe iptable_nat
/sbin/modprobe ipt_conntrack
/sbin/modprobe ip_conntrack
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Iptables - Error: No chain/target/match by that name
2007-04-03 21:18 Iptables - Error: No chain/target/match by that name Rafael Dewes
@ 2007-04-03 21:33 ` Mike Wright
2007-04-04 0:41 ` dhottinger
0 siblings, 1 reply; 4+ messages in thread
From: Mike Wright @ 2007-04-03 21:33 UTC (permalink / raw)
To: Rafael Dewes; +Cc: netfilter
Rafael Dewes wrote:
> Friends, I am using iptables 1.5.7 + linux kernel 2.6.20.2 and the
> last patch-o-magic.
>
> But, when I exec this rule
> iptables -I INPUT -s 192.168.0.0/24 -p tcp --dport 21 -j ACCEPT
Try this.
iptables -I INPUT -s 192.168.0.0/24 -p tcp -m tcp --dport 21 -j ACCEPT
Many of these types of filters can be found in the man page. Look for
MATCH EXTENSIONS.
hth, :m)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Iptables - Error: No chain/target/match by that name
2007-04-03 21:33 ` Mike Wright
@ 2007-04-04 0:41 ` dhottinger
2007-04-04 1:34 ` Rafael Dewes
0 siblings, 1 reply; 4+ messages in thread
From: dhottinger @ 2007-04-04 0:41 UTC (permalink / raw)
To: netfilter
Quoting Mike Wright <xktnniuymlla@mailinator.com>:
> Rafael Dewes wrote:
>> Friends, I am using iptables 1.5.7 + linux kernel 2.6.20.2 and the
>> last patch-o-magic.
>>
>> But, when I exec this rule
>> iptables -I INPUT -s 192.168.0.0/24 -p tcp --dport 21 -j ACCEPT
>
> Try this.
>
> iptables -I INPUT -s 192.168.0.0/24 -p tcp -m tcp --dport 21 -j ACCEPT
>
> Many of these types of filters can be found in the man page. Look for
> MATCH EXTENSIONS.
>
> hth, :m)
I started getting the same error message a couple of weeks ago. Does
it usually mean one of the rules is not good? Im having a problem
trying to find the bad rule.
ddh
--
Dwayne Hottinger
Network Administrator
Harrisonburg City Public Schools
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Iptables - Error: No chain/target/match by that name
2007-04-04 0:41 ` dhottinger
@ 2007-04-04 1:34 ` Rafael Dewes
0 siblings, 0 replies; 4+ messages in thread
From: Rafael Dewes @ 2007-04-04 1:34 UTC (permalink / raw)
To: netfilter
> > Try this.
> >
> > iptables -I INPUT -s 192.168.0.0/24 -p tcp -m tcp --dport 21 -j ACCEPT
I tried, but error persists.
> I started getting the same error message a couple of weeks ago. Does
> it usually mean one of the rules is not good? Im having a problem
> trying to find the bad rule.
In my case, the firewall dont have any other rule.
-Regards.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-04-04 1:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-03 21:18 Iptables - Error: No chain/target/match by that name Rafael Dewes
2007-04-03 21:33 ` Mike Wright
2007-04-04 0:41 ` dhottinger
2007-04-04 1:34 ` Rafael Dewes
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.