LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-25-2006, 09:10 AM   #1
rickyinman
LQ Newbie
 
Registered: Mar 2006
Posts: 13

Rep: Reputation: 0
Command to restart Linux Firewall in Slackware


I am a relative newbie to Linux. I have Slackware 10.2 installed. I have been using it as a Proxy server for a few months now (all seems to be going well). Now I want to use this same machine as a firewall. I have been able to edit the iptables, but I don't know how to restart the firewall after I save my changes. I have been restarting the machine. I know there has to be a command line that I can execute to do this. Can anyone help?

thanks
 
Old 06-25-2006, 09:15 AM   #2
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Try
Code:
/etc/rc.d/init.d/iptables restart
 
Old 06-25-2006, 09:19 AM   #3
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Rep: Reputation: 30
more likely to be

/etc/rc.d/rc.iptables restart

in slackware.


do locate rc.iptables if u run into trouble.

ta.
 
Old 06-25-2006, 10:23 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Perhaps a stab in the dark, but most new Linux users generate a rc.firewall script. If you did this, then:
Code:
/etc/rc.d/rc.firewall restart
is what you'll need to run.
 
Old 06-25-2006, 11:34 PM   #5
fedora4002
Member
 
Registered: Mar 2004
Posts: 135

Rep: Reputation: 15
Does
/sbin/servcie iptables restart

work?
 
Old 06-26-2006, 12:13 AM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by fedora4002
Does
/sbin/servcie iptables restart

work?
We don't have that in Slackware:
Code:
mingdao@silas:~$ ls -lh /sbin/servcie
/bin/ls: /sbin/servcie: No such file or directory
not even with service spelled correctly:
Code:
mingdao@silas:~$ ls -lh /sbin/service
/bin/ls: /sbin/service: No such file or directory
mingdao@silas:~$
 
Old 06-26-2006, 12:26 AM   #7
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
@chinaman
if there is a rc.firewall script, it may or maynot have a start|stop|restart clause in it (depends upon the author though)

@rickyinman
you should write a firewall script yourself and place it under the directory /etc/rc.d with the name rc.firewall. then everytime you need to change something, you can do it in the rc.firewall and just re-run it as you would to any ordinary script. you will get tons of examples on how to write one yourself on the web. the security section of LQ may have nice tutorials too.
 
Old 06-26-2006, 12:31 AM   #8
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
As I said before, the one "most new Linux users generate" does. Can't possibly cover all the variantions of the few left over.

rickyinman,

If the one you're using isn't working to your satisfaction, use this one which has been fixed to work with Slackware.
 
Old 06-27-2006, 10:59 AM   #9
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
guarddog makes /etc/rc.d/rc.firewall and so yeah......../etc/rc.d/rc.firewall restart is how you do it for that install.
 
  


Reply



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
console command, to restart my rc.firewall ruleset w/out restarting my pc linuxboy_inside Linux - Networking 2 01-04-2004 08:24 PM
Automating firewall reload on i/f (ppp) restart aelms Linux - Security 0 10-25-2003 02:14 PM
SuSE7.2 Firewall, how do I restart it, without a reboot Led*Zep Linux - Security 1 03-19-2003 09:59 AM
Restart linux from command line condemnity Linux - Newbie 2 02-03-2003 07:31 PM
What happened to my restart command? Rampage2884 Linux - General 5 04-10-2002 06:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:28 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
Open Source Consulting | Domain Registration