LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-06-2004, 09:03 PM   #1
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Question slackware's /etc/rc.d/rc.firewall equivalent ||| firewall script startup


in slackware i take my iptables script and put it in /etc/rc.d/rc.firewall and then make it executable and it's good to go...

is there an equivalent for doing this in debian???

what's the "debian way" of setting your firewall script???
 
Old 03-06-2004, 09:15 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Re: slackware's /etc/rc.d/rc.firewall equivalent ||| firewall script startup

Quote:
Originally posted by win32sux
in slackware i take my iptables script and put it in /etc/rc.d/rc.firewall and then make it executable and it's good to go...

is there an equivalent for doing this in debian???

what's the "debian way" of setting your firewall script???
Put it in the /etc/init.d/ directory make it executable and then:
Code:
update-rc.d rc.firewall start 20 2 3 4 5 . stop 20 0 1 6 .
Will make the proper links in the /etc/rc?.d directories to start and stop properly on boot or shutdown. Note the . in the line they are important.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting firewall script to auto-run at startup lrt2003 Linux - Newbie 2 04-25-2004 02:28 AM
newbie ?, firestarter firewall startup north49er Slackware 2 05-10-2003 05:27 PM
firewall (or equivalent to zone alarm for Windows) jasonhbishop Linux - Networking 4 03-16-2003 02:26 PM
ZoneLabs Firewall Linux Equivalent? faustus Linux - Networking 1 02-07-2002 07:40 PM
Automatic Startup script for Firewall Robertb Linux - General 0 03-27-2001 10:53 AM


All times are GMT -5. The time now is 06:40 AM.

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