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

net/portmapper: ignore IGD SSDP responses from !defaultgw #3202

Merged
merged 1 commit into from Oct 27, 2021

Conversation

danderson
Copy link
Member

Now that we multicast the SSDP query, we can get IGD offers from
devices other than the current device's default gateway. We don't want
to accidentally bind ourselves to those.

Updates #3197

Signed-off-by: David Anderson danderson@tailscale.com

Now that we multicast the SSDP query, we can get IGD offers from
devices other than the current device's default gateway. We don't want
to accidentally bind ourselves to those.

Updates #3197

Signed-off-by: David Anderson <danderson@tailscale.com>
@danderson danderson merged commit 060ba86 into main Oct 27, 2021
@danderson danderson deleted the danderson/upnp-ignore branch October 27, 2021 22:34
@joshbenner
Copy link

joshbenner commented Aug 27, 2022

Note to future users: this can cause UPnP and NAT-PMP to not be detected behind OPNSense (and presumably pfSense) in a failover pair, since the routers respond on their interface IP rather than the virtual IP probably used as the gateway. I was able to work around this for tailscale by port forwarding 5351/udp from the virtual gateway IP to the primary router's LAN interface IP. Not perfect (will not work during failover), but gets things working during normal operations.

@DentonGentry
Copy link
Contributor

Could you file a bug about this, with a description? The intent of this PR was not to preclude use of portmapping in valid cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants