I'm trying to integrate an internal GitLab installation with a Slack incoming webhook but I have a problem, the machine where GitLab can only access other machines in the same network. I have VM which is in that same network and has external access.
The Slack webhook is a URL like this:
https://hooks.slack.com/services/T18QMD0NM/C09PY5XKO/52lDzmkoxL51p9NLRqxQ9Kq2
But since I cannot use that in GitLab, I've configured the Slack service on GitLab to make requests to the following URL instead:
https://192.168.1.220:3128/services/T18QMD0NM/C09PY5XKO/52lDzmkoxL51p9NLRqxQ9Kq2
192.168.1.220
is the VM IP address and 3128
is where Squid is listening.
How do I use Squid to forward all incoming requests to hooks.slack.com
?
P.S: I have a clean Squid installation, didn't change any setting at all.