Apache reverse proxy server on a DMZ

Apache reverse proxy server on a DMZ

Post by Ric River » Thu, 03 May 2001 08:26:34



Hi all... first time posting...

I've been charged with the responsibility of creating a reverse proxy
server using Apache on Linux.  This would allow outside vendors to
connect to one of our internal machines in our secure 10.*.*.* network.
  The inside server is running IIS on NT (blech!).  Ideally, we would
map the DNS name to the IP address on the Linux box (in the DMZ, visible
to the outside through the firewall) and from there, the visitor would
be redirected to the inside box.  Obviously, the visitor wouldn't
connect directly, since it's on a 10.*.*.* network and it's behind the
firewall.

I've added this to the httpd.conf file...

ProxyPass / http://10.X.Y.Z/
ProxyReverse / http://10.X.Y.Z/

(IP addresses have been changed to protect identities)

This allows me to connect through the proxy from the inside (rather
useless).  When I try connecting from the outside, my browser hangs on
"Connecting to 10.X.Y.Z" which leads me to believe that I'm being
redirected to that IP address rather than proxied to it.

Am I missing something?  Please be advised that I've never configured
Apache in my life, so I'm kinda flying blind here.  Any help is greatly
appreciated.  Also, if there's a more appropriate group for this
question, please let me know

Thanks,
Ric

PS - If your response could be copied to my email address, I'd greatly
appreciate it.

 
 
 

Apache reverse proxy server on a DMZ

Post by Ric River » Thu, 03 May 2001 08:56:49


Correction...


> I've added this to the httpd.conf file...

> ProxyPass / http://10.X.Y.Z/
> ProxyReverse / http://10.X.Y.Z/

Actually the lines were...

<Directory proxy:*>
Order allow,deny
Allow from all
</Directory>

ProxyPass / http://10.X.Y.Z/
ProxyPassReverse / http://10.X.Y.Z/

but you probably knew that...

Ric

 
 
 

Apache reverse proxy server on a DMZ

Post by Patrick AST » Thu, 03 May 2001 13:01:10


Quote:> ProxyPass / http://10.X.Y.Z/
> ProxyReverse / http://10.X.Y.Z/
> When I try connecting from the outside, my browser hangs on
> "Connecting to 10.X.Y.Z" which leads me to believe that I'm being
> redirected to that IP address rather than proxied to it.

Do not use IP addresses (because Apache/mod_proxy calls gethostbyname()
for 10.X.Y.Z).

Just put something in your /etc/hosts, let's say toto:
        10.X.Y.Z        toto

And then use for mod_proxy:
        ProxyPass / http://toto/

Then for ProxyPassReverse, just use the `ServerName` of the next server.

Regards,
--
ASTY Patrick
A.C.I.C.          - Tel +33 (0)1.45.32.37.00

If Windows is the answer, you didn't understand the question.

Ric Rivera a crit :

Quote:

> Hi all... first time posting...

> I've been charged with the responsibility of creating a reverse proxy
> server using Apache on Linux.  This would allow outside vendors to
> connect to one of our internal machines in our secure 10.*.*.* network.
>   The inside server is running IIS on NT (blech!).  Ideally, we would
> map the DNS name to the IP address on the Linux box (in the DMZ, visible
> to the outside through the firewall) and from there, the visitor would
> be redirected to the inside box.  Obviously, the visitor wouldn't
> connect directly, since it's on a 10.*.*.* network and it's behind the
> firewall.

> I've added this to the httpd.conf file...

> ProxyPass / http://10.X.Y.Z/
> ProxyReverse / http://10.X.Y.Z/

> (IP addresses have been changed to protect identities)

> This allows me to connect through the proxy from the inside (rather
> useless).  When I try connecting from the outside, my browser hangs on
> "Connecting to 10.X.Y.Z" which leads me to believe that I'm being
> redirected to that IP address rather than proxied to it.

> Am I missing something?  Please be advised that I've never configured
> Apache in my life, so I'm kinda flying blind here.  Any help is greatly
> appreciated.  Also, if there's a more appropriate group for this
> question, please let me know

> Thanks,
> Ric

> PS - If your response could be copied to my email address, I'd greatly
> appreciate it.

 
 
 

Apache reverse proxy server on a DMZ

Post by Norman Tacket » Fri, 04 May 2001 15:32:01



> Hi all... first time posting...

> I've been charged with the responsibility of creating a reverse proxy
> server using Apache on Linux.  This would allow outside vendors to
> connect to one of our internal machines in our secure 10.*.*.* network.
>   The inside server is running IIS on NT (blech!).  Ideally, we would
> map the DNS name to the IP address on the Linux box (in the DMZ, visible
> to the outside through the firewall) and from there, the visitor would
> be redirected to the inside box.  Obviously, the visitor wouldn't
> connect directly, since it's on a 10.*.*.* network and it's behind the
> firewall.

> I've added this to the httpd.conf file...

> ProxyPass / http://10.X.Y.Z/
> ProxyReverse / http://10.X.Y.Z/

> (IP addresses have been changed to protect identities)

> This allows me to connect through the proxy from the inside (rather
> useless).  When I try connecting from the outside, my browser hangs on
> "Connecting to 10.X.Y.Z" which leads me to believe that I'm being
> redirected to that IP address rather than proxied to it.

> Am I missing something?  Please be advised that I've never configured
> Apache in my life, so I'm kinda flying blind here.  Any help is greatly
> appreciated.  Also, if there's a more appropriate group for this
> question, please let me know

> Thanks,
> Ric

> PS - If your response could be copied to my email address, I'd greatly
> appreciate it.

I think it is a routing issue. What is the default gateway? I bet it is on
the external
interface. You may need to add a route on the internal NIC to get it to
talk

something like

route add  -net 10.X.Y.0 netmask 255.255.255.0 gw 10.X.Y.1 eth0

Try telneting to the port 80 on the IIS box and see if you can get to it
at all.

 
 
 

Apache reverse proxy server on a DMZ

Post by Jonathan Voig » Thu, 10 May 2001 07:52:31



> Hi all... first time posting...

> I've been charged with the responsibility of creating a reverse proxy
> server using Apache on Linux.  This would allow outside vendors to
> connect to one of our internal machines in our secure 10.*.*.* network.
>   The inside server is running IIS on NT (blech!).  Ideally, we would
> map the DNS name to the IP address on the Linux box (in the DMZ, visible
> to the outside through the firewall) and from there, the visitor would
> be redirected to the inside box.  Obviously, the visitor wouldn't
> connect directly, since it's on a 10.*.*.* network and it's behind the
> firewall.

> I've added this to the httpd.conf file...

> ProxyPass / http://10.X.Y.Z/
> ProxyReverse / http://10.X.Y.Z/

> (IP addresses have been changed to protect identities)

> This allows me to connect through the proxy from the inside (rather
> useless).  When I try connecting from the outside, my browser hangs on
> "Connecting to 10.X.Y.Z" which leads me to believe that I'm being
> redirected to that IP address rather than proxied to it.

> Am I missing something?  Please be advised that I've never configured
> Apache in my life, so I'm kinda flying blind here.  Any help is greatly
> appreciated.  Also, if there's a more appropriate group for this
> question, please let me know

> Thanks,
> Ric

> PS - If your response could be copied to my email address, I'd greatly
> appreciate it.

you can most likely do this with a firewall as well...

I do...

--
Jonathan Voigt



www.voicomm.com - Linux/Unix Resources

 
 
 

1. WWW and PROXY auth when using Apache as authetifying reverse-proxy

Hello all.

I'm using Apache's latest version (1.3.14) and it seems I hit a wall someone
has met before me. Basically the problem is as follows: - I have a reverse
proxy that works just fine thanks to ProxyPass and ProxyPassReverse. Let's
call him "rproxy". He "hides" a http server, I'll call "server". - when I ask
for authentication on a resource located on "server" (using either Location
or Directory in the httpd.conf file of "rproxy"), "rproxy" sends a PROXY auth
to the client. I would expect a HTTP auth request... The user authentifies,
the "proxy" validates the credentials against the local database, and then
FORWARDS the auth request to the "server".

Problem is that I want the PROXY to authenticate the user, not the back-end
server. Is there a way to configure the "proxy" system so that the auth
request is not forwarded to the server?

I've tried <Directory>,  <Location (dirname)>, <Location (urlname)> with very
limited success...

Has someone managed to make this work?

Thanks in advance

Sent via Deja.com http://www.deja.com/
Before you buy.

2. Firewall/gateway

3. Apache Reverse Proxy to different servers

4. Masquerade Performance Question

5. Web and Mail Server in DMZ - Proxy Problem

6. BootX - does it REALLY boot Linux (entirely)?

7. Apache Reverse Proxy and SSL

8. dvidjp woes with pl14

9. Apache Reverse Proxy

10. Apache as a reverse proxy - problem with redirection

11. authenticated reverse-proxy with Apache

12. reverse proxy and url "translation" with apache - help !

13. Apache reverse proxy and authentication