Jump to content

Shorewall is trying to start before network is up


DimmO
 Share

Recommended Posts

Shorewall is failing at boot - note that it starts before the network is started:

 

boot.log

Aug 23 23:13:22 linuxo shorewall:    Error: Unable to determine the routes through interface

Aug 23 23:13:31 linuxo network: Bringing up interface eth0:  succeeded
Aug 23 23:13:37 linuxo network: Bringing up interface eth1:  succeeded

 

i found this:

 

chkconfig --list

 

network         0:off   1:off   2:on    3:on    4:on    5:on    6:off
shorewall       0:off   1:off   2:on    3:on    4:on    5:on    6:off

 

Once i'm logged into X, I can open a terminal, su and then start shorewall manually (now that network is up)

 

How can I get shorewall to start after the network is up?

should shorewall be started at init 2 or 3? how would I go aboot fixing this?

thanks in advance.

Edited by DimmO
Link to comment
Share on other sites

Yeah, in MDK 10.0 they screwed up the order. In /etc/rc.d/rc3.d/ (and all the other rc#.d's) change the name of shorewall so that it is a larger number than the network link. Open a console and do this (anything you see inside of <<>> is a comment or action, don't actually type it):

 

su

<<type in your root password and hit enter...you won't see it being typed>>

cd /etc/rc.d/rc3.d

ls <<this is to see what shorewall's and network's symlinks are called>>

<<my network symlink is s10network...you'll see the @ symbol, but that's not really part of the name, it is just a symbol to show it is a symlink, so I want shorewall to have a bigger number>>

mv <<name of current shorewall link>> s15shorewall

 

Do the same for /etc/rc.d/rc2.d, /etc/rc.d/rc4.d, and /etc/rc.d/rc4.d

Edited by Steve Scrimpshire
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...