{"id":20442034,"url":"https://github.com/yryz/tcpforward","last_synced_at":"2025-07-06T06:42:27.354Z","repository":{"id":57575975,"uuid":"356589741","full_name":"yryz/tcpforward","owner":"yryz","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-10T14:04:44.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T19:01:52.535Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yryz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-10T13:27:43.000Z","updated_at":"2021-12-14T01:26:06.000Z","dependencies_parsed_at":"2022-08-29T00:50:39.160Z","dependency_job_id":null,"html_url":"https://github.com/yryz/tcpforward","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yryz/tcpforward","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yryz%2Ftcpforward","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yryz%2Ftcpforward/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yryz%2Ftcpforward/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yryz%2Ftcpforward/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yryz","download_url":"https://codeload.github.com/yryz/tcpforward/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yryz%2Ftcpforward/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260827602,"owners_count":23068993,"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":[],"created_at":"2024-11-15T09:36:40.653Z","updated_at":"2025-06-19T20:40:56.361Z","avatar_url":"https://github.com/yryz.png","language":"Go","readme":"安全的tcp转发，支持tls双向认证，支持Socks代理。\n\n可以用来作为内网跳板，也可以用来对普通tcp增加tls安全认证。\n\n`go get github.com/yryz/tcpforward`\n\n# EXAMPLES\n**tcp -\u003e tcp**\nlocal: `tcpforward -t tcp -l 127.0.0.1:1080 -T tcp -P 192.168.10.1:1080`\n\n**tcp -\u003e |tls| -\u003e tcp**\n\n1. gen cert.pem \u0026 key.pem: `tcpforward -gencert`\n2. local: `tcpforward -t tcp -l 127.0.0.1:1080 -T tls -P 192.168.10.1:2080 -C cert.pem -K key.pem`\n3. remote: `tcpforward -t tls -l 192.168.10.1:2080 -T tcp -P 127.0.0.1:1080 -C cert.pem -K key.pem`\n\n**tcp -\u003e |socks| + |tls| -\u003e tcp**\n\n1. gen cert.pem \u0026 key.pem: `tcpforward -gencert`\n2. local: `ALL_PROXY=socks5://username:passwd@host:port tcpforward -t tcp -l 127.0.0.1:1080 -T tls -P 192.168.10.1:2080 -C cert.pem -K key.pem`\n3. remote: `tcpforward -t tls -l 192.168.10.1:2080 -T tcp -P 127.0.0.1:1080 -C cert.pem -K key.pem`\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyryz%2Ftcpforward","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyryz%2Ftcpforward","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyryz%2Ftcpforward/lists"}