Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 05-07-2004, 02:50 PM   #1
Registered: Oct 2002
Location: Chitown
Distribution: RH 7.2/3
Posts: 48

Rep: Reputation: 15
Linux Firewall Runlevel Question

I was looking at the /etc/inittab file and was wondering if it were possible to run my firewall in runlevel 2 instead of 3. Are there any repercussions in that?

From what the /etc/inittab stated, it looked like runlevel 2 doesn't bring up networking. However testing this on another server, runlevel 2 did have networking support and i could ping my other servers.

Running RH 7.3.


Old 05-07-2004, 05:18 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,695

Rep: Reputation: 232Reputation: 232Reputation: 232
It depends on a distro. RH doesn't start network on runlevel 2, but Debian does... In fact, you can configure it. You can also bring your firewall up on both 2 and 3.
Old 05-07-2004, 05:22 PM   #3
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
The runlevels are somewhat distro specific. I am pretty sure that runlevel 2 on Red Hat systems does not start the network (unless you tweak it) and therefore there's no need to start the firewall. On Debian I think, however, runlevel 2 does start up the network. I'm not entirely sure though. So unless your server explicitly starts the network on runlevel 2 you don't need to worry. You can check this by seeing the the network startup script is linked from /etc/rc.d/rc2.d. If it is, runlevel 2 starts the network. If not, it does not.


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
runlevel question timgerr Linux - Software 1 05-11-2004 04:20 PM
runlevel question msound Linux - General 5 04-23-2004 10:00 PM
runlevel question feetyouwell Red Hat 2 12-16-2003 09:53 AM
RunLevel 4 Question????????? rcampbell128 Linux - Newbie 2 10-24-2003 05:26 AM
Runlevel 3 question awdoyle Linux - General 10 06-11-2003 07:54 PM > Forums > Linux Forums > Linux - Security

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration