drupal-php icon indicating copy to clipboard operation
drupal-php copied to clipboard

Is it possible to use openconnect vpn from within the container?

Open acrazyanimal opened this issue 6 years ago • 2 comments

I've been using the Wodby Drupal packages for a while now for local development. Typical setup is traefik, mariadb and php (also using portainer and mailhog) and am running docker on Ubuntu 16.04. I just ran into an issue of having to connect my drupal project to an external remote service that is on a private network. I tried installing and running openconnect on the php container, but even with sudo could not connect properly. Ran into this issue: "Failed to bind local tun device (TUNSETIFF): Operation not permitted".

I've googled for hours and tried varous things, but am at a loss as to how to get a vpn connection to work from within the php container. Specifically a Cisco anyconnect vpn connection.

Ever tried this?

acrazyanimal avatar Feb 16 '19 04:02 acrazyanimal

I did not try it but I'm pretty sure it's not an issue specific to this image and should be probably asked on stackoverflow instead

csandanov avatar Feb 27 '19 05:02 csandanov

I need exactly the same setup. A call from my docker php container to an API behind a VPN connection.

Any guidelines here for setting this up?

gertvdb avatar Aug 03 '21 13:08 gertvdb