Solved

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

Posted on 2004-09-24
7
620 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 40

Accepted Solution

by:
jlevie earned 250 total points
Comment Utility
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
Comment Utility
Did it split points right
0
 

Expert Comment

by:sandeepaher
Comment Utility
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
Comment Utility
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

771 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

11 Experts available now in Live!

Get 1:1 Help Now