Setting up VPN L2pt connection before jobs

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

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

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.

Let me know if this helps.