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

  1. run tailscale up --ssh (don’t think the --ssh matters)
  2. have UPnP/PCP disabled in the router
  3. 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)

Commits related to this issue

Most upvoted comments

With TS_DISABLE_PORTMAPPER=1 (as suggested by @bradfitz), the message changes from

portmapper: failed to get PCP mapping: PCP is implemented but not enabled in the router

to

netcheck: probePortMapServices: port mapping is disabled

This is not even a workaround for preventing massive log files. Please reopen this issue, as it is NOT solved!

I could manually port-forward in case there’s problems.

If you do, you need to make sure to use the --port flag to tailscaled and make it match the port you manually forward.