Page 1 of 1

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

Posted: 28 Jan 2007, 11:12
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

Posted: 29 Jan 2007, 09:53
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?

Iptables Config Answer

Posted: 29 Jan 2007, 10:58
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.

Next Problem is with lfd

Posted: 30 Jan 2007, 01:18
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?

Redownloaded tar file

Posted: 30 Jan 2007, 01:23
by mjlunn
Untar and copy regex.pm - now it is running.

Posted: 30 Jan 2007, 15:10
by chirpy
If you've had an aborted upgrade it would be best to simply rerun the installation which would replace and missing files.

Posted: 03 Feb 2007, 20:43
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.

Yes - it worked

Posted: 04 Feb 2007, 12:33
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.

Posted: 04 Feb 2007, 20:14
by edizon
Ok I got it working. Thank for the help!