{"id":16616482,"url":"https://github.com/parazyd/tlstun","last_synced_at":"2025-04-22T19:53:51.980Z","repository":{"id":57570084,"uuid":"170563868","full_name":"parazyd/tlstun","owner":"parazyd","description":"Simple Go program to add TLS support to other listeners","archived":false,"fork":false,"pushed_at":"2021-04-26T09:16:18.000Z","size":53,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T18:11:51.310Z","etag":null,"topics":["client-verification","go","golang","tcp","tls","tls-certificate","tls-proxying"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parazyd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-13T19:11:29.000Z","updated_at":"2022-09-03T15:30:40.000Z","dependencies_parsed_at":"2022-09-10T20:22:09.434Z","dependency_job_id":null,"html_url":"https://github.com/parazyd/tlstun","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parazyd%2Ftlstun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parazyd%2Ftlstun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parazyd%2Ftlstun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parazyd%2Ftlstun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parazyd","download_url":"https://codeload.github.com/parazyd/tlstun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250314981,"owners_count":21410469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client-verification","go","golang","tcp","tls","tls-certificate","tls-proxying"],"created_at":"2024-10-12T02:13:14.982Z","updated_at":"2025-04-22T19:53:51.934Z","avatar_url":"https://github.com/parazyd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"tlstun\n======\n\ntlstun is a simple Go program that will add TLS support for your\nprograms that do not have it.\n\nIt simply proxies from one TLS-listening host:port to another plaintext\n(or TLS if using `-forwardtls`) host:port. If TLS is not your thing,\nyou can also proxy plain TCP traffic.\n\n\nInstallation\n------------\n\n```\n$ go get github.com/parazyd/tlstun\n```\n\nMake sure you generate or acquire a TLS certificate keypair to use with\ntlstun.\n\n\nUsage\n-----\n\n```\nUsage of ./tlstun:\n  -cacert string\n        Path for CA certificate file (default \"ca.pem\")\n  -cert string\n        Path for Certificate file (default \"server.pem\")\n  -forward string\n        Forward address (default \"127.0.0.1:72\")\n  -forwardtls\n        Forward using TLS\n  -key string\n        Path for Key file (default \"server-key.pem\")\n  -listen string\n        Listen address (default \"127.0.0.1:7443\")\n  -notls\n        Disable TLS and tunnel plain TCP\n  -tlsver int\n        TLS version to use (11, 12, 13) (default 13)\n  -verbose\n        Verbose mode\n  -verifyclient\n        Do client verification\n```\n\ntlstun supports two different ways of multiplexing, one being normal TLS\nproxying, and the other being TLS proxying with client certificate\nauthentication. In addition to this, tlstun can also opt-out of TLS and\nproxy plain TCP without encryption by using the `-notls` flag.\n\n\n### Without client verification\n\nStart tlstun with `-cert` and `-key`, and it will simply provide a TLS\nforward to its destination with the given TLS certificate.\n\n\n### With client verification\n\nWith client verification, start tlstun with `-cacert`, `-cert`, `-key`,\nand `-verifyclient` and it will do client certificate verification. This\nmeans it will only allow access from clients providing a certificate\nsigned by the CA certificate that is being loaded/used with tlstun on\nstartup with `-cacert`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparazyd%2Ftlstun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparazyd%2Ftlstun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparazyd%2Ftlstun/lists"}