wodby / drupal-php

PHP docker container image for Drupal
https://wodby.com/stacks/drupal
MIT License
61 stars 79 forks source link

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

Open acrazyanimal opened 5 years ago

acrazyanimal commented 5 years ago

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?

csandanov commented 5 years ago

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

gertvdb commented 3 years ago

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?