Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-13-2013, 10:53 AM
|
#1
|
Member
Registered: Jan 2013
Posts: 32
Rep: 
|
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!
|
|
|
06-13-2013, 12:42 PM
|
#2
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348
Rep: 
|
Quote:
Originally Posted by irreverentryan
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.
|
|
|
06-13-2013, 01:00 PM
|
#3
|
Member
Registered: Jan 2013
Posts: 32
Original Poster
Rep: 
|
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.
|
|
|
06-14-2013, 05:34 AM
|
#4
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348
Rep: 
|
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.
|
|
|
06-14-2013, 08:24 AM
|
#5
|
Member
Registered: Jan 2013
Posts: 32
Original Poster
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 11:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|