Which ports does Bitbucket Server listen on, and what are they used for?

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server と Data Center のみ - この記事は、サーバーおよびデータセンター プラットフォームのアトラシアン製品にのみ適用されます。

質問

You'd like to know which ports Bitbucket Server listens on, for instance so that you can configure a firewall in such a way that only ports required by Bitbucket Server are open.

回答

By default Bitbucket Server and Bitbucket Data Center opens a socket on the following ports and listens on them:

ポート番号目的Remarks
7990 (TCP)Standard HTTP port for Bitbucket ServerIf you have configured Bitbucket Server to listen on a different HTTP port (see Changing the port that Bitbucket Server listens on), then Bitbucket Server will listen on that port instead of 7990
7999 (TCP)Standard SSH port for Bitbucket ServerIf you have configured Bitbucket Server to use a different SSH port, then Bitbucket Server will listen on that port instead of 7999. If you have disabled SSH in Bitbucket Server, then Bitbucket Server will not listen on port 7999.
5701 (TCP/UDP)Hazelcast port for node-to-node cluster communication

This port needs to be accessible from all nodes in the cluster. If you are not using Bitbucket Data Center, the port does not need to be accessible from outside.

Note: This port should not be disabled, even on non-Data Center implementations. When not in use (for non-Data Center implementations or if hazelcast.network.multicast has been set to false in your bitbucket.properties file) Bitbucket intercepts any attempts to connect to that port and rejects those attempts. It is our recommendation for those not using clustering to instead control access to this port at a firewall level.

If you have configured Bitbucket Server to have additional connectors, Bitbucket Server will listen on the respective ports you have configured, and these need to opened in the firewall as well.

In addition, when using the Elasticsearch instance bundled with Bitbucket Server - the following default ports are opened and listened on:

ポート番号目的Remarks
7992 (TCP)Elasticsearch HTTP interface portThis port is primarily used to receive HTTP and REST API requests from Bitbucket Server. As requests to this port are being made from the same server, this port does not need to be accessible from outside.
7993 (TCP)Elasticsearch transport/node communication portThis port is used to connect Elasticsearch to a cluster and to enable node-to-node communication. This port cannot be blocked, as it will prevent Elasticsearch from starting - but this port does not need to be accessible from the outside, as the bundled Elasticsearch instance is not part of a cluster.

For Bitbucket Data Center we recommend you use a separate instance of Elasticsearch. Otherwise, multiple Elasticsearch instances on each node will form a cluster - which we do not support.

Last modified on Mar 18, 2019

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.