tailscale/net/portmapper
Andrew Dunham 16ef88754d net/portmapper: don't return unspecified/local external IPs
We were previously not checking that the external IP that we got back
from a UPnP portmap was a valid endpoint; add minimal validation that
this endpoint is something that is routeable by another host.

Updates tailscale/corp#23538

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: Id9649e7683394aced326d5348f4caa24d0efd532
2024-10-01 14:13:40 -04:00
..
disabled_stubs.go net/portmapper: handle multiple UPnP discovery responses 2023-12-18 16:02:46 -05:00
igd_test.go net/netns, net/dns/resolver, etc: make netmon required in most places 2024-04-27 12:17:45 -07:00
legacy_upnp.go net/portmapper: support legacy "urn:dslforum-org" portmapping services 2024-01-23 21:29:29 -05:00
pcp.go net/portmapper: check returned epoch from PMP and PCP protocols 2024-01-03 14:17:50 -05:00
pcp_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
pcpresultcode_string.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
pmpresultcode_string.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
portmapper.go net/portmapper: add envknob to disable portmapper in localhost integration tests 2024-05-06 11:15:56 -07:00
portmapper_test.go all: use Go 1.22 range-over-int 2024-04-16 15:32:38 -07:00
select_test.go net/portmapper: be smarter about selecting a UPnP device 2023-12-13 16:32:29 -05:00
upnp.go net/portmapper: don't return unspecified/local external IPs 2024-10-01 14:13:40 -04:00
upnp_test.go net/portmapper: don't return unspecified/local external IPs 2024-10-01 14:13:40 -04:00