LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-14-2003, 05:36 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,672

Rep: Reputation: 55
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
 
Old 09-14-2003, 06:45 PM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Why do you need such a script?
 
Old 09-14-2003, 07:01 PM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,672

Original Poster
Rep: Reputation: 55
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
 
Old 09-14-2003, 10:26 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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
 
Old 09-14-2003, 10:39 PM   #5
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
setup? ntsysv?
 
Old 09-14-2003, 11:18 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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

Last edited by DavidPhillips; 09-14-2003 at 11:21 PM.
 
Old 09-15-2003, 12:04 AM   #7
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,672

Original Poster
Rep: Reputation: 55
Quote:
Originally posted by born4linux
setup? ntsysv?
Hi,

YES. That is this one 'ntsysv'

Lot of thanks

B.R.
satimis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with small program batalia Linux - Newbie 8 11-07-2005 02:41 PM
Stop java program(threaded program..should end cleanly) rmanocha Programming 4 11-09-2004 09:36 AM
how to stop/start/restart iptables? plan9 Linux - Newbie 8 08-06-2004 04:40 PM
How do I stop a program that has crashed? Fe98 Linux - Newbie 4 12-08-2003 07:09 AM
How do i stop a locked program? glenn69 Linux - Newbie 1 09-01-2003 11:33 PM


All times are GMT -5. The time now is 02:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration