Click to See Complete Forum and Search --> : Iptables module died??


pcghost
11-20-2002, 12:59 PM
I type /sbin/service iptables restart and the following is what I get

: No such file or directory1: /bin/sh
: No such file or directory14: /etc/init.d/functions

Anyone know what this means? Iptables isn't running and doesn't show up on the services list, but the module is loaded. I would like to re-install the module but when I do a rpm -ev iptables<$ver>.rp
m it just sits there. I tried to install a new iptables rpm and it says Iptables is already installed. I am lost :(

mychl
11-20-2002, 02:28 PM
can you run it with /etc/init.d/iptables start?

The /etc/init.d/functions is a script that provides resources to other scripts, like when you get the green [OK] while booting.... that's in the functions file.. (pretty cool if you want to tweak those colors)

You might be able to edit your iptables script and get rid of the functions references, I don't think it's real important..... of course that doesn't answer your question.....

If you want to install a newer version, try using the -Uvh option with rpm, that'll update currently installed rpms.

I think in your error messages, the line numbers are specified.... /bin/sh is on line 1 of your script.... change that to /bin/bash.... might help.

Did you change locations of the script or anything?

pcghost
11-20-2002, 02:56 PM
As it turned out, I hosed the machine (as root naturally) while installing packages. xinetd.d was not functioning correctly, and the references to /etc/service/functions was hosed as well. I offloaded all my custom scripts (squid, samba, iptables) and wiped the machine. This time everything should go according to plan as I have already written all the proper .conf files and the like. Once the machine is back up with all the neccesary services running, it should be as easy as replacing the customizations. Damn the dependancies.

That's all Linux has to do to kill MS on the desktop.. Get rid of the dependancy problems..

PS I still say "Linux Rules!" despite my experience today....
:D

mychl
11-20-2002, 05:30 PM
I used to have to do that a lot. I started using a seperate /home partition, and I have a Backup directory on it. I put all my scripts and config files on it and wrote a script that will restore everything. Then after a re-install, just run your script and you're all set.

It's really cool the first time you run it and everything is back to normal right away.... I even had my XF86Config backed up and had my script compile my NVIDIA drivers!!!

:p