Answer the question
In order to leave comments, you need to log in
How to make a website for 2 providers?
Good afternoon! There was such a question and complexity. In general, I'm trying to implement such a thing when 1 site hangs immediately on 2 Internet providers
. However, I don't fully understand how to set up routes on the server here. From what is at the moment: everything works from 1 subnet, the site opens from the outside. No from the second subnet: the request does not reach. More precisely, it reaches the server, but does not reach further. And there is no access to the world from the second subnet either. So I understand that the matter is in default gw, however, I can’t assign 2 defgw? and if so, how will it determine which interface the request came from?
Answer the question
In order to leave comments, you need to log in
On a machine with a Linux site? Providers come from two different routers?
then just read how to send packets back to the same interface they came from. Google for iproute2 and multihome.
Here is a good link right away, https://habr.com/en/post/107267/
Where exactly and from where does the request not reach the second subnet? Try to catch the packet on the webserver side and track the direction of the response. default gw only affects connection initialization from the server. All incoming connections work according to the rules "from where I came there and back" if there is no explicit processing on the side of the firewall.
In general, I'm trying to implement such a thing when 1 site hangs immediately on 2 Internet providers
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question