LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-07-2009, 12:52 PM   #1
invader44
Member
 
Registered: Dec 2008
Location: America
Distribution: Ubuntu 11.04
Posts: 64

Rep: Reputation: 15
Unhappy What does rc.firewall do?


I am making a server running slackware 12.1 as my OS. I have installed apache web server, squid, and finally dansguardian as my filter. I beleive I have done everything correct I have apache,squid, and dansguardian all starting as daemons. I also have the ./config files edited. So I think I am almost done setting up my server. By the way I have access to a server that is already configured correctly. So this is where I am right now, I set up dansguardian.conf made f2,f3,f4 and made the filter groups. Then I went to the directory /etc/rc.d and looking at the machine already configured I noticed there is a rc.firewall and a rc.dhcpd file there and there executable. My question is do I make this file myself using the touch command, then use my text editor of choice and right the script for the rc.firewall? Or do I use some command to make the rc.firewall and rc.dhcpd? Maybe I am lost and just do not relize it yet!

invader
 
Old 01-07-2009, 01:29 PM   #2
V0D
LQ Newbie
 
Registered: Dec 2003
Location: Modena, Italy
Posts: 6

Rep: Reputation: 1
rc.firewall and rc.dhcpd are, respectively, the script to init the firewall and the dhcp daemon. You can edit them as you wish, with your favourite text editor.

If you are setting up a server, without a firewall before it, you'd better set up a simple script inside the rc.firewall file.

Good luck!
 
Old 01-07-2009, 03:18 PM   #3
invader44
Member
 
Registered: Dec 2008
Location: America
Distribution: Ubuntu 11.04
Posts: 64

Original Poster
Rep: Reputation: 15
Not exactly the answer I am looking for. This server is just a test server that I am making. My question was that do I make those files myself rc.firewall and rc.dhcpd to match the already configured server?
Manually using the touch command and then making them executable with chmod?
thanks for the reply V0D
 
Old 01-07-2009, 03:54 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
install the firewall and dhcpd, the rc scripts will be installed also
 
Old 01-09-2009, 09:33 AM   #5
V0D
LQ Newbie
 
Registered: Dec 2003
Location: Modena, Italy
Posts: 6

Rep: Reputation: 1
Usually, the NetFilter library (for the firewall) is preconfigured in the kernel and Iptables is preinstalled in the system. If the "iptables" command in the shell returns an unknown command message, you have to check netfilter is installed in the kernel and, after this, you'll have to install the iptables package.

When you have installed dhcpd and iptables (if it wasn't), you can manually edit the rc.* files as you want. Note that they are scripts and not the config files.
 
Old 01-11-2009, 09:56 PM   #6
invader44
Member
 
Registered: Dec 2008
Location: America
Distribution: Ubuntu 11.04
Posts: 64

Original Poster
Rep: Reputation: 15
Thanks V0D, for the reply, I will check with the iptables command. Sorry for being such a noob!

Vadder
 
  


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
pptp gets modem hung up outside firewall, but not inside firewall cmnorton Linux - Networking 4 11-27-2008 12:04 AM
router billion 5102 has firewall and software firewall tests aus9 Linux - Security 6 12-31-2006 10:09 PM
slackware's /etc/rc.d/rc.firewall equivalent ||| firewall script startup win32sux Debian 1 03-06-2004 09:15 PM
Firewall Builder sample firewall policy file ? (.xml) nuwanguy Linux - Networking 0 09-13-2003 12:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:31 PM.

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