LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-08-2009, 08:12 AM   #1
daghenningsorbo
LQ Newbie
 
Registered: Mar 2009
Posts: 24

Rep: Reputation: 0
Shorewall: Error on boot


Hello.
I have a little problem getting Shorewall to start at boot. It gives the following error in shorewall-init.log:
Code:
23:29:41 Setting up Masquerading/SNAT...
   ERROR: Unable to determine the routes through interface "eth0"
23:29:41 IP Forwarding Enabled
Terminated
My /etc/shorewall/masq looks like this:
Code:
###############################################################################
#INTERFACE		SOURCE		ADDRESS		PROTO	PORT(S)	IPSEC	MARK
wlan0                    eth0
#LAST LINE -- ADD YOUR ENTRIES ABOVE THIS LINE -- DO NOT REMOVE
(the interfaces are correct, internet from wireless -> wired network)

I have read that the error message says the interface is not brought up, but it should be. I do it manually in rc.local:
Code:
#!/bin/sh -e
#
# rc.local
#

ifup eth0
/etc/init.d/dhcp3-server restart
/etc/init.d/nfs-user-server start
/usr/sbin/hostapd /etc/hostapd/hostapd.conf
/sbin/shorewall start

exit 0
Does anyone have an idea about what's going on?

Distro: Xubuntu 8.10
Shorewall version 4.0.12-1
 
Old 03-12-2009, 03:02 PM   #2
daghenningsorbo
LQ Newbie
 
Registered: Mar 2009
Posts: 24

Original Poster
Rep: Reputation: 0
Anyone who knows what the problem might be??
 
Old 03-12-2009, 09:26 PM   #3
pokey
LQ Newbie
 
Registered: Jul 2003
Location: London, UK.
Distribution: Gentoo, (K)Ubuntu
Posts: 14

Rep: Reputation: 0
It may be that shorewall is getting started before rc.local in the boot process, I think rc.local gets executed last on boot. Else you could check /var/log/syslog at the time of it happening or post more of your /etc/shorewall/{interfaces,zones,rules,policy} if you're unsure.

HTH
 
Old 03-13-2009, 04:26 AM   #4
daghenningsorbo
LQ Newbie
 
Registered: Mar 2009
Posts: 24

Original Poster
Rep: Reputation: 0
Hi, thanx for the answer!
I got it to work now by just don't using rc.local, but now some other issues revealed itself, on which I will start a new thread:
http://www.linuxquestions.org/questi...0/#post3474047
 
  


Reply

Tags
shorewall


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
shorewall error hariiyer Linux - Networking 3 11-17-2007 12:26 AM
Shorewall ver 4.0 loading error javedmk80 Linux - Networking 2 10-05-2007 05:36 AM
NAT Error with Shorewall + Linux 2.6.20 on Debian spindley Linux - Networking 4 03-14-2007 06:16 PM
shorewall config question with /etc/shorewall/rules peter72 Linux - Networking 3 01-01-2007 09:33 PM
Shorewall Startup Error sovietpower Slackware 4 05-25-2004 04:54 PM


All times are GMT -5. The time now is 03:27 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