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. |
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 |
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.
|
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 |
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? |
Quote:
|
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.. |
There are lots of scripts to help you create your custom iptables rules. I've used quicktables for my box.
|
i'll try this, thank you for your help.
|
All times are GMT -5. The time now is 02:19 AM. |