IP allowlist
- Tier: Free, Premium, Ultimate
- Offering: GitLab Self-Managed
GitLab provides some monitoring endpoints that provide health check information when probed.
To control access to those endpoints through IP allowlisting, you can add single hosts or use IP ranges:
Open
/etc/gitlab/gitlab.rb
and add or uncomment the following:gitlab_rails['monitoring_whitelist'] = ['127.0.0.0/8', '192.168.0.1']
Save the file and reconfigure GitLab for the changes to take effect.
You can set the required IPs under the gitlab.webservice.monitoring.ipWhitelist
key. For example:
gitlab:
webservice:
monitoring:
# Monitoring IP allowlist
ipWhitelist:
- 0.0.0.0/0 # Default
Edit
config/gitlab.yml
:monitoring: # by default only local IPs are allowed to access monitoring resources ip_whitelist: - 127.0.0.0/8 - 192.168.0.1
Save the file and restart GitLab for the changes to take effect.
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support