Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lotus: let DisableNatPortMap default to true #12170

Closed
5 of 11 tasks
f8-ptrk opened this issue Jul 1, 2024 · 5 comments
Closed
5 of 11 tasks

Lotus: let DisableNatPortMap default to true #12170

f8-ptrk opened this issue Jul 1, 2024 · 5 comments
Labels
good first issue Good for newcomers kind/bug Kind: Bug

Comments

@f8-ptrk
Copy link
Contributor

f8-ptrk commented Jul 1, 2024

Checklist

  • This is not a security-related bug/issue. If it is, please follow please follow the security policy.
  • I have searched on the issue tracker and the lotus forum, and there is no existing related issue or discussion.
  • I am running the Latest release, the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.
  • I did not make any code changes to lotus.

Lotus component

  • lotus daemon - chain sync
  • lotus fvm/fevm - Lotus FVM and FEVM interactions
  • lotus miner/worker - sealing
  • lotus miner - proving(WindowPoSt/WinningPoSt)
  • lotus JSON-RPC API
  • lotus message management (mpool)
  • Other

Describe the Bug

DisableNatPortMap currently defaults to false.

This produces a lot of WARN level messages about upnp failures if the router isn't set up right. lotus seems not to be able to identify that it isn't able to perform the given task on the given device it runs upnp against and loops.

Beyond that: it isn't recommended to enable upnp router sides without good reasons to do so. having DisableNatPortMap default to false might encourage router settings that are unsecure or unable to be comprehended by the user in their full impact.

@f8-ptrk f8-ptrk added the kind/bug Kind: Bug label Jul 1, 2024
@f8-ptrk
Copy link
Contributor Author

f8-ptrk commented Jul 1, 2024

not sure if thats a bug or a feature request tbh

@f8-ptrk
Copy link
Contributor Author

f8-ptrk commented Jul 1, 2024

i'd remove upnp features completely from the code. the gains are outweighed by the risks i think

@aarshkshah1992
Copy link
Contributor

@f8-ptrk We will look into why this was set to false in the first place. But I think I do agree with you that there's no point in setting it to false if there's no strong reason to.

@rjan90 rjan90 added the good first issue Good for newcomers label Jul 30, 2024
@rjan90
Copy link
Contributor

rjan90 commented Jul 30, 2024

Next step for this ticket is to investigate why DisableNatPortMap defaults to false.

That said, FilOz is currently not going to prioritise doing this investigation in Q3, and we have therefore put up a "Good First Issue" ticket on it.

@Kubuxu
Copy link
Contributor

Kubuxu commented Jul 30, 2024

It defaults to false because it allows residential users to be dialled into.

@f8-ptrk f8-ptrk closed this as completed Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers kind/bug Kind: Bug
Projects
Status: ☑️ Done (Archive)
Development

No branches or pull requests

4 participants