I really need to buckle down and study networking. But, in the meantime, I'd like some quick advice as to how to accomplish the following:
Let's say that you have two sites, A & B. At each site, you have two servers which you want to access from WAN, A1 & A2 and B1 & B2. You may wish to make these accessible to untrusted clients for file sharing, etc, without exposing the balance of your network to the outside.
How would you set up a CHR on a virtual server (DigitalOcean droplet, specifically, with a single static/routable/rDNS IP), and configure it so that packets addressed to the CHR at gateway.mydomain.com are sent to:
- a1.mydomain.com goes to server 1 at site a,
- a2.mydomain.com goes to server 2 at site a,
- b1.mydomain.com goes to server 1 at site b,
- b2.mydomain.com goes to server 2 at site b
(Assuming that both site A and site B are on Mikrotik routers running current RouterOS.)
For bonus points, how to set it up so that site traffic between sites A & B stays within the infrastructure and does not go out on the public Internet 'in the clear,' as it were?
Edit To Add: All of the sites (gateway.mydomain.com; a1.mydomain.com; a2.mydomain.com; b1.mydomain.com; b2.mydomain.com) point to the same shared static IP for the CHR. I need to know how to direct and route them from there.