I need to connect to a client’s remote database on an Amazon EC2 instance. The client wants to use an IP whitelist and I understand that a fly does not offer stable outbound IPs. My question is:
Would it be possible to connect to the db using wireguard?
My thought would be to use fly wireguard create and share the resulting config with the client, but I may be misunderstanding how these connections work.
Forgive my ignorance on this topic and thanks for your help!
I’m trying to connect with wireguard the other way around. The wireguard gateway is running somehwere else I and I want connect to it from within fly rather than a bastion connecting to a fly gateway. I tried to run wg-quick up in the apps entrypoint and I am getting this error.
sudo: error while loading shared libraries: libsudo_util.so.0: cannot open shared object file: No such file or directory
Is it even possible to make a wireguard connection this way?
Yeah, it should be possible to setup Wireguard from VM to a gateway running somewhere else. The kernel we use for the virtual machines is built with Wireguard support enabled.
If so, why is sudo breaking here?
Something is wrong with the Docker image. Can you share your Dockerfile?
Thanks, @pavel. I’m actually using a heroku buildpack. Here is my fly.toml. I was getting a wg-quick: command not found so I tried installing it via the “fagiani/apt” buildpack . Maybe using a Dockerfile is a better approach?