Skip to content
Discussion options

You must be logged in to vote

Just in case anybody comes here later, the correct way to disable all portforwards in Lima 1.0 and later is

portForwards:
- ignore: true
  proto: any
  guestIP: 0.0.0.0

The proto: any part is not supported in older Lima versions, but those didn't forward UDP anyways, so the default of tcp was good enough.

I had to use the following to disable port forwarding in Lima 2.0.x:

portForwards:
- ignore: true
  proto: any
  guestIP: 127.0.0.1

Using guestIP: 0.0.0.0 kept auto-forwarding.

What I like to do, is to only forward ports that have been opened on 0.0.0.0 explicitly, not the ones that bound to 127.0.0.1 only:

## Auto forward only ports bound to 0.0.0.0 (not 127.0.0.1):
portForwards:
  #

Replies: 2 comments 7 replies

Comment options

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

@suspenss
Comment options

@jandubois
Comment options

Comment options

You must be logged in to vote
4 replies
@RafalSkolasinski
Comment options

@jandubois
Comment options

@mjakl
Comment options

Answer selected by AkihiroSuda
@jandubois
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
6 participants