LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-20-2004, 01:03 PM   #1
bhughesiii
Member
 
Registered: Aug 2004
Location: Indiana
Distribution: Fedora Core 2 and Suse Personal 9.1
Posts: 55

Rep: Reputation: 15
make a call


Where would I add, and what syntax would I use to run a firewall script at start up so to be sure that my custon firewall rules are applied?
 
Old 12-20-2004, 02:40 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
It depends. If you already have a script (probably generated automaticaly) you may add your rules to that file (but be careful when running the tool to generate firewall again, because your rules may be overwritten) or create your own one and run it from /etc/rc.local or make it an init.d script (the ones you run with start etc). Such script if usually build (filled) from template (look for a skeleton file).
 
Old 12-20-2004, 02:44 PM   #3
bhughesiii
Member
 
Registered: Aug 2004
Location: Indiana
Distribution: Fedora Core 2 and Suse Personal 9.1
Posts: 55

Original Poster
Rep: Reputation: 15
i created a script called firewall and put it in /etc/rc.d/init.d and it is executable... however it does not run on startup
 
Old 12-20-2004, 02:49 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
It's not enough to put it only in /etc/rc.d/init.d, but you're close. Now check which runlevel you're running (the command is 'runlevel') and symlink the script you just created to /etc/rc.d/rcX.d/SYYfirewall (example), where X is the runlevel and YY is a number. Make sure it's after your orginal firewall (scripts are run in order of the numbers, S means to start it). Example filename /etc/rc.d/rc5.d/S80firewall.
 
Old 12-23-2004, 09:12 AM   #5
bhughesiii
Member
 
Registered: Aug 2004
Location: Indiana
Distribution: Fedora Core 2 and Suse Personal 9.1
Posts: 55

Original Poster
Rep: Reputation: 15
Mara, thanks a million.. That solution worked for me.. I am also using it to add routes after networking is loaded.. I hate that I cannot make my routing table permanent
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can i make a script or program make a phone call? nephish Linux - Software 2 08-15-2005 09:02 PM
not sure what to call it Solvaut Linux - Newbie 12 07-18-2005 03:22 AM
What do you call your remote control? I call mine... RHLinuxGUY General 19 10-18-2004 06:23 AM
How to make rule for make install and make uninstall melinda_sayang Programming 1 06-14-2004 05:58 AM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 03:49 AM


All times are GMT -5. The time now is 03:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration