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 12-04-2006, 12:38 AM   #1
skellert
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Rep: Reputation: 0
shorewall - adding a router in the local zone


I have a two-interface shorewall config that is working fine.

My local network has grown and I need to add a router inside the local zone. It would be easy to add another nic to the firewall - but I can't do this. I must add a router inside the local zone and have the firewall route to the new subnet via the new router.

The "multiple-zones" howto says I can do this by telling shorewall to "add a route to the new subned via the router and restarting shorewall"... alas - for the life of me I cannot find anywhere that describes how to add a static route in a shorewall config!!

In essence, this is a similar problem to adding a NATing wireless router onto a home network. (because this also adds a new subnet onto the local zone). This must have been solved many times in the past.

Can anybody help explain to me?
Thanks
 
Old 12-05-2006, 09:21 AM   #2
jimbo1954
Member
 
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Rep: Reputation: 33
I think what you need to do is to add a static route, not in shorewall, but in the linux networking. You can do this either via the Administration-Network GUI, if you are running a windowed environment, or via the "route" command if you are in a terminal window (need root password, either way)

The reason for this is that the router running shorewall has to know that, to get to subnet "a" (the new subnet), it has to pass traffic *through* subnet "b" (the old subnet), and that's a routing function, not a firewall function

HTH

JB
 
Old 12-06-2006, 11:08 PM   #3
skellert
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the tip. I guess this is kind of obvious and I should have been able to work it out.

My mistake was to assume that, having spent days and days working out how to customise the shorewall scripts to do all sorts of cool things like traffic shaping and prioritisation and pinholing and the like for the local subnet, I assumed youd also use these scripts to define routing.

Hmmmm.. I should think of trying the obvious in future. ;-)
 
  


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
invalid zone name error in shorewall even in sample file mohsin-mm Linux - Networking 8 08-09-2007 12:44 AM
Setup shorewall with Lan & Wan zone on same NIC, is it possible? kechara Linux - Networking 0 06-20-2004 06:30 AM
shorewall - rules for multiple local sites gjmwalsh Linux - Security 9 06-19-2004 11:06 PM
drakgw / shorewall local network problem Floof_Le_Beau Linux - Networking 0 04-30-2004 05:05 AM
Local Time zone must be set ?? satanic_linux Slackware 2 02-08-2004 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration