Firewall rules required to access BitBucket


We're trying to use a locally hosted instance of Bamboo with BitBucket. When I attempt to configure Bamboo to connect to BitBucket & load a list of repositories I get this error:

Failed to load data from Bitbucket.[500 Server Error]

We have opened up HTTP & HTTPS from the Bamboo server to Other than that the Bamboo server does not have any access to the internet. I believe it still has something to do with our firewall rules because I installed Bamboo on a PC at home and configured it the same as the one at work and it was able to connect to BitBucket with no problems.

I’ve searched for specification on what firewall rules are required but I’ve not been able to find anything. Is someone able to assist?

1 answer

1 accepted

Hi Alex,

A http 500 error would indicate your Bamboo instance can access Please email and provide some more information, such as the repository involved, and we might be able to look up the internal error.

Also, to answer your original question -- at a minimum you should open ports 80 and 443 to the and IP addresses. Those can change, but currently this is accurate: has address has address has address
And if your builds use SSH you'll need to allow egress to port 22.

Thanks Charles.

Hi Charles,

Currently I am also facing the same problem though I have opened port 80,443 in bamboo server to allow bitbucket. Also I have added the below host names and IP in host key file as the bamboo is running in windows servrer.

bitbucket.orghas address
bitbucket.orghas address
api.bitbucket.orghas address
can you please help what might be the problem.
I have valid account in bitbucket with three empty repositories now.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

274 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you