I'm still experimenting with #podman #rootless and can't find how to allow containers/pod to access #localhost

Context: one pod with 2 #containers, one needs access to localhost. Podman is 5.4 with pasta networking.
I tried adding "-T" or "host-gateway" options to pasta network on the pod but still no way.
Can't to find a single complete article on how to manage networking on pods, a lot of different information

Has anyone a solution to this problem? Is it simply possible?

#sysadmin #linux

Running the pod with --network=pasta:--map-gw, inside my webapp container:
- nc -zv host.containers.internal <port> appears open
- but the webapp itself can't access the port

Not sure how to understand this. Nc indicates network connectivity

looking at the e-mail server logs, I see connections but also "lost connection after CONNECT", so network is OK, the problem is between the webapp and the SMTP server: auth or something else.
Great, let's debug this