Skip to content

Repository files navigation

Setup VPN connection in a GitHUb Actions workflow

This action sets up a VPN connection in a GitHub Actions workflow.

Note

  • This action is only supported on Linux runners.
  • This is designed to work with our Unifi VPN. Other VPNs may not work.

Example setup:

- uses: reload/vpn-action@main
  with:
    server: ${{ vars.RELOAD_HQ_IP }}
    psk: ${{ secrets.RELOAD_VPN_PSK }}
    username: ${{ vars.RELOAD_VPN_USERNAME }}
    password: ${{ secrets.RELOAD_VPN_PASSWORD }}
    route: 94.23.123.122 # platform.sh FR-3 pr sites

The IKE/ESP cipher suites proposed to the VPN server can be overridden with the optional ike and esp inputs (comma-separated strongswan suites). The defaults match our Unifi Dream Machine Pro gateway.

About

Setup VPN connection in a GitHUb Actions workflow

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

2 watching

Forks

Used by

Contributors

Languages