You are not logged in.
Pages: 1
Why can't I append this rule ?And what's the problem..Here is the output http://pastebin.com/m47eecc65 Thanks in advance!
Last edited by Insane-Boy (2008-07-23 17:55:54)
Offline
From http://www.faqs.org/docs/iptables/commonproblems.html:
Another error that you may get when running iptables is the following error.
iptables: No chain/target/match by that name
This error tells us that there is no such chain, target or match. This could depend upon a huge set of factors, the most common being that you have misspelled the chain, target or match in question. Also, this could be generated in case you are trying to use a match that is not available, either because you did not load the proper module, it was not compiled into kernel or iptables failed to automatically load the module. In general, you should look for all of the above solutions but also look for misspelled targets of some sort or another in your rule.
So, do not forget to do the following:
/etc/rc.d/iptables start
And use lsmod to check if the relevant modules are loaded for the iptables flags and chains, e.g.:
ipt_REJECT
ipt_LOG
ipt_MASQUERADE
iptable_nat
iptable_filter
ip_tables
Offline
All modules are loaded but i still cant append the rule.
Offline
is the only rule or is a part from a script?
Give what you have. To someone, it may be better than you dare to think.
Offline
What chains do you have?
Run iptables -L
Offline
It's an separate rule, not a script.I've got no chains http://pastebin.com/m5a962943
Offline
[root@iNsAnE devil]# iptables -A INPUT -p tcp --destination-port 80 -j ACCEPT
iptables: No chain/target/match by that name
Try:
iptables -t filter -A INPUT -p tcp --dport 80 -j ACCEPT
What you should have:
iptables -t filter -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport 80 -m state --state NEW -j ACCEPT
... other incoming rules allowing only syn packets.
Offline
Doesnt work.. :[ http://pastebin.com/m26e427fa
Offline
@_AA_
those commands are identical.
iptables -A INPUT == iptables -t filter -A INPUT
from iptables manual
filter:
This is the default table (if no -t option is passed). It
contains the built-in chains INPUT (for packets destined to
local sockets), FORWARD (for packets being routed through
the box), and OUTPUT (for locally-generated packets).
for me is working.
[root@laptop wonder]# lsmod | grep ip
iptable_filter 2944 1
ip_tables 11536 1 iptable_filter
x_tables 13188 2 xt_tcpudp,ip_tables
maybe this will help
Last edited by wonder (2008-07-26 19:41:44)
Give what you have. To someone, it may be better than you dare to think.
Offline
@wonder you solved my problem .. there was a missing module called xt_tcpudp Thanks
Offline
Pages: 1