Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 5.9% on proxy.golang.org
Top 3.7% forks on proxy.golang.org

proxy.golang.org : github.com/artyom/tlstun

Command tlstun implements basic VPN over TLS (both client and server). Client part is expected to be run locally and used by local services as a socks5 proxy. Client establishes TLS session to the server running on some remote host that performs outgoing requests on behalf of requests made to the client. Communication between client and server is multiplexed over a single TLS session thus reducing TLS handshake overhead. Client and server authenticate each other with certificates which can be created with openssl or https://github.com/artyom/gencert Generate server and client side certificates, they should be signed by the same CA and saved using PEM encoding into a single file with certificate followed by CA. Certificate keys should also be saved as a separate PEM-encoded files. With gencert tool from https://github.com/artyom/gencert this can be done as: This produces four files in the current directory: client certificate + key pair and another pair for the server. Note that my.domain.tld should point to the host you plan running server part of tlstun. Now configure tlstun to run on the server that could be reached at my.domain.tld like this: The client part is expected to be running locally (on a laptop/workstation, etc.): The presence of -remote flag configures tlstun to run in client mode. It is now listening on localhost port 1080 and local software can be configured to use this endpoint as a socks5 proxy. Note that -remote flag can be optionally set multiple times, then client probes all servers and picks the one that replied first. If connections multiplexing over a single TLS session is not needed (i.e. because of the head-of-line blocking effect), -nomux flag can be set, which disables multiplexing and uses one TLS session per connection. Note that use of this flag must be synchronized on client and server. You may force server side do all DNS lookups over Cloudflare's DNS over TLS on 1.1.1.1 and 1.0.0.1 with -cfdns flag.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/artyom/tlstun
Keywords: socks5-proxy, tls-tunnel, vpn
License: MIT
Latest release: almost 6 years ago
First release: over 6 years ago
Namespace: github.com/artyom
Stars: 44 on GitHub
Forks: 11 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 26 days ago

    Loading...
    Readme
    Loading...