Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-25-2006, 10:10 AM
|
#1
|
LQ Newbie
Registered: Mar 2006
Posts: 13
Rep:
|
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
|
|
|
06-25-2006, 10:15 AM
|
#2
|
Member
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900
Rep:
|
Try
Code:
/etc/rc.d/init.d/iptables restart
|
|
|
06-25-2006, 10:19 AM
|
#3
|
Member
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462
Rep:
|
more likely to be
/etc/rc.d/rc.iptables restart
in slackware.
do locate rc.iptables if u run into trouble.
ta.
|
|
|
06-25-2006, 11:23 AM
|
#4
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
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.
|
|
|
06-26-2006, 12:34 AM
|
#5
|
Member
Registered: Mar 2004
Posts: 135
Rep:
|
Does
/sbin/servcie iptables restart
work?
|
|
|
06-26-2006, 01:13 AM
|
#6
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
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:~$
|
|
|
06-26-2006, 01:26 AM
|
#7
|
Member
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753
Rep:
|
@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.
|
|
|
06-26-2006, 01:31 AM
|
#8
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
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.
|
|
|
06-27-2006, 11:59 AM
|
#9
|
Senior Member
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519
Rep:
|
guarddog makes /etc/rc.d/rc.firewall and so yeah......../etc/rc.d/rc.firewall restart is how you do it for that install.
|
|
|
All times are GMT -5. The time now is 10:25 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|