mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-12 01:44:06 -05:00
Bad Gateway when trying to access docker service with Proxmox #145
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 @tobiraak on GitHub (Mar 15, 2025).
I have a vps, setup everything as in the documentation stated and connected my NAS as a site successfully by installing newt on my proxmox debian vm. Now I have a service (deployed with docker compose) locally accessible on 192.168.178.104:9090 on that vm. Entering these values when creating a ressource will result in the Gateway timeout error. Do I have to configure anything in proxmox? Any help would be appreciated. Do I have to configure newt in the same compose file as my service and put them in a network?
Originally posted by @tobiraak in #302
@hhftechnology commented on GitHub (Mar 15, 2025):
Just an example.
This is a small snippet from my write up. this is how i handle newt.
Edit
/etc/netplan/00-installer-config.yaml:Apply with:
4. Setting Up Docker with Network Isolation
Install Docker and create isolated networks:
Implementing Newt in a Confined Environment
Newt will run in a Docker container, isolating it from the host system and only allowing it to communicate with specific application containers.
1. Setting Up Newt Container
Create a dedicated directory for Newt:
Create a
docker-compose.ymlfile:2. Getting Configuration from Pangolin
To obtain the Newt ID and secret, you need to:
docker-compose.ymlwith these values3. Starting and Securing Newt
Start the Newt container:
Check that it's running and connecting correctly:
You should see messages about establishing a connection to Pangolin and creating a WireGuard interface. If everything is working, the site status in Pangolin should change to "Online".
Connecting Exposed Applications
Now we'll set up the applications that should be exposed to the internet. We'll create a separate Docker Compose file for each application, ensuring they're isolated but accessible through Newt.
1. Example: Setting Up Nextcloud
Create directory:
Create
docker-compose.yml:Start Nextcloud:
thumb rule is newt should be on the same network as the services it wants to expose to pangolin on VPS.
@tobiraak commented on GitHub (Mar 16, 2025):
I'm sorry but I can't seem to follow your guide. Where do you specify the port? I also do not have a netplan directory.
Which IP address do you specify as a ressource in the pangolin dashboard? Thanks in advance!
@tobiraak commented on GitHub (Mar 17, 2025):
Update: This seems to be a problem with a proxmox VM. I am running a debian VM in proxmox and I can't seem to find out why it would fail. The IP of my vm is reachable in my network but seems to make problems since it is just a VM. Does anyone know if I need to configure the proxmox host in order to make it work?
@tobiraak commented on GitHub (Mar 17, 2025):
Another update: I have ufw enabled on my VM of course. Disabling it made it suddenly work. If I add the port of the service that I want to expose to the ufw rules, it is working. But this is not the intended behavior, since it is tunneling it anyway and I should not need to open any ports. So the question remains, do I need to update any proxmox network settings or enable any kind of port forwarding?
I have no clue why I need to open ports in the VM but if I use newt and pango with my raspberry, I don't have to open any ports at all.
@timmish commented on GitHub (May 19, 2025):
@tobiraak
did you solve this?
I have the same issue. When using UFW, I have to allow the port I am forwarding and tunneling with Pangolin - this should not be the case, but I don't now what to do.
@tobiraak commented on GitHub (May 19, 2025):
No I've not solved it, I have UFW disabled completely and it sucks since this issue was closed without beeing solved or explained.
@timmish commented on GitHub (May 20, 2025):
Yes 🥲
Did you switch to iptables or another firewall? No firewall is no solution for me I guess.
@tobiraak commented on GitHub (May 20, 2025):
Try the Firewall option from proxmox, this might work? I ditched this solution tbh because of this. Maybe I should ask this question on reddit.com/r/selfhosted