Click to See Complete Forum and Search --> : IPtables install woes


drake79
01-07-2003, 03:15 PM
I downloaded iptables 1.2.7a and did a
"make KERNEL_DIR=/usr/src/linux"
and a "make install KERNEL_DIR=/usr/src/linux"

it seemed to install just fine, it installed in /usr/local/sbin which is NOT in roots path.

I tried chkconfig --level 235 iptables

and got "no file or directory"

so I tried chkconfig --level 235 /usr/local/sbin/iptables

with the same result.

I tried "service iptables start" and got "no service iptables"

How do I remedy this? I've looked at several tutorials and none of them address this problem. Any help or ideas would be most helpful.


TIA

threadhead
01-07-2003, 05:35 PM
try a

iptables -V

as root.
what are the results?

drake79
01-07-2003, 07:05 PM
If I type just "iptables -V" I get unknown command. But If I type "/usr/local/sbin/iptables -V I get "version 1.2.7a" . I know /usr/local/sbin isn't in my $PATH but shouldn't iptables be installed in a directory in root's path?

threadhead
01-08-2003, 10:17 AM
the directory /usr/local/sbin refers to the path where all the executables of the superuser are located.
the sbin stands for that.

if you want to access iptables without giving the whole
path every time you might want to add the entry to
your PATH variable.

drake79
01-08-2003, 07:12 PM
Thanks threadhead, just a few quick questions. I added the directory to my path, but now when I type:

chkconfig --level 235 iptables on

I get this error:

service iptables doesn't use chkconfig

and when I type:

service iptables start

I get this:

iptables: unrecognized service

I've got to be doing something wrong. If you can help I will be grateful


TIA