{"id":43022609,"url":"https://github.com/flano-yuki/t2q2t","last_synced_at":"2026-01-31T06:38:19.872Z","repository":{"id":57511661,"uuid":"202886786","full_name":"flano-yuki/t2q2t","owner":"flano-yuki","description":"TCP/QUIC port forward tool","archived":false,"fork":false,"pushed_at":"2024-02-01T16:35:27.000Z","size":133,"stargazers_count":44,"open_issues_count":4,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-10-13T00:07:42.796Z","etag":null,"topics":["go","portforward","quic","tcp"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flano-yuki.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-08-17T13:51:26.000Z","updated_at":"2025-09-12T15:38:25.000Z","dependencies_parsed_at":"2022-08-29T05:21:40.790Z","dependency_job_id":null,"html_url":"https://github.com/flano-yuki/t2q2t","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/flano-yuki/t2q2t","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flano-yuki%2Ft2q2t","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flano-yuki%2Ft2q2t/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flano-yuki%2Ft2q2t/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flano-yuki%2Ft2q2t/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flano-yuki","download_url":"https://codeload.github.com/flano-yuki/t2q2t/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flano-yuki%2Ft2q2t/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28931385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T04:05:25.756Z","status":"ssl_error","status_checked_at":"2026-01-31T04:02:35.005Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["go","portforward","quic","tcp"],"created_at":"2026-01-31T06:38:19.078Z","updated_at":"2026-01-31T06:38:19.852Z","avatar_url":"https://github.com/flano-yuki.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# t2q2t\n\nt2q2t is a port forward tool that converts between TCP and QUIC. (TCP/QUIC Proxy).\n\nYou can benefit from QUIC with any application protocol using t2q2t.\n\nusecase overview are below:\n\n![t2q2t usecase](/img/overview.png)\n\n- Client: listens on `0.0.0.0:2022` with TCP, and forwards to `192.168.0.1:22`(server ip) with QUIC\n- Server: listen on `0.0.0.0:2022` with QUIC, and forward to `127.0.0.1:22` with TCP\n\n```\n# t2q2t \u003cconvert mode\u003e \u003clisten addr\u003e \u003cconnect addr\u003e\n\n# on client side (TCP \u003c-\u003e QUIC)\n$ ./t2q2t t2q 0.0.0.0:2022 192.168.0.1:2022\n\n# on server side (QUIC \u003c-\u003e TCO)\n$ ./t2q2t q2t 0.0.0.0:2022 127.0.0.1:22\n```\n\nYou can use SSH with QUIC transport by running t2q2t on client and server.\n\n## build\n\n```\n$ git clone https://github.com/flano-yuki/t2q2t.git\n$ cd ./t2q2t\n$ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build t2q2t.go\n$ go build ./t2q2t.go\n``` \n\nYou can also use the following Dockerfile to try it out in your Docker environmemnt.\n\n```\n# In the project root directory\n$ docker build -t flano-yuki/t2q2t .\n$ docker run -it -p 2022:2022 -p 2022:2022/udp --rm flano-yuki/t2q2t\ntcp/quic port forward tool\n  t2q2t \u003csubcommand\u003e \u003cListen Addr\u003e \u003cforward Addr\u003e\n\n  go run ./t2q2t.go t2q 0.0.0.0:2022 127.0.0.1:2022\n  go run ./t2q2t.go q2t 0.0.0.0:2022 127.0.0.1:22\n\nUsage:\n  t2q2t [command]\n\nAvailable Commands:\n  help        Help about any command\n  q2t         Listen by quic, and forward to tcp\n  t2q         Listen by tcp, and forward to quic\n  version     Print the version number of t2q2t\n\nFlags:\n  -h, --help      help for t2q2t\n  -v, --verbose   verbose output\n\nUse \"t2q2t [command] --help\" for more information about a command.\n```\n\n\n## convert mode (sub command)\n\n- `t2q`: Listen by TCP, and connect to QUIC\n- `q2t`: Listen by QUIC, and connect to TCP\n\n\n## Note\nThis is a PoC.\n\nt2q2t uses \"t2q2t\" as the ALPN identifier. It is not intended to communicate with other QUIC implementations.\n\nTODO\n- Improve error handling\n- Improve connection management\n- (Output connection statistics)\n- Many other improvements\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflano-yuki%2Ft2q2t","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflano-yuki%2Ft2q2t","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflano-yuki%2Ft2q2t/lists"}