Set-up Tailscale on a server that uses a proxy

Tailscale user:
Hi Tailscale team,

We have been using Tailscale for the past two weeks at my company, using the Security Plan, and we’re very happy about it ! It makes life much easier for the engineering team, so thanks a lot.

I am writing because one of our machine has been set-up at one of our partner premises, which uses a proxy to connect to internet. After configuring the proxy settings, our ubuntu server is able to access the internet (I could install Tailscale following the usual process).

But Tailscale netcheck is not very happy about this proxy :
Report:
* UDP: false
* IPv4: (no addr found)
* IPv6: no
* MappingVariesByDestIP:
* HairPinning:
* PortMapping:
* Nearest DERP: unknown (no response to latency probes)

I am wondering if I could configure Tailscale to work with this proxy, maybe by adding the proxy information to a specific file ? I couldn’t find documentation about this, so any help would be greatly appreciated !

Support:
Tailscale respects the HTTPS_PROXY or ALL_PROXY environment variables if they specify an HTTP or SOCKS5 proxy.

Let us know if that works for you.

Tailscale user:
Thanks for the quick reply, I did set the https_proxy environment variable for my http proxy, the results of tailscale netcheck somewhat improved :

Report:
* UDP: false
* IPv4: (no addr found)
* IPv6: no
* MappingVariesByDestIP:
* HairPinning:
* PortMapping:
* Nearest DERP: London
* DERP latency:

  • lhr: 10.8ms (London)
  • fra: 20.6ms (Frankfurt)
  • nyc: 73.8ms (New York City)
  • dfw: 116.3ms (Dallas)
  • sea: 139ms (Seattle)
  • blr: 145.8ms (Bangalore)
  • sfo: 149.6ms (San Francisco)
  • sin: 151.1ms (Singapore)
  • tok: 236.4ms (Tokyo)
  • syd: 240.8ms (Sydney)

Nevertheless, when trying to up Tailscale I get the following error message :
ReadMsg: read unix @->/run/tailscale/tailscaled.sock: use of closed network connection

Is there something more I could try to get around this issue ?

Support:
Try ‘sudo systemctl restart tailscaled.service’ and then retry your tailscale up.

If that doesn’t work and you have ipv6 disabled, you could be hitting some variant of https://github.com/tailscale/tailscale/issues/895