# Setting up VPN L2pt connection before jobs

**URL:** <https://discuss.circleci.com/t/setting-up-vpn-l2pt-connection-before-jobs/40518>\
**Category:** Orbs\
**Tags:** vpn\
**Created:** [July 1, 2021, 9:30am UTC](https://discuss.circleci.com/t/setting-up-vpn-l2pt-connection-before-jobs/40518 "2021-07-01T09:30:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vladMocan](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/vladmocan/32/27715_2.png) [@vladMocan](https://discuss.circleci.com/u/vladMocan)\
**Post date:** [July 1, 2021, 9:30am UTC](https://discuss.circleci.com/t/setting-up-vpn-l2pt-connection-before-jobs/40518/1 "2021-07-01T09:30:02Z")

</div>

Hello, I’m trying to set up a VPN connection to bypass a firewall and run some cypress tests after.

I’m trying to use this orb kin-l2tp-vpn: kindred/kin-l2tp-vpn@1.2.0 but I’m getting` strongswan: unrecognized service` not sure what I’m doing wrong here is my hole config file

```auto
version: 2.1
orbs:
  kin-l2tp-vpn: kindred/kin-l2tp-vpn@1.2.0

jobs:
  example-job:
    docker:
      # replace with your preferred image
      - image: cimg/base:stable
    steps:
      - run: sudo mkdir /var/run/xl2tpd; sudo touch /var/run/xl2tpd/l2tp-control
      - kin-l2tp-vpn/connect
workflows:
  example-workflow:
    jobs:
      - example-job

```

---

<div class="post-metadata">

**Author:** ![yannCI](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/yannci/32/24866_2.png) [@yannCI](https://discuss.circleci.com/u/yannCI)\
**Post date:** [July 5, 2021, 3:29pm UTC](https://discuss.circleci.com/t/setting-up-vpn-l2pt-connection-before-jobs/40518/2 "2021-07-05T15:29:48Z")

</div>

Hi @vladMocan, and welcome to the CircleCI Discuss community!

I suspect the issue you’re facing stems from the fact that you’re using a Docker container to tun the build.  
CircleCi uses unprivileged LXC containers; this implies restrictions on the type of operations that can be performed, and I’m assuming creating a service is one of the operations that is restricted.

I was able to reproduce the error using the same executor as you. However, I can confirm that **the `strongswan` service is properly created and available when using the [`machine` executor](https://circleci.com/docs/2.0/executor-types/#using-machine)**.

Let me know if this helps.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [August 9, 2021, 12:46am UTC](https://discuss.circleci.com/t/setting-up-vpn-l2pt-connection-before-jobs/40518/3 "2021-08-09T00:46:41Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
