Did you compile iptables support built-in to the kernel, or as modules? Look in /lib/modules/2.4.2(i think for RH71)/kernel for the modules. If you find them there, do a
for each of the modules you compiled. You can have them start automatically by adding the above line, for each module to your start-up scripts, in /etc/rc.local or something similar. (Its been a long time since I ran Redhat. Can't remember the exact layout of the start-up scripts)Code:modprobe [name of module]
Once the modules are loaded, your iptables script should run.
Also, make sure your script is looking for iptables in the right place. Should be in /usr/sbin/iptables. I have a line in my script as follows:
Then, each rule gets called withCode:IPTABLES="/usr/sbin/iptables"
Code:IPTABLES [rest of rule]


Reply With Quote
Bookmarks