LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying slackware - Need help with services (https://www.linuxquestions.org/questions/linux-newbie-8/trying-slackware-need-help-with-services-405333/)

Infernal211283 01-19-2006 06:45 AM

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.

DropSig 01-19-2006 07:48 AM

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

bathory 01-19-2006 07:50 AM

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.

gautam2678 01-22-2006 12:11 AM

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

Infernal211283 01-22-2006 02:52 AM

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?

ethics 01-22-2006 03:10 AM

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.

Infernal211283 01-22-2006 03:15 AM

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..

bathory 01-22-2006 08:17 AM

There are lots of scripts to help you create your custom iptables rules. I've used quicktables for my box.

Infernal211283 01-22-2006 11:31 PM

i'll try this, thank you for your help.


All times are GMT -5. The time now is 02:19 AM.