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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

188 views 20 8
Join discussion

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