OpenVZ Forum


Home » General » Support » *SOLVED* iptables: No chain/target/match by that name
icon8.gif  *SOLVED* iptables: No chain/target/match by that name [message #8384] Sat, 18 November 2006 12:45 Go to previous message
fransonline is currently offline  fransonline
Messages: 22
Registered: May 2006
Junior Member
I want to install a firewall in the VPS such as APF, but get "No chain/target/match by that name" errors

When I do a simple test in the VPS:
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
then this error occurs:
iptables: No chain/target/match by that name

I've seen more topics in this forum, I tried all the tips but without any luck.
I'm get rather desperate because I can't discover what is wrong.

Here the information on the HN.
It's a Linux Fedora FC 5 distro with a 2.6.16-026test015.2 kernel.

0. Status iptables
==================
[root@localhost ~]# service iptables status
Table: nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Table: mangle
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

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

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

Table: filter
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

1. lsmod before the VPS starts
==============================
[root@localhost ~]# lsmod | grep ipt
iptable_nat 7940 0
ip_nat 13780 3 vzrst,ip_nat_ftp,iptable_nat
iptable_mangle 3680 0
iptable_filter 3200 0
ip_conntrack 47688 6 vzrst,vzcpt,ip_nat_ftp,iptable_nat,ip_nat,xt_state
ip_tables 12184 3 iptable_nat,iptable_mangle,iptable_filter
ipt_LOG 6176 0
ipt_TOS 2016 0
ipt_ttl 1568 0
ipt_TCPMSS 3648 0
ipt_multiport 2336 0
ipt_tos 1344 0
ipt_REJECT 4288 0
x_tables 13056 13 iptable_nat,xt_state,ip_tables,ipt_LOG,ipt_TOS,xt_length,ipt _ttl,xt_tcpmss,ipt_TCPMSS,ipt_multiport,xt_limit,ipt_tos,ipt _REJECT

2. cat /etc/sysconfig/vz
========================
[root@localhost ~]# cat /etc/sysconfig/vz
## Global parameters
VIRTUOZZO=yes
LOCKDIR=/vz/lock
DUMPDIR=/vz/dump
VE0CPUUNITS=1000

## Logging parameters
LOGGING=yes
LOGFILE=/var/log/vzctl.log
LOG_LEVEL=0

## Disk quota parameters
DISK_QUOTA=yes
VZFASTBOOT=no

# The name of the device whose ip address will be used as source ip for VE.
# By default automatically assigned.
#VE_ROUTE_SRC_DEV="eth0"

## Template parameters
TEMPLATE=/vz/template

## Defaults for VEs
VE_ROOT=/vz/root/$VEID
VE_PRIVATE=/vz/private/$VEID
CONFIGFILE="vps.basic"
DEF_OSTEMPLATE="fedora-core-4"

## Load vzwdog module
VZWDOG="no"

IPTABLES="ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport
iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp"

3. cat /etc/sysconfig/vz-scripts/101.conf
=========================================
[root@localhost ~]# cat /etc/sysconfig/vz-scripts/101.conf
# Copyright (C) 2000-2006 SWsoft. All rights reserved.

ONBOOT="yes"

# UBC parameters (in form of barrier:limit)
# Primary parameters
AVNUMPROC="40:40"
NUMPROC="65:65"
NUMTCPSOCK="80:80"
NUMOTHERSOCK="80:80"
VMGUARPAGES="6144:2147483647"
# Secondary parameters
KMEMSIZE="2752512:2936012"
TCPSNDBUF="319488:524288"
TCPRCVBUF="319488:524288"
OTHERSOCKBUF="132096:336896"
DGRAMRCVBUF="132096:132096"
OOMGUARPAGES="6144:2147483647"
# Auxiliary parameters
LOCKEDPAGES="32:32"
SHMPAGES="8192:8192"
PRIVVMPAGES="49152:53575"
NUMFILE="2048:2048"
NUMFLOCK="100:110"
NUMPTY="16:16"
NUMSIGINFO="256:256"
DCACHESIZE="1048576:1097728"

PHYSPAGES="0:2147483647"
NUMIPTENT="4096:4096"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="1048576:1153434"
DISKINODES="200000:220000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="1000"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="centos-4-i386-default"
ORIGIN_SAMPLE="vps.basic"
NAMESERVER="192.168.1.1"
IP_ADDRESS="192.168.1.80"

4. modprobe
===========
I did a modprobe for all modules, without any error.

I look forward to some hints to solve my problem.

Thanks in advance.

Frans

[Updated on: Mon, 20 November 2006 11:51] by Moderator

Report message to a moderator

 
Read Message icon8.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problems with swap
Next Topic: bnx2 module missing
Goto Forum:
  


Current Time: Thu Oct 17 01:28:24 GMT 2024

Total time taken to generate the page: 0.05342 seconds