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 01-19-2006, 07:45 AM   #1
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Rep: Reputation: 30
Trying slackware - Need help with services


Hi,

Just installed slackware 10 on my pc, i want to turn services like iptables on and off in comand line, what is the alternative for red hat's '/sbin/service iptables stop'?

Thank you.
 
Old 01-19-2006, 08:48 AM   #2
DropSig
Member
 
Registered: Apr 2004
Location: East of Quebec
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
i think its:
/etc/rc.d/rc.iptables stop or somewhere in there.
i havent use slack in a couple of years so i could very well be wrong
 
Old 01-19-2006, 08:50 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,520

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
Slackware services are started from scripts in /etc/rc.d. By default there is no firewall (iptables) script, but if during boot Slack finds a script named rc.firewall in that directory it executes it through rc.inet2. So if you want to use iptables you have to create that file with your custom rules. You can also start or stop it anytime you want by ./rc.firewall start and ./rc.firewall stop.
 
Old 01-22-2006, 01:11 AM   #4
gautam2678
LQ Newbie
 
Registered: Oct 2005
Distribution: slackware,fedora,ubuntu
Posts: 10
Blog Entries: 1

Rep: Reputation: 0
hi Infernal211283, slackware services are stored in /etc/rc.d. To start firewall in slackware run this command as root user or as su.

/etc/rc.d/rc.firewall start
 
Old 01-22-2006, 03:52 AM   #5
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Original Poster
Rep: Reputation: 30
root@slack:/etc/rc.d# /etc/rc.d/rc.S rc.
rc.0 rc.alsa rc.gpm rc.ip_forward rc.portmap rc.sysvinit
rc.4 rc.atalk rc.hotplug rc.local rc.samba rc.udev
rc.6 rc.bind rc.httpd rc.modules rc.saslauthd rc.wireless
rc.K rc.cups rc.inet1 rc.mysqld rc.sendmail rc.wireless.conf
rc.M rc.dnsmasq rc.inet1.conf rc.netdevice rc.serial rc.yp
rc.S rc.font rc.inet2 rc.nfsd rc.sshd
rc.acpid rc.font.new rc.inetd rc.pcmcia rc.syslog


^ this is all i have there, no firewall or iptables..

perhaps another location?
 
Old 01-22-2006, 04:10 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Quote:
Originally Posted by bathory
Slackware services are started from scripts in /etc/rc.d. By default there is no firewall (iptables) script, but if during boot Slack finds a script named rc.firewall in that directory it executes it through rc.inet2. So if you want to use iptables you have to create that file with your custom rules. You can also start or stop it anytime you want by ./rc.firewall start and ./rc.firewall stop.
You need to create it.
 
Old 01-22-2006, 04:15 AM   #7
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Original Poster
Rep: Reputation: 30
do i have to know bash scripting for it?

and, sorry bathory, i didn't notice the reply, thought i'll have it ready in there..

Last edited by Infernal211283; 01-22-2006 at 04:16 AM.
 
Old 01-22-2006, 09:17 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,520

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
There are lots of scripts to help you create your custom iptables rules. I've used quicktables for my box.
 
Old 01-23-2006, 12:31 AM   #9
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Original Poster
Rep: Reputation: 30
i'll try this, thank you for your help.
 
  


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
Slackware services problem bluesheet Slackware 9 07-02-2005 04:18 AM
services for desktop slackware pete_bogg Slackware 2 06-01-2005 06:22 PM
Edit startup services Slackware 10 thomasjor Slackware 4 09-07-2004 10:49 AM
Starting Services on Slackware 9.1 granatica Linux - General 2 03-16-2004 09:49 PM
Slackware 9/services wr3ck3d Linux - Security 2 03-26-2003 03:28 PM


All times are GMT -5. The time now is 06:33 AM.

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