Solved

RedHat ES: PortFlush cron error - iptables: No chain/target/match by that name

Posted on 2004-09-24
7
621 Views
Last Modified: 2013-11-15
I keep getting this in my email box from my server:

/etc/cron.hourly/portflush:

iptables: No chain/target/match by that name


How do I get rid of this error. It gets sent to me on an hourly basis.

Thanks.
0
Comment
Question by:VirtueTech
  • 3
  • 2
  • 2
7 Comments
 
LVL 40

Assisted Solution

by:jlevie
jlevie earned 250 total points
ID: 12143632
I don't think I know where that file would have come from. It doesn't exist on any of my RHEL 3.0 boxes. Does 'rpm -q --whatprovides /etc/cron.hourly/portflush' provide a clue as to where the file came from?

What is in /etc/cron.hourly/portflush?
0
 

Author Comment

by:VirtueTech
ID: 12143764
The following is the shell script in /etc/cron.hourly/portflush:


source /etc/sysconfig/portsentry

# This will flush the PORTSEN rules from your firewall tool (ipchains or
# iptables) every hour if CLEAR_CHAIN is set to "1" in the
# /etc/sysconfig/portsentry file
if [ "$CLEAR_CHAIN" = "1" ]
then
        $IPTOOL -F $PORTSENTRY_CHAIN
        rm -f /var/log/portsentry/*blocked*
fi

exit
0
 

Author Comment

by:VirtueTech
ID: 12144330
NOTE: I changed CLEAR_CHAIN from 1 to 0 to stop the emails.

However I would like to fix the error instead of hiding it. Any more ideas?
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 40

Accepted Solution

by:
jlevie earned 250 total points
ID: 12145105
Sounds to me like you've added portsentry to this RHEL system, but don't have it correctly configured. That package isn't a part of the RHEL distribution.
0
 

Author Comment

by:VirtueTech
ID: 12148846
Did it split points right
0
 

Expert Comment

by:sandeepaher
ID: 12336815
Hello.. There..

Previously, i was getting the error :"Unable to load iptables module (ip_tables), aborting."
while restarting the APF firewall.
Then, on some forum, i found that, a post which asked to try out making a change in the conf.apf.
"change MONOKERN="0" Set it to "1" and then try start APF again."
I did the same, and then, while restarting the APF, i got following error :
 "iptables: No chain/target/match by that name"
please help me, out to solve the error.
Here is the some of the details of my server :
Kernel: Linux <SERVER_HOSTNAME_HERE> 2.4.27-grsec #1 SMP Mon Sep 6 07:48:11 EDT 2004 i686 i686 i386 GNU/Linux
Also, i do not have portsentry on my server.
lastely, earlier, i was not experiencing any APF error.. but, for some days, the server was being handled by another person, who i think, might have upgraded/downgraded the kernel version... could this cause any compatibility issues...

Thank you, in advance..
waiting for reply.


0
 

Expert Comment

by:sandeepaher
ID: 12337168
Hello..
An update :
i have tried loading the iptables_module using the command :
modprobe ip_tables,
but got the error :
"modprobe: Can't locate module ip_tables"

Just wonder, if there is another method of loading the ip_tables module..
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Fine Tune your automatic Updates for Ubuntu / Debian
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now