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 06-13-2013, 10:53 AM   #1
irreverentryan
Member
 
Registered: Jan 2013
Posts: 32

Rep: Reputation: Disabled
Question Split network using firewall, trying to add static routes


Hey All,

I've got a Local trusted network, that we will call PRODUCTION. Its network info is x.x.10.0/24. I have a backup device on that network, with an IP of x.x.10.251. It's gateway is x.x.10.5 (firewall) which has a P2P interface (trusted) that is configured for x.x.100.3. This firewall is directly connected to another firewall with a P2P address of x.x.100.2. This second firewall also has a local trusted network (that we will call DR) with the same network info (x.x.10.0/24) and on this network is a second backup device with an IP of x.x.10.252.

I am trying to make persistent static routes that would allow hosts on the PRODUCTION network to talk to eachother locally, except for the other backup device's address. I'd like that data forwarded through the firewalls to the DR network.

Am I explaining this clearly enough? Basically I've split a network without subnetting it and I want direct routes to specific hosts to go through the firewall. I'm having some trouble since most network requests in the same subnet will not reach the default gateway (since they are local).

What I have tried:
PRODUCTION-BCKP:
IP: x.x.10.251
Gateway: x.x.10.5
#ip route add x.x.10.252/24 via x.x.10.5
(x.x.10.5 has a static route in its table directing traffic designated for x.x.10.252 to be forwarded to the DR firewall, x.x.100.2)

DR-BCKP:
IP: x.x.10.252
Gateway: x.x.10.2
#ip route add x.x.10.251/24 via x.x.10.2
(x.x.10.2 has a static route in its table directing traffic designated for x.x.10.251 to be forwarded to the PRODUCTION firewall, x.x.100.3)

at one point, I had them pinging, but I am unsure as to how to force the change to be persistent.

Thanks!
 
Old 06-13-2013, 12:42 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
Quote:
Originally Posted by irreverentryan View Post
Hey All,

I've got a Local trusted network, that we will call PRODUCTION. Its network info is x.x.10.0/24. I have a backup device on that network, with an IP of x.x.10.251. It's gateway is x.x.10.5 (firewall) which has a P2P interface (trusted) that is configured for x.x.100.3. This firewall is directly connected to another firewall with a P2P address of x.x.100.2. This second firewall also has a local trusted network (that we will call DR) with the same network info (x.x.10.0/24) and on this network is a second backup device with an IP of x.x.10.252.
You can't have the same IP network (x.x.10.0/24) in two different places. A router/firewall cannot be directly connected to a network (by having an interface address in that network) and at the same time have a route saying the same network is somewhere else. It makes no sense.

The proper solution is to renumber one of the networks. If that really isn't possible, you could set up both source and destination NAT on both firewalls, but trust me, you don't want to go there unless you absolutely, positively have to. For one thing, the DNS setup will be a nightmare.
 
Old 06-13-2013, 01:00 PM   #3
irreverentryan
Member
 
Registered: Jan 2013
Posts: 32

Original Poster
Rep: Reputation: Disabled
Unfortunately, I do need to split the network this way. We have a virtual machine that manages all other virtual machines, and it needs to keep it's IP information when spun up in the DR site.
 
Old 06-14-2013, 05:34 AM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
You may have specific requirements with regards to functionality, but there are probably several ways to meet those requirements. I must say I doubt they mandate an invalid network configuration.

Duplicate Ip networks should be avoided if at all possible, as communication between such networks can only be realized with combined source and destination NAT at both ends. If you could provide some details regarding your setup and the needed functionality, perhaps an alternate solution could be found.
 
Old 06-14-2013, 08:24 AM   #5
irreverentryan
Member
 
Registered: Jan 2013
Posts: 32

Original Poster
Rep: Reputation: Disabled
Watchguard Firewall

It actually seems to be passing the data properly... the only problem is my Watchguard firewall is blocking the address as spoofed (probably because the network exists on both sides of the firewall) So it looks like I've got to allow it to pass and I may be all set.

There is another way to set this all up, but it requires a RHEL HA Cluster running RHEV as HA. I don't have enough experience with that to go in that direction, so we decided to create a "warm" DR site that we would manually spin up. There is only one duplicated address, the rest are singular.
 
  


Reply

Tags
forwarding, host, static route


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
static routes - gateway realbluntz Linux - Networking 1 01-18-2011 07:26 PM
static routes fdelval Linux - Newbie 1 08-03-2010 07:03 PM
Firewall Rules to add VPN Network into my LAN Network ed182 Linux - Networking 1 06-04-2010 03:17 PM
Static routes using routes/ifroutes-eth-id.. files and default gateway disabled TimtheEagle Linux - Networking 0 05-31-2008 07:08 PM
add a static route in Network init files Ghitza Linux - Networking 1 11-19-2004 05:26 AM

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

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