diff options
| author | Jordan Whited <jordan@tailscale.com> | 2024-08-27 13:38:51 -0700 |
|---|---|---|
| committer | Jordan Whited <jordan@tailscale.com> | 2024-08-27 13:38:51 -0700 |
| commit | 884f609262f6d8e21da4da1c523f23e272a27ac4 (patch) | |
| tree | 70ffb788ee70b4e31ce760557e283cc01b50ce16 | |
| parent | a2c42d3cd4e914b8ac879ac0a21c284ecaf143fc (diff) | |
| download | tailscale-jwhited/test-local-forwarder.tar.xz tailscale-jwhited/test-local-forwarder.zip | |
wgengine/netstack: hacky iperf loopback via quad-100jwhited/test-local-forwarder
Signed-off-by: Jordan Whited <jordan@tailscale.com>
| -rw-r--r-- | wgengine/netstack/netstack.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wgengine/netstack/netstack.go b/wgengine/netstack/netstack.go index 01af13b09..4c00511e0 100644 --- a/wgengine/netstack/netstack.go +++ b/wgengine/netstack/netstack.go @@ -724,7 +724,7 @@ func (ns *Impl) handleLocalPackets(p *packet.Parsed, t *tstun.Wrapper) filter.Re // 80, and 8080. switch p.IPProto { case ipproto.TCP: - if port := p.Dst.Port(); port != 53 && port != 80 && port != 8080 { + if port := p.Dst.Port(); port != 53 && port != 80 && port != 8080 && port != 5201 { return filter.Accept } case ipproto.UDP: @@ -1300,7 +1300,7 @@ func (ns *Impl) acceptTCP(r *tcp.ForwarderRequest) { return } } - if isTailscaleIP { + if isTailscaleIP || (hittingServiceIP && reqDetails.LocalPort == 5201) { dialIP = netaddr.IPv4(127, 0, 0, 1) } dialAddr := netip.AddrPortFrom(dialIP, uint16(reqDetails.LocalPort)) |
