English 中文(简体)
内部WCF服务,公众面对服务器安全
原标题:Internal WCF Service on a public facing server security

我需要主持一个WCF服务,让客户在面对网络服务器的公众面前进入内部商业系统。 显然,我必须保证这一点,让外部世界的人甚至不知道服务的存在,更不用说能够调用方法并访问其披露的数据。

总的想法是,公众面对的同一台机器上的网站会呼叫周转基金服务,然后周转基金服务会向其提供所需的数据.。

公共面对网站网站 & lt;- & gt; WCF Service & lt;- gt; 商业系统/数据库

所以我需要了解如何确保这项服务,

我当时的想法是...

  • IIS filtering so that the IIS Site hosting the WCF service will only accept requests from a certain IP address.
  • Obscure port that will not be allowed through the public facing firewall.
  • Protocol such as NetTCP or NamedPipes

但实际的 WCCF 安全设置呢? 因为公众视线网站和服务都在同一台机器上, Windows 验证作为选项?

  • 服务客户端和服务是否应该只使用 Windows 验证?

  • 我是否需要具体的用户账户,而不是网络服务?如果网站在网络服务下运行,这将自动认证服务吗?

我的目标是,外部世界的人不应该知道服务的存在,或者不能获得服务。

提前感谢。

技术环境是:IIS7、.Net4和WCF4。

问题回答

我建议您创建一个 http handler.ashx 网站处理器, 并以此作为客户请求的终点。

如果您使用 asp.net, 您可以使用简单的表格验证和从请求信头获取用户名和密码来验证请求, 从而保证它的安全 。

然后执行对您的业务网络服务的任何请求,这些请求也由您的表格认证加以保障。

干杯 干杯





相关问题
Session Management with Windows Authentication

In an ASP.NET web app, using Integrated Windows Authentication, is the session tied to the windows identity? In other words, if I login (using IWA) to the app, and the app stores some "stuff" in my ...

Using Elmah with Cassini

Does anyone know if I can use Elmah with Visual Studio build-in web server(aka Cassini)? I get it working easily on IIS, but using same configuration, it doesn t work with Cassini. When I requested ...

Setting hostname in IIS, include www?

I want to set the hostname for a website I m adding in IIS 7, however do I include the www in the hostname or not? because I want both www.mysite.com and mysite.com both to point to mysite on the ...

inetpub versus any other folder

I ve run websites out of inetpub, as well as from folders just residing on the C: drive. I wonder, are there any definitive advantages to running websites out of inetputwwwroot?

IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

热门标签