Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Andy259

#1
Community,

New user here well newish, so a bit of background:

For the last couple of years I've been running Plesk(webserver) on a homebased server, I then discovered Proxmox and Docker (I can run docker in Plesk, but I would much rather have a separate server, so I installed Proxmox on another machine, then came the inevitable port clashes etc, so I got a second IP that was a month ago, I got another machine and installed Opnsense, so here I am trying to figure out HOW to get to the docker containers from OUTSIDE my network i.e point services i.e the ARRS to a domain name.

Here's my setup:

ROUTER OPNSENSE (PUBLIC IP's 194.###.###.37 & 194.###.###.38) The first IP Is the first WAN IP and the one that is setup
during opnsense wizard, the second has been added as virtual IP
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

SERVER 1 PLESK - 194.###.###.37 >> 192.168.1.109 (via nat 1:1)

ALL WORKING WELL AND AS IT SHOULD.(just used this as an example as I'm sure 1:1 is setup correctly and this confirms)

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This is the confusing bit i'll be as clear as possible.

SERVER 2 PROXMOX - 194.###.###.38 >> 192.168.1.112

WORKS CORRECTLY WITH 1:1 NAT AS LONG AS THE BELOW 1:1 NAT DOESN'T EXIST

PROXMOX CONTAINER WITH DOCKER 194.###.###.38 >> 192.168.1.115

So in essence if I delete the Proxmox rules then Portainer is accesible through 194.###.###.38:9000 and also via a url.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Some additional info, I followed a couple of tutorials which I linked below

The first is to install docker, portainer and nginx proxy manager.

https://wiki.opensourceisawesome.co...er-docker-compose-and-more-in-under-5-minutes

This second one basically explains nginx proxy manager (however, this video is on the assumption you are either on a bare metal server with docker installed directly on Ubuntu OR you are using a vps from digital ocean and the like (so I followed the directions for this as it matched my use case more closely(ish) so using this method I CAN get to those services on my public IP (portainer, nginx proxy manager) but ONLY if I disable the portforward for proxmox which is then not accessible via the public ip, I'm missing something simple and im sure i saw a vid on exactly how t do this but can't find it there's plenty on installing docker in a proxmox container or vm but then they dump you and don't tell you how to reach the services from the outside world.

Video about nginx etc which i followed and got me to the point of accessing the docker containers.

https://www.youtube.com/watch?v=cjJVmAI1Do4

Please bear in my mind I am new to proxmox, opnsense and docker so please be fairly specific in replies and if you can tag tutorials that would be great.