简体   繁体   English

如何在 IPSec 中启用 WCF net.tcp?

[英]How to enable WCF net.tcp in IPSec?

I'm trying to connect from a web app to another web app using the WCF.NET NET-TCP protocol.我正在尝试使用 WCF.NET NET-TCP 协议从 web 应用程序连接到另一个 web 应用程序。 This net.tcp protocol is enabled in IIS and is using the port TCP 808 in my case.这个 net.tcp 协议在 IIS 中启用,在我的例子中使用端口 TCP 808。 I've configured IP Filter in the server, but it blocks the connection between both applications unless I completely disable IP Filter.我已经在服务器中配置了 IP 过滤器,但它会阻止两个应用程序之间的连接,除非我完全禁用 IP 过滤器。

This is the rule I've tried to add, and which doesn't work:这是我尝试添加的规则,但它不起作用:

Source address: Any IP Address
Destination address: My IP Address
Protocol: 6 (TCP)
From Port: Any port
To Port: 808
Action: Permit

Using TCPView, when the connection is blocked shows:使用 TCPView,当连接被阻塞时显示:

Protocol   Local Address       Remote Address    Status
TCP        server.com:64706    server.com:808    SYN_SENT

How do I permit this connections?我如何允许这种连接? Thanks!谢谢!

I've found the solution.我找到了解决方案。

If Any IP -> My IP is the ingoing rule, then I had to add the outgoing rule too;如果任何 IP -> 我的 IP 是传入规则,那么我也必须添加传出规则; which would be My IP -> Any IP.这将是我的 IP -> 任何 IP。

Details:细节:

Source address: My IP Address
Destination address: Any IP Address
Protocol: 6 (TCP)
From Port: Any port
To Port: 808
Action: Permit

Hope this helps.希望这可以帮助。

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

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