I have two (Windows 2008 R2) servers, let's call them: A
and B
.
Server A
is running a software server (in this example Apache HTTP).
Without touching or changing anything in Apache's configuration, I need all packets from B
to be routed to server A
and (very importantly) for Apache to know the real visitor's IP address. Meaning when visitor 192.168.1.2 contacts Apache on server A
through tunnel B
, apache should log ip 192.168.1.2 and NOT 192.168.1.100
To make things even more complicated, what if I want more servers like B
.
Somehow, server A
should always know the real visitor's IP address no matter which server B
he connects from. All this should be done in network/OS level. (Meaning: not having to configure every software server with Proxy Socks firewall or anything like that)
I am a total newbie at tunneling and networking in general, and I am so confused as to what type of tunnels is needed to accomplish this in Windows server (VPN, GRE, IPSEC?). What should I be looking for ? And would it be possible to have servers B
in Linux connected to server A
in Windows in a very compatible way ? I've read in this site that it was possible in theory but very difficult in practice.
Any input about this would be greatly appreciated.