Sending container traffic over different IPs, depending on the container

CheesyPete

New Member
Sep 14, 2020
12
3
3
24
Hello, I have been completely stuck on this problem for a few months now. Mostly because networking is such a foreign concept to me that I don't even know where to start with googling, what I have tried has not really solved the whole problem, so I apologise for a potentially misleading title, and for the basic language that will follow.

Now I have 3 'endpoints' I want to be ways in and out of various containers on my server:
  • My local network - things I don't want or need to be accessible outside the network:
    • Such as the proxmox host itself, PiHole, backup services for static PCs etc.
  • A static IP (I have myself a tiny VPS with a static IP) - things I want to be accessible from anywhere outside the network
    • Such as a jenkins instance, plex, bitwarden, MC servers, various web projects etc.
    • Ideally some of these ports would not be forwarded to this external IP, for instance a management client for the MC servers doesn't need that.
  • A randomly allocated IP (I have a protonVPN subscription - using the CLI I can change the location every so often with a cron job) - for traffic I don't want to be tracked or blocked
    • Such as a youtube-dl container that occasionally checks for new uploads and pulls them down.
    • I don't really need these to be accessible by the web, if that makes sense I don't want to access them outside my network, but I want them to show as different IPs every day or so

What would be brilliant but not required for everything is to have DNS and SSL for all the services accessable over a web client, but this is not vital and I have seen ways to do this with pfsense but that is only for local stuff.
Now I presume once I can access the second group (static VPS IP) from outside the network I could use cloudflare to give them DNS. As I would for example be hosting multiple services that want access to port 8080, which is fine when I access them locally but over 1 IP I know that cant happen so I would need to use a reverse proxy. but I would really like some guidance on where to put it, would it be on the VPS server?

Thank you for your help, if this has been asked before i would be happy to be pointed to it, but I am just so confused at this point as to where to even start really.

Thank you so much in advance.

:)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!