mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-23 08:32:45 -05:00
IPv4 mapping doesn't work #1194
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nerdius on GitHub (Jan 17, 2022).
Subject of the issue
I'm using Podman and directly fetching the image from docker.io/vaultwarden/server:latest. I'm trying to deploy it using the following command:
podman run -d --userns=keep-id --name vaultwarden -e SIGNUPS_ALLOWED=false -e ROCKET_PORT=3020 -v /home/USERNAME/apps/vaultwarden/vw-data/:/data/:Z -p 3020:3020 vaultwarden/server:latestThe output indicates a successful deployment:
podman psindicates that it's running:But when I try to access localhost:3020, nothing loads. Furthermore, the output of
netstat -tulpn | grep 3020indicates that there's an issue with port mapping as only IPv6 gets mapped:I since I'm running it in a rootless environment, I tried to add a sysctl rule to enable IPv4 forwarding on the host system by following this tutorial, but to no avail. I also tried different ports and command line parameters, rebooting the server, and setting SELinux to permissive. Nothing worked and the result was identical.
Deployment environment
Steps to reproduce
podman run -d --userns=keep-id --name vaultwarden -e SIGNUPS_ALLOWED=false -e ROCKET_PORT=3020 -v /home/USERNAME/apps/vaultwarden/vw-data/:/data/:Z -p 3020:3020 vaultwarden/server:latestExpected behaviour
IPv4 port should be exposed and I should be able to connect to it.
Actual behaviour
IPv4 mapping doesn't work and you can't connect to it.
Troubleshooting data
N/A.