Imagine this kind of setup. 5 servers. 1 server will be the "front-end", all the traffic has to go through it first before going to the 4 other servers.
I don't want people to know the IPs of the other servers, so they will be stuck at server 1 whenever they ping or traceroute or whatever.
Why do I want this? I'm thinking about getting a DDOS protected server with a reliable company, but since filtered IPs are expensive I only want to use 1 IP.
I was thinking if it is possible make routes like, if traffic is trying to access domain2.com on server 02 then redirect it to xxx.xxx.xxx.002, if traffic is trying to access domain3.com on server 3 then redirect it to xxx.xxx.xxx.003 and so on.
I know I can redirect traffic from server 1 to the other 4 servers using GRE tunneling. But I don't know a way to separate traffic the way I mentioned above. I thought "maybe using "iptables" but I'm not sure if it would be doable only with iptables, nor I know how to do it using iptables.
Is it possible to do something like this ???