An unusual request

SeLLeRoNe

Super Moderator
Joined
Oct 9, 2004
Messages
6,632
Location
A Coruña, Spain
Hi,

ive a server with two eth interface, one pointing to external one to internal of our network.

The internal is used for intranet website managed via directadmin and the external for all other domains.

Now, i would like to point an external request to an internal windows server (using iis) in this way...

example:

www2.example.com come to directadmin server via external eth interface on port 80 and is redirected (i suppose using apache headers) for example to 10.10.20.20:80 using internal eth, is that possible? Anyone can help me find out how?

Thanks in advance
 
If I understood you correct, www2.example.com will point to a real pulic IP from internet? If so, you can try to use apache's mod_proxy or iptables (FORWARD and DNAT/SNAT) on public iface.
 
first, thanks for reply

i was thinking about mod_proxy aswell... my question is.. if i make www2.example.com proxy to 10.10.20.20:80 will this work for people visit www2.example.com not from our internal lan?

Thanks
 
If www2.example.com has a public (external) IP, then it can be routed and accessible from Internet. If you want to access it from a LAN then you should check routing policy and firewall rules inside the LAN.
 
No, sorry if i didnt explain well, www2.example.com is accessible from outside and have a statit public ip, but, i wanna route the request to an internal one (but have to be visible from external people)

something that should look like

CLIENT => INTERNET => WWW2.EXAMPLE.COM (PUBLIC IP) => APACHE PROXY => INTERNAL LAN IP (PORT 80)

This should be the procedure, the one thing im wondering is if CLIENT will be able to see the site hosted on internal ip

THanks
 
Back
Top