Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to configure proxy server on RHEL Server 6.5 using Squid and iptables. Below is the command I executed and the error message it displayed:

vzlptest01 root [root] > iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables: No chain/target/match by that name.

Some more details:

vzlptest01 root [root] > cat /proc/net/ip_tables_matches
limit
state
length
ttl
tcpmss
multiport
multiport
tos
tos
dscp
icmp
udplite
udp
tcp

vzlptest01 root [root] > cat /proc/net/ip_tables_targets
DNAT
SNAT
LOG
TOS
TOS
DSCP
TCPMSS
REJECT
ERROR

Edit:

vzlptest01 root [root] > iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT

How to deal with this issue?

share|improve this question
    
That command worked for me on my CentOS VM, if you trying to use iptables and squid together, shouldn't you specify nat table instead of the default filter? –  Ask and Learn Jun 30 at 6:57
    
That too won't doesn't work. I am running this command on a Parallels Virtuozzo Container. –  Mandar Shinde Jun 30 at 8:13
    
I don't know if parallels uses a custom kernel, but on a stock CentOS kernel you need to load the kernel module nf_conntrack to have the -m state target available. check with lsmod. Alternatively your primary network interface may not be called eth0 but could be something like vnet0 –  HBruijn Jun 30 at 8:27
    
Any other iptables commands function as expected? –  Sami Laine Jun 30 at 12:45
    
post the output of iptables -S –  Creek Jun 30 at 16:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.