-
| I'm running Colima on macOS. I have a docker container I'm running with  I tried setting  Am I missing something? | 
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
| Can you share the output of  | 
Beta Was this translation helpful? Give feedback.
-
| here's  And here's an nmap scan of that host showing port 25 open externally:  | 
Beta Was this translation helpful? Give feedback.
-
| Hi, I just wondered if there's any advice here? Is this a known issue or a configuration mistake on my end? I have containers that I need to not be exposed to the local network and only available on the host. I suspect others have similar needs. Thanks! | 
Beta Was this translation helpful? Give feedback.
-
| @zcutlip This surprising behavior is due to how privileged port (i.e. ports lower than 1024) forwarding is handled in Lima. Listening on 127.0.0.1:25 requires root privileges on macOS whereas 0.0.0.0:25 does not. See here for more details. The way I understand it is that Lima (which Colima is based on) accepts connections on 0.0.0.0:25 in your case and rejects connections whose source IP does not match the loopback address. Personally, I also enable the macOS firewall and block all incoming connections for an additional layer of protection but if my understanding is correct, Lima already rejects non-loopback connections when forwarding privileged ports. | 
Beta Was this translation helpful? Give feedback.
-
| @msimkunas ahhh....interesting. Okay, so I admit I only checked externally with nmap. So I tried with  I do think at the very least colima's documentation should reflect this. | 
Beta Was this translation helpful? Give feedback.
@zcutlip This surprising behavior is due to how privileged port (i.e. ports lower than 1024) forwarding is handled in Lima. Listening on 127.0.0.1:25 requires root privileges on macOS whereas 0.0.0.0:25 does not. See here for more details.
The way I understand it is that Lima (which Colima is based on) accepts connections on 0.0.0.0:25 in your case and rejects connections whose source IP does not match the loopback address.
Personally, I also enable the macOS firewall and block all incoming connections for an additional layer of protection but if my understanding is correct, Lima already rejects non-loopback connections when forwarding privileged ports.