Hello, you bound your port to the localhost interface of your host, so other computers in the network are not *supposed* to have access to the port you exported from the container to your host. So, you either have to put in your network IP instead of 127.0.0.1 or just skip the IP completely and then the ports are accessible via the network. Or did I miss the point here? Greetings, Michael --------------------------------------- On Fri, 27 Mar 2020, Daniel Walsh wrote:
Date: Fri, 27 Mar 2020 12:17:23 -0400 From: Daniel Walsh <dwalsh@redhat.com> To: podman@lists.podman.io Subject: [Podman] Re: Making progress running MTA container - Q re ports
On 3/26/20 23:04, Philip Rhoades wrote:
People,
Starting my MTA with:
podman run --rm -d -h pricom.com.au \ -v /home:/home \ -p 127.0.0.1:25:25 \ -p 127.0.0.1:143:143 \ -p 127.0.0.1:587:587 \ -p 127.0.0.1:993:993 \ -p 127.0.0.1:995:995 \ --name indimail \ `podman images | grep indimail | awk '{ print $3 }'` \ indimail
- works happily and while mail delivery is working fine within the container, the ports are not accessible from other computers ie:
I have opened ports on the host using iptables and when using nmap on localhost get:
Starting Nmap 7.80 ( https://nmap.org ) at 2020-03-27 13:47 AEDT Nmap scan report for localhost (127.0.0.1) Host is up (0.0000050s latency). rDNS record for 127.0.0.1: localhost.localdomain Not shown: 993 closed ports PORT STATE SERVICE 22/tcp open ssh 25/tcp filtered smtp 143/tcp filtered imap 587/tcp filtered submission 631/tcp open ipp 993/tcp filtered imaps 995/tcp filtered pop3s
- which doesn't look promising and from another machine on the LAN I get:
Starting Nmap 7.80 ( https://nmap.org ) at 2020-03-27 13:44 AEDT Nmap scan report for phil (192.168.1.20) Host is up (0.00019s latency). rDNS record for 192.168.1.20: phil.pricom.com.au Not shown: 994 filtered ports PORT STATE SERVICE 22/tcp open ssh 25/tcp closed smtp 143/tcp closed imap 587/tcp closed submission 993/tcp closed imaps 995/tcp closed pop3s
- so I must still missing something about linking container ports to the same host ports . .
Suggestions?
Thanks,
Phil.
You have to open the ports in your firewall. Podman will NOT do this automatically. Management of the external firewall, is not something we believe the container runtime should be doing. _______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io