Movatterモバイル変換


[0]ホーム

URL:


wgtunnel

module
v0.1.12Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License:MIT

Details

Repository

github.com/coder/wgtunnel

Links

README

wgtunnel

wgtunnel is a simple WireGuard tunnel server. Clients can register themselvesto the server with a single API request (done periodically in the background incase the server restarts), and then connect to a WireGuard endpoint on theserver over UDP to tunnel.

Generated URLs are unique and are based on the WireGuard public key. Wildcardsfor each tunnel are also semi-supported, using hyphens instead of periods toallow for TLS.

This is used byCoder to create tunnels fortrial/demo deployments with globally accessible URLs.

Deployment

Deploytunneld onto your server and configure it with environment variables orflags. Point the DNS entries${base_url} and*.${base_url} to the server. Ifyou want to use HTTPS, setup a proxy such asCaddyin front of the server.

tunneld is available on GitHub releases or can be installed with:

$ go install github.com/coder/wgtunnel/cmd/tunneld

or by runningmake build/tunneld.

You can also use the Docker imageghcr.io/coder/wgtunnel/tunneld.

Usage

Either usetunnel for easy usage from a terminal, or use thetunnelsdkpackage to initiate a tunnel against the given API server URL. Remember tostore the private key for future tunnel sessions in a safe place, otherwise youwill get a new hostname!

tunnel can be installed with:

$ go install github.com/coder/wgtunnel/cmd/tunnel

or by runningmake build/tunnel.

License

Licensed under the MIT license.

Directories

PathSynopsis
cmd
tunnelcommand
tunneldcommand

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp