Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does a linux shell gitlab-runner access servers behind a vpn?

I've been experimenting with gitlab runners and noticed shell runners installed on linux systems sitting behind a VPNs can be accessed without any networking issues or regards to the firewall.

If I wanted to set up a kubernetes runner in the same environment, that involves adding a publicly accessible endpoint.

How does the gitlab runner get around my vpn and firewall when using the shell runner?

Note that my VPN/Firewall limits incoming traffic, but not outgoing. Is the gitlab-runner making requests out to github to get instructions on when to run pipelines?

like image 508
Alex Cohen Avatar asked Sep 18 '25 06:09

Alex Cohen


1 Answers

Is the gitlab-runner making requests out to github to get instructions on when to run pipelines?

Yes, the runners initiate the connection, not the GitLab instance. That's why runners can be behind a firewall/VPN/whatever. As long as the runner can connect to GitLab instance it works.

like image 87
1615903 Avatar answered Sep 19 '25 21:09

1615903