tailscale: Log is spammed with "portmapper: failed to get PCP mapping: PCP is implemented but not enabled in the router"
What is the issue?
My system log contains many (hundreds+) messages saying portmapper: failed to get PCP mapping: PCP is implemented but not enabled in the router.
UPnP and PCP are intentionally disabled in my router (in my FRITZ!Box 7490 you can’t configure these features individually). I’d prefer to be able to disable the mechanism causing this or at least hide the message, as it’s not useful information in my case.
Steps to reproduce
- run
tailscale up --ssh(don’t think the--sshmatters) - have UPnP/PCP disabled in the router
- watch journalctl
Are there any recent changes that introduced the issue?
No response
OS
Linux
OS version
NixOS 24.05
Tailscale version
1.66.4
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 15 (2 by maintainers)
Links to this issue
Commits related to this issue
- net/netmon, wgengine/magicsock: be quieter with portmapper logs This adds a new helper to the netmon package that allows us to rate-limit log messages, so that they only print once per (major) LinkCh... — committed to tailscale/tailscale by andrew-d 2 years ago
- net/netmon, wgengine/magicsock: be quieter with portmapper logs This adds a new helper to the netmon package that allows us to rate-limit log messages, so that they only print once per (major) LinkCh... — committed to tailscale/tailscale by andrew-d 2 years ago
- net/netmon, wgengine/magicsock: be quieter with portmapper logs This adds a new helper to the netmon package that allows us to rate-limit log messages, so that they only print once per (major) LinkCh... — committed to tailscale/tailscale by andrew-d 2 years ago
- net/netmon, wgengine/magicsock: be quieter with portmapper logs This adds a new helper to the netmon package that allows us to rate-limit log messages, so that they only print once per (major) LinkCh... — committed to tailscale/tailscale by andrew-d 2 years ago
- net/netmon, wgengine/magicsock: be quieter with portmapper logs This adds a new helper to the netmon package that allows us to rate-limit log messages, so that they only print once per (major) LinkCh... — committed to tailscale/tailscale by andrew-d 2 years ago
- net/netmon, wgengine/magicsock: be quieter with portmapper logs This adds a new helper to the netmon package that allows us to rate-limit log messages, so that they only print once per (major) LinkCh... — committed to ninech/tailscale by andrew-d 2 years ago
With
TS_DISABLE_PORTMAPPER=1(as suggested by @bradfitz), the message changes fromto
This is not even a workaround for preventing massive log files. Please reopen this issue, as it is NOT solved!
If you do, you need to make sure to use the
--portflag to tailscaled and make it match the port you manually forward.