👋 We've unified all of GitHub's product documentation in one place! Check out the content for REST API, GraphQL API, and Developers. Learn more on the GitHub blog.


Publicamos atualizações frequentes em nossa documentação, e a tradução desta página ainda pode estar em andamento. Para obter as informações mais recentes, acesse a documentação em inglês. Se houver problemas com a tradução desta página, entre em contato conosco.

Managing allowed IP addresses for your organization

You can restrict access to your organization's assets by configuring a list of IP addresses that are allowed to connect.

Endereços IP permitidos estão disponíveis com GitHub Enterprise Cloud. Para obter mais informações, consulte os "Produtos GitHub".

Neste artigo

Você conseguiu encontrar o que estava procurando?

Organization owners can manage allowed IP addresses for an organization.

Sobre endereços IP permitidos

You can restrict access to organization assets by configuring an allow list for specific IP addresses. For example, you can allow access from only the IP address of your office network. The allow list for IP addresses will block access via the web, API, and Git from any IP addresses that are not on the allow list.

You can approve access for a single IP address, or a range of addresses, using CIDR notation. For more information, see "CIDR notation" on Wikipedia.

To enforce the IP allow list, you must first add IP addresses to the list, then enable the IP allow list. É preciso adicionar o endereço IP atual ou um intervalo correspondente antes de habilitar a lista de permissões de IP.

You can also configure allowed IP addresses for the organizations in an enterprise account. For more information, see "Enforcing security settings in your enterprise account."

Adicionar endereços IP permitidos

  1. In the top right corner of GitHub, click your profile photo, then click Your profile.
    Profile photo
  2. On the left side of your profile page, under "Organizations", click the icon for your organization.
    organization icons
  3. Under your organization name, click Settings.
    Organization settings button
  4. In the organization settings sidebar, click Security.
    Security settings
  5. Under "IP Address", type an IP address, or range of addresses, in CIDR notation.
    Campo-chave para adicionar endereço IP
  6. Under "Description", type a description of the allowed IP address or range.
    Campo-chave para adicionar nome de endereço IP
  7. Clique em Add (Adicionar).
    Botão para adicionar endereço IP permitido

Habilitar endereços IP permitidos

  1. In the top right corner of GitHub, click your profile photo, then click Your profile.
    Profile photo
  2. On the left side of your profile page, under "Organizations", click the icon for your organization.
    organization icons
  3. Under your organization name, click Settings.
    Organization settings button
  4. In the organization settings sidebar, click Security.
    Security settings
  5. Em "IP allow list" (Lista de permissões IP), selecione Enable IP allow list (Habilitar lista de permissões IP).
    Caixa de seleção para permitir endereços IP
  6. Clique em Save (Salvar).

Editar endereços IP permitidos

  1. In the top right corner of GitHub, click your profile photo, then click Your profile.
    Profile photo
  2. On the left side of your profile page, under "Organizations", click the icon for your organization.
    organization icons
  3. Under your organization name, click Settings.
    Organization settings button
  4. In the organization settings sidebar, click Security.
    Security settings
  5. Under "IP allow list", to the right of the entry you want to edit, click Edit.
    Botão para editar endereço IP permitido
  6. Type an IP address, or range of addresses, in CIDR notation.
    Campo-chave para adicionar endereço IP
  7. Type a description of the allowed IP address or range.
    Campo-chave para adicionar nome de endereço IP
  8. Clique em Update (Atualizar).

Excluir endereços IP permitidos

  1. In the top right corner of GitHub, click your profile photo, then click Your profile.
    Profile photo
  2. On the left side of your profile page, under "Organizations", click the icon for your organization.
    organization icons
  3. Under your organization name, click Settings.
    Organization settings button
  4. In the organization settings sidebar, click Security.
    Security settings
  5. Under "IP allow list", to the right of the entry you want to delete, click Delete.
    Botão para excluir endereço IP permitido
  6. To permanently delete the entry, click Yes, delete this IP allow list entry.
    Botão para excluir permanentemente a entrada da lista de permissões de IP

Using GitHub Actions with an IP allow list

Warning: If you use an IP allow list and would also like to use GitHub Actions, you must use self-hosted runners. For more information, see "Hosting your own runners."

To allow your self-hosted runners to communicate with GitHub, add the IP address or IP address range of your self-hosted runners to the IP allow list. For more information, see "Adding an allowed IP address."

Você conseguiu encontrar o que estava procurando?

Pergunte a uma pessoa

Não consegue encontrar o que procura?

Entrar em contato