Skip to content
Discussion options

You must be logged in to vote

@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.

Replies: 5 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@zcutlip
Comment options

Comment options

You must be logged in to vote
3 replies
@msimkunas
Comment options

@zcutlip
Comment options

@msimkunas
Comment options

Comment options

You must be logged in to vote
1 reply
@soemiran
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by zcutlip
Comment options

You must be logged in to vote
2 replies
@msimkunas
Comment options

@zcutlip
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants