If been trying to setup webhooks to automate jenkins builds since few ‘days’ (not continuously of course) but miserably failed.
Environment: Debian 10.11
My jenkins server resides behind an nginx reverse proxy (a 2nd physical host) which serves as the SSL frontend so it’s used to do a portforwarding of the SSL port towards default 8080 port. On the nginx server/reverse proxy I have a firewall setup which blocks everything except for IP’s that I allow.
If I disable firewall on the nginx server everything works as expected.
Firewall enabled: “Failed to connect to host” as result in the github webhooks recent deliveries.
So the missing link are the correct firewall settings imho.
I have found the meta page (https://api.github.com/meta) and added the subnets from the “hooks” section with no limitation on port or protocol.
The incoming address (with the firewall off) is 220.127.116.11 which is part of the 18.104.22.168/22 as found on the meta page. I have added that address explicitly in the firewall rules, but to no avail.
EDIT added ufw status numbered ouput:
>  Anywhere ALLOW IN 22.214.171.124/22 >  Anywhere ALLOW IN 126.96.36.199/22 >  Anywhere ALLOW IN 188.8.131.52/20 >  Anywhere ALLOW IN 184.108.40.206/20 >  Anywhere ALLOW IN 220.127.116.11
I am most confident that someone here has already put in place the same setup, so if he/she can shed some light or give a hint I would be most grateful.
Yes read about things like smee.io but I don’t want to add another hop for something this trivial.