Solved

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

Posted on 2004-09-24
7
622 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

831 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