Slack webhook - 我应该打开哪些 IP? [英] Slack webhook - Which IPs should I open?

查看:29
本文介绍了Slack webhook - 我应该打开哪些 IP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们希望将 Slack Webhook(传出 Webhook)与内部 Web 服务一起使用.

我们公司位于防火墙之后,因此必须将外部连接列入白名单.

Slack 似乎有多个地址,它将从中发送 API 请求,而且似乎没有记录.

我们应该在防火墙(白名单)中打开哪些 IP/端口,以允许 slack 的传出 Webhook 连接到我们的内部 Web 服务?

解决方案

我知道这是一个老问题,但我自己也在寻找类似的东西.我认为那里的一个答案并没有真正理解这个问题.

ngrok 可以在某种程度上解决这里的问题,但不是我们所要求的.

在公司的防火墙上将端口从外部映射到内部是微不足道的.我认为发起者问的是在调用我们的服务时会使用哪些 IP 地址".这样你就可以将服务防火墙关闭,只允许来自这些 IP 的访问(因此是整个白名单).

据我所知,简单的答案是他们基本上使用 lambda 和 AWS 中的各种来源,这使得这相当困难

We want to use Slack Webhook (Outgoing Webhook) with an internal web service.

Our company is behind a firewall, so outside connections must be whitelisted.

It appears that Slack has multiple addresses it will send the API request from, and they don't seem to be documented.

Which IPs/Ports should we open in the firewall (whitelist) in order to allow slack's outgoing webhooks to connect to our internal web service?

解决方案

I know this is an old question, but I was looking for something like this myself. I think the one answer thats there doesnt really understand the question as such.

ngrok could sort-of solve an issue here, but its not quite what was asked.

Mapping ports from external to internal on a firewall that would be at a company is trivial. What I think the originator was asking was "what IP addresses do slack use when calling our service" so that you can firewall the service off to only allow access from those IP's (hence the whole white listing thing).

Simple answer as far as i can see is they are basically using lambda and various sources within AWS which makes that rather hard

这篇关于Slack webhook - 我应该打开哪些 IP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆