Solved

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

Posted on 2004-09-24
7
630 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

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!

Question has a verified solution.

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

Suggested Solutions

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
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…
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.

726 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