# Connect to Open VPN during Gitlab Pipeline

DevFeed: [Connect to Open VPN during Gitlab Pipeline](<https://devfeed.tech/articles/connect-to-open-vpn-during-gitlab-pipeline-25555.md>)

Original publisher: [Read original article](<https://www.marcogomiero.com/posts/2021/gitlab-pipeline-vpn/>)

Author: Marco Gomiero

Published: 2021-06-28T00:00:00Z

Content type: tutorial

Language: en

Sources: [Posts on Marco Gomiero](<https://devfeed.tech/sources/posts-on-marco-gomiero.md>)

Topics: [GitLab](<https://devfeed.tech/topics/gitlab.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Virtual Private Network](<https://devfeed.tech/topics/vpn.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>)

Tags: [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [gitlab](<https://devfeed.tech/tags/gitlab.md>), [gitlab-ci](<https://devfeed.tech/tags/gitlab-ci.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [secrets](<https://devfeed.tech/tags/secrets.md>), [server](<https://devfeed.tech/tags/server.md>), [vpn](<https://devfeed.tech/tags/vpn.md>)

## AI overview

This tutorial explains how to connect to an OpenVPN service from a GitLab CI/CD pipeline. It describes configuring secret variables, installing dependencies, establishing the VPN connection, checking connectivity, and allowing the pipeline to download dependencies from a private Maven repository behind the VPN.

## Source excerpt

Gitlab CI/CD offers the possibility to create a pipeline, which runs when something changes in the repository. A pipeline consists of one or more stages that run in order and in these stages, for example, it is possible to build the project, run the tests, create the artifacts, etc. For more information about Gitlab CI/CD, I suggest you look over the documentation. These out-of-the-box solutions really simplify the work to be done to have a CI up and running. For example, this is the configuration file (a file called .gitlab-ci.yml placed at the repository's root) needed for running all the tests of a Kotlin project.