Hi Youri,
I've created a rootful pod with two containers to run
nginx-proxy-
manager (
https://nginxproxymanager.com/) and be able to publish low
ports (80 and 443).
You don't need to use rootfull. You can publish to 8080 and 8443 and then use
iptables/nftables PREROUTING to send traffic into the container/pod.
Example for nftables from:
https://lists.podman.io/archives/list/podman@lists.podman.io/thread/W6MCY...
$ sudo nft add table ip nat
$ sudo nft add chain ip nat nat-prerouting "{ type nat hook prerouting priority
-100;
policy accept; }"
$ sudo nft add chain ip nat nat-postrouting "{ type nat hook postrouting priority
100; policy accept; }"
$ sudo nft add rule ip nat nat-prerouting iifname "eth0" tcp dport { 80, 8080,
8081 } counter dnat 10.11.22.50
$ sudo nft add rule ip nat nat-postrouting oifname "eth0" counter masquerade
Kind regards,
Rudolf Vesely
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, March 1, 2021 11:28 AM, Youri LACAN-BARTLEY <odnden(a)gmail.com> wrote:
Hi all!
I'm scratching my head a little bit about how to set up my containers especially when
it comes to networking.
I've created a rootful pod with two containers to run nginx-proxy-manager
(
https://nginxproxymanager.com/) and be able to publish low ports (80 and 443).
However, I now wish to run a variety of services that can be hosted in rootless
containers.
My main issue is how to have a reliable way of declaring these various rootless
containers in nginx-proxy-manager without having to rely on static IPs. I know I can't
use the dnsname plugin since the rootful and rootless containers won't be sharing the
same podman network.
The only workaround I've found so far is to publish high ports for my rootless
containers and accessing them from within the nginx-proxy-manager rootful container using
the default gateway of podman network (10.88.0.1) and the published high port in question.
Is this the right way to go ?
Thanks!
Podman mailing list -- podman(a)lists.podman.io
To unsubscribe send an email to podman-leave(a)lists.podman.io