LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   A small program to stop iptables (https://www.linuxquestions.org/questions/linux-newbie-8/a-small-program-to-stop-iptables-92798/)

satimis 09-14-2003 05:36 PM

A small program to stop iptables
 
Hi all folks,

RH9.0
=====

Can you help me recall a small program to stop iptables permanently so that it would not start to run on booting. This program can also stop other applictions from running.

Thanks in advance.

B.R.
satimis

Proud 09-14-2003 06:45 PM

Why do you need such a script?

satimis 09-14-2003 07:01 PM

Quote:

Originally posted by Proud
Why do you need such a script?
Hi,

NO, it is not a new program. It has been installed on RH8.0 and I suppose it is also runing on RH9.0. I forget the command to start it. From it I can enable/disable iptabes and some other applications.

B.R.
satimis

DavidPhillips 09-14-2003 10:26 PM

yes the command to do that is,


chkconfig iptables off

you can use other options as well to see what's enabled.


like

chkconfig --list

born4linux 09-14-2003 10:39 PM

setup? ntsysv?

DavidPhillips 09-14-2003 11:18 PM

Not really.



Enable / Disable initd scripts

chkconfig on
chkconfig off


Enable and start / Disable and stop Xinetd servers

chkconfig on
chkconfig off


Start / stop initd scripts

service scriptname start
service scriptname stop





setup for services is not a very good way to do it unless you actually know what you are doing and want it that way.


Setup will only turn on or off a service in the current runlevel




example

chkconfig --list httpd
httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off



run setup and enable httpd


chkconfig --list httpd
httpd 0:off 1:off 2:off 3:off 4:off 5:on 6:off



That's not right. Now

chkconfig httpd on


chkconfig --list httpd
httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off


Now run setup turn off httpd
chkconfig --list httpd
httpd 0:off 1:off 2:on 3:on 4:on 5:off 6:off

wrong again

unless that's what you want

chkconfig httpd off
chkconfig --list httpd
httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off



Sorry for dragging this out but in conclusion, use chkconfig

satimis 09-15-2003 12:04 AM

Quote:

Originally posted by born4linux
setup? ntsysv?
Hi,

YES. That is this one 'ntsysv'

Lot of thanks

B.R.
satimis


All times are GMT -5. The time now is 03:41 PM.