Routing server in datacenter traffic to different locations (in datacenter)
Linux - NetworkingThis 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.
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.
Routing server in datacenter traffic to different locations (in datacenter)
Server A:
ip 1.1.1.5
gw 1.1.1.254
Server B:
ip 1.2.2.5
gw 1.2.2.254
First of all, is it even possible to route via another server? Assuming nothing tricky is being done in the datacenter (which I know there is but we don't know what so forget about that for now), it would be server a -> switch -> server b (possibly router in between depending on locations of the server).
If so, is it possible to get a little more granular, such that some traffic/ports go via one server, others via another, even possibly in a different datacenter altogether?
And from the other perspective, can applications (TCP/UDP mainly) deal with this type of routing?
What about if it via multiple load-balanced places?
I know general networking stuff, ccna level, but I haven't read of anyone doing this so I'm not sure if there is any GOTCHA that I've not thought of.
what do you actually want to do?? It feels like there's a big paragraph missing at the start that explains what you mean by "routing via another server" Do you mean something like application load balancing? Somethign nginx is a reasonable starting point for if its web traffic.
Yea there is a big paragraph missing because I am not sure how much I want to say, >_>
Basically, there are restrictions on the limit/amount/speed of traffic from server A to the internet, but not from server B to the internet. So we want to take outgoing traffic from server A, route it via server B, onto the internet. Then incoming can go normally to server A.
There are certainly ways to achieve this, but depends on your network, and also things like the type of traffic and the mission criticality of the solution. what type of traffic is it? Who is initiating it? I'm a little concerned that you are wanting a remote browser to connect to A directly but then drugstore get all data back via B, and at a tcp/ip level that's not possible.
Same datacenter yes, different switch different subnets.
It isn't browser based, it is application level (which uses TCP/UDP). It would be fairly symetric traffic. There is no SLA required, so it doesn't so much matter if data is lost as long as not too much is lost.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.