Allowing Outbound Requests not allowing certain ranges!

Can not install Maven dependencies as Gitlab Dependency Proxy.

We are using Gitlab with single node (v.17.11.1); two Geo instances behind a corporate proxy and runners for our CI/CD Pipelines. In our case, We have a proxy that falls in range 192.168.0.0/24. We use Gitlab dependency proxy feature to pull our packages for a maven project on Gitlab.

In the pipeline logs, first our gitlab instance’s package repo appears as follows,

  • https://gitlab..com/api/v4/projects/7/dependency_proxy/packages/maven

then, we check Workhorse logs;

  • gitlab-ctl tail gitlab-workhorse | grep -i apache

this throws,

"error":"Get \"https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/3.4.1/spring-boot-starter-parent-3.4.1.pom\": proxyconnect tcp: dial tcp 192.168:<our_proxy_address> requests to the private network are not allowed"

Our build step stuck here! We are cancelling it manually at this step.

After some search, we ended up in Network settings tab as it is stated in documentation here.

But this also did not solve our problem. The same error logs follow.

We have already checked proxy connections between servers and our proxy; proxy and central repo.

We believe our problem occurs because of some Gitlab configurations; either on UI or in gitlab.rb file.

Do you have any solutions?