简体   繁体   English

通过 IIS6/7 上的 DMZ 传递 Web 服务请求

[英]Passing webservice request through DMZ on IIS6/7

My clients are making webservice requests to an asp.net webservice from the internet to a webserver in my corporate DMZ.我的客户正在从 Internet 向我公司 DMZ 中的网络服务器发出对 asp.net 网络服务的网络服务请求。 On that webserver is a 'proxy' webservice application that takes the requests, and directs them through the firewall to an internal webservice server which processes the request:在该网络服务器上是一个“代理”网络服务应用程序,它接受请求,并将它们通过防火墙引导到处理请求的内部网络服务服务器:

             |                     |
internet --> | <-- Web server -->  |  <--> Webservice Server
             |                     |
  Public               DMZ        FW    Internal Network

While this approach works generally well, it does have a few drawbacks.虽然这种方法通常效果很好,但它确实有一些缺点。 Both the actual webservice and proxy webservices must remain in perfect sync.实际的 Web 服务和代理 Web 服务都必须保持完美同步。 There's also two potential points of failure which can make tracing, logging, and troubleshooting a bit trickier.还有两个潜在的故障点会使跟踪、日志记录和故障排除变得有点棘手。

What I'd like to do is to allow IIS6 or 7 to take the requests to a given URL, and automatically redirect them to the internal webservice server without any sort of webservice having to be run on the public web server.我想做的是允许 IIS6 或 7 将请求发送到给定的 URL,并自动将它们重定向到内部 Web 服务服务器,而无需在公共 web 服务器上运行任何类型的 Web 服务。

I've tried to use virtual directories to redirect to a URL, but that sends a redirection back to the client, which would cause them to try to access the internal server by name from the public internet, which obviously won't fly.我尝试使用虚拟目录重定向到 URL,但这会将重定向发送回客户端,这将导致他们尝试从公共互联网按名称访问内部服务器,这显然不会飞。

Any other ideas would be appreciated.任何其他想法将不胜感激。

Thanks谢谢

Brian,布赖恩,

What you want to do is called a "reverse proxy" and it is possible with IIS7.您想要做的称为“反向代理”,并且可以使用 IIS7。 I've done it recently and it works very well thus far.我最近做过,到目前为止效果很好。 Here is the link I used to guide the process of setting it up.这是我用来指导设置过程的链接。

http://learn.iis.net/page.aspx/659/reverse-proxy-with-url-rewrite-v2-and-application-request-routing/ http://learn.iis.net/page.aspx/659/reverse-proxy-with-url-rewrite-v2-and-application-request-routing/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM