0

我正在将 sage pay 支付网关集成到我的 Asp.net MVC 4 网站,该网站目前在azure 应用程序服务上运行。所以我需要在我的azure 应用服务中打开以上端口以获得Sagepay的响应。这是他们要求做的。

"Please ensure that all of the following IP addresses are allowed within your Server or Firewall: 

For outbound traffic to our gateway:
195.170.169.9 – live.sagepay.com
195.170.169.8 – test.sagepay.com
For inbound traffic you only need to whitelist IPs if you are using SERVER as this is the only solution that initiates call backs. You don’t need to apply this for our FORM and DIRECT integrations. The IPs from which we call back are:
195.170.169.14 
195.170.169.18 
195.170.169.15 
The Subnet mask used by Sage Pay is 255.255.255.000
Please ensure that your firewalls allow outbound Port 443 (HTTPS only!) and inbound Ports 443 (and optionally 80 HTTP) access in order to communicate with our servers (on Simulator/Test/Live).
There is however always scope for this to change depending on how we a utilising our data centres servers. Sage Pay own the entire 195.170.169.0/255 range (256 IP’s). If you are happy to allow this range then this automatically accommodates any future changes." 
4

2 回答 2

1

可能这会有所帮助,请尝试在您的应用程序的 web.config 中添加它。

<system.webServer>
  <security>
    <ipSecurity allowUnlisted="false">
      <add ipAddress="123.123.123.123" allowed="true"subnetMAst="255.255.0.11"/>
    </ipSecurity>
  </security>
</system.webServer>
于 2016-08-04T15:31:00.347 回答
1

Azure Web Apps infra 使用不同的 IP 进行入站和出站通信。默认情况下,端口 80 和 443 在 Azure Web Apps 基础结构上是打开的。默认情况下,它也不限制来自特定 IP 的入站请求,除非您在 web.config 中配置了 IP 限制。

如果您使用 ASE,则必须配置入站和出站规则。

请参阅这篇文章,了解如何执行此操作:

控制应用服务环境的入站流量

于 2016-08-31T17:59:35.857 回答