{"id":42844181,"url":"https://github.com/dosgo/go-tun2socks","last_synced_at":"2026-01-30T11:55:16.309Z","repository":{"id":90171286,"uuid":"275392363","full_name":"dosgo/go-tun2socks","owner":"dosgo","description":"A tun2socks implementation written in Go.","archived":false,"fork":false,"pushed_at":"2024-07-28T07:56:45.000Z","size":20882,"stargazers_count":21,"open_issues_count":2,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-07-28T09:04:34.146Z","etag":null,"topics":[],"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/dosgo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-06-27T14:46:19.000Z","updated_at":"2024-07-28T07:56:48.000Z","dependencies_parsed_at":"2024-01-29T10:41:58.469Z","dependency_job_id":"463b5049-9a1d-40f3-9081-1e4f5b04308d","html_url":"https://github.com/dosgo/go-tun2socks","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/dosgo/go-tun2socks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dosgo%2Fgo-tun2socks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dosgo%2Fgo-tun2socks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dosgo%2Fgo-tun2socks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dosgo%2Fgo-tun2socks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dosgo","download_url":"https://codeload.github.com/dosgo/go-tun2socks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dosgo%2Fgo-tun2socks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28912151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T08:15:08.179Z","status":"ssl_error","status_checked_at":"2026-01-30T08:14:31.507Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2026-01-30T11:55:16.240Z","updated_at":"2026-01-30T11:55:16.302Z","avatar_url":"https://github.com/dosgo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tun2socks\n\nA high-performance tun2socks implementation written in Go, powered by gVisor netstack.\n\n# Usage\n\n### Standard TUN Device\nYou can start a standard TUN device and proxy all traffic to a SOCKS5 server:\n```go\nvar tunDevice = \"tun0\";\nvar tunAddr = \"10.0.0.2\";\nvar tunMask = \"255.255.255.0\";\nvar tunGw = \"10.0.0.1\";\nvar mtu = 1500;\nvar socksAddr = \"127.0.0.1:1080\";\nvar tunDns = \"8.8.8.8:53\";\n\ntun2socks.StartTunDevice(tunDevice, tunAddr, tunMask, tunGw, mtu, socksAddr, tunDns);\n\n```\n### Custom I/O (e.g., Android VpnService)\nFor environments like Android where you already have a File Descriptor or a custom stream, use the ForwardTransportFromIo interface:\n\n// dev is an object that implements io.ReadWriteCloser\ntun2socks.ForwardTransportFromIo(dev, mtu, rawTcpForwarder, rawUdpForwarder);\n\n# Thank\n* github.com/google/gvisor\n* github.com/miekg/dns\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdosgo%2Fgo-tun2socks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdosgo%2Fgo-tun2socks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdosgo%2Fgo-tun2socks/lists"}