Error: (iptables binary location) does not exist!, at line 22

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Post Reply
mjlunn
Junior Member
Posts: 5
Joined: 28 Jan 2007, 11:02
Location: Winter Wonderland, USA
Contact:

Error: (iptables binary location) does not exist!, at line 22

Post by mjlunn »

After upgrading to 2.63 I get this error, and an email every 5 minutes.
Before upgrading everything was working.


Flushing chain `INPUT'
Flushing chain `FORWARD'
Flushing chain `OUTPUT'
Error: (iptables binary location) does not exist!, at line 22
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Post by chirpy »

Is this on a cPanel server, or a generic Linux server?
What OS and version are you running on?
What is the current setting for IPTABLES in the csf.conf file?
mjlunn
Junior Member
Posts: 5
Joined: 28 Jan 2007, 11:02
Location: Winter Wonderland, USA
Contact:

Iptables Config Answer

Post by mjlunn »

WHM 10.8.0 cPanel 10.9.0-R50
Fedora i686 - WHM X v3.1.0

I can not locate a iptables setting in /etc/csf/csf.conf

grep / /etc/csf/csf.conf (current one)


LF_DSHIELD_URL = "http://feeds.dshield.org/block.txt"
LF_SPAMHAUS_URL = "http://www.spamhaus.org/drop/drop.lasso"


grep / /etc/csf/csf.conf (old)

LF_DSHIELD_URL = "http://feeds.dshield.org/block.txt"
LF_SPAMHAUS_URL = "http://www.spamhaus.org/drop/drop.lasso"
IPTABLES = "/sbin/iptables"
MODPROBE = "/sbin/modprobe"
IFCONFIG = "/sbin/ifconfig"
SENDMAIL = "/usr/sbin/sendmail"
NETSTAT = "/bin/netstat"
PS = "/bin/ps"

I added the missing items to the new csf.conf file and it now appears to work thanks.
It explains why I could not locate the settings.
mjlunn
Junior Member
Posts: 5
Joined: 28 Jan 2007, 11:02
Location: Winter Wonderland, USA
Contact:

Next Problem is with lfd

Post by mjlunn »

There is nothing in regex.pm.

root@mall [/]# ./etc/rc.d/init.d/lfd start Starting lfd:/etc/csf/regex.pm did not return a true value at /usr/sbin/lfd line 28. [ OK ] root@mall [/]# cat /etc/csf/regex.pm


Looks like a bad upgrade - cut off in middle or something.

Anyway to fix?
mjlunn
Junior Member
Posts: 5
Joined: 28 Jan 2007, 11:02
Location: Winter Wonderland, USA
Contact:

Redownloaded tar file

Post by mjlunn »

Untar and copy regex.pm - now it is running.
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Post by chirpy »

If you've had an aborted upgrade it would be best to simply rerun the installation which would replace and missing files.
edizon
Junior Member
Posts: 2
Joined: 03 Feb 2007, 20:41

Post by edizon »

Error: (iptables binary location) does not exist!, at line 22


I am getting the same message. Has any of those worked for you?

BTW Thanks again jonathan for making another great product. You are the best man.
mjlunn
Junior Member
Posts: 5
Joined: 28 Jan 2007, 11:02
Location: Winter Wonderland, USA
Contact:

Yes - it worked

Post by mjlunn »

I did it one problem at a time and it worked. But I then reinstalled just to make sure that I still was not missing something.

Works now.
edizon
Junior Member
Posts: 2
Joined: 03 Feb 2007, 20:41

Post by edizon »

Ok I got it working. Thank for the help!
Post Reply