Firewall rules required to access BitBucket

Hi

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 bitbucket.org. 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 bitbucket.org. Please email support@bitbucket.org 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 bitbucket.org and api.bitbucket.org IP addresses. Those can change, but currently this is accurate:

bitbucket.org has address 207.223.240.181
bitbucket.org has address 207.223.240.182
api.bitbucket.org has address 207.223.240.184
And if your builds use SSH you'll need to allow egress to port 22.
Regards,
Charles

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 207.223.240.181
bitbucket.orghas address 207.223.240.182
api.bitbucket.orghas address 207.223.240.184
can you please help what might be the problem.
I have valid account in bitbucket with three empty repositories now.
Thanks
Deepak

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

457 views 5 9
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