Replies: 2 comments
-
|
When using
The issue is likely that with host networking, you need to ensure: 1. Caddy binds to port 80 for ACME HTTP-01 challenge: 2. Verify Caddy is listening on host: ss -tlnp | grep -E ':(80|443)'3. Check firewall allows ports 80/443: sudo ufw status4. For fail2ban to see real IPs: If connection refused persists, check |
Beta Was this translation helpful? Give feedback.
-
|
Great response there. Much appreciated. Since posting I have solved my issue. Unfortunately I can't remember exactly what the issue and fix was. Apologies |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My current setup follows the guidelines for compose and I also utilize Duck DNS in my Caddyfile. It works great except for the fail2ban banning. Note: fail2ban is installed on the host, not running in a container.
The fail2ban only sees the IP of the router. Note: I have a port forward on my router to my local Vaultwarden compose. I have added the
header_up X-Real-IP {remote_host}but in the logs I see only my router IP when someone fails to login.Originally I thought this might be a SNAT (Source NAT) but I'm not an iptables whiz, so I'd like to try Docker host networking to see if it is a Docker networking issue.
I have added
network_mode: hostto both of my caddy and vaultwarden services but now my Vaultwarden can't be reached from the public IP of my router with my port forward.Here is my a relevant part of .env
Here is my docker-compose.yml
Here is my Caddyfile
When I connect to the router port forward, I get no logs from caddy or vaultwarden and connection refused in browser
Beta Was this translation helpful? Give feedback.
All reactions