tailscale-proxy

command module
v0.0.0-...-042d5d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

README

Tailscale Proxy

License Buy me a coffee

Proxy Http calls from your local network to your Tailnet

Explanation

The program creates a HTTP server listening on the specified port on the local network. When a request is received, it constructs a new HTTP request directed to the specified Tailscale node (nodeUrl). It then forwards the request to the Tailscale node using a HTTP client configured to use the Tailscale network.

Upon receiving a response from the Tailscale node, the program forwards the response back to the original requester, effectively acting as a bridge between the local network and the Tailscale network.

diagram

Setup

Before running this program, ensure you have the following prerequisites:

  • Tailscale installed and configured on your system.
  • Go installed on your system to build and run the program.

export a TS_AUTHKEY variable or use the link provided inside your logs

example command:

tailscale-proxy --nodeUrl='https://influxdb.tailXXXX.ts.net:8086' --port=':8086' --hostname='IotProxy'

If you found this program useful, please consider to buy me a coffee

License

This project is licensed under the GNU GPLv3 - see the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL