{"id":13775829,"url":"https://github.com/yinghuocho/gotun2socks","last_synced_at":"2025-08-21T17:28:18.307Z","repository":{"id":45738011,"uuid":"49746967","full_name":"yinghuocho/gotun2socks","owner":"yinghuocho","description":"A Golang implementation of tun2socks","archived":false,"fork":false,"pushed_at":"2016-12-22T05:36:11.000Z","size":43,"stargazers_count":294,"open_issues_count":11,"forks_count":102,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-04-09T23:18:16.598Z","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":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yinghuocho.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":"2016-01-15T21:51:05.000Z","updated_at":"2025-03-18T08:08:17.000Z","dependencies_parsed_at":"2022-07-22T01:48:21.107Z","dependency_job_id":null,"html_url":"https://github.com/yinghuocho/gotun2socks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinghuocho%2Fgotun2socks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinghuocho%2Fgotun2socks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinghuocho%2Fgotun2socks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinghuocho%2Fgotun2socks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yinghuocho","download_url":"https://codeload.github.com/yinghuocho/gotun2socks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125593,"owners_count":21051771,"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-08-03T17:01:51.805Z","updated_at":"2025-04-09T23:18:20.503Z","avatar_url":"https://github.com/yinghuocho.png","language":"Go","funding_links":[],"categories":["\u003ca id=\"d03d494700077f6a65092985c06bf8e8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"57b8e953d394bbed52df2a6976d98dfa\"\u003e\u003c/a\u003eSocks"],"readme":"# gotun2socks\n\nA Golang implementation of tun2socks, including a library and a binary program. \n\nThe binary program works on Linux, OS X and Windows. \n\n## Usage\n\nWindows users need to install TAP-windows driver first. \n\nThe binary program will create tun/tap device, config its IP address. On Windows, it also configs DNS resolvers of the opened tun/tap device. \n\nUsers need to change routing table so that packets are sent through the tun/tap device. Generaly the process includes changing default route to the tun/tap device, and exclude IP addresses of remote servers to go through the original network device so that traffic forwarded from local SOCKS5 proxy to remote servers would not loop back. See \u003ca href=\"https://code.google.com/p/badvpn/wiki/tun2socks\"\u003e Tun2Socks Introduction \u003c/a\u003e for how to change routing table. Linux and OS X users may also need to change system DNS resolvers in case the resolvers are not accessible by remote servers. \n\n## UDP forwarding\n\nThis implementation forwards UDP using standard SOCKS5 UDP request/reply. Thus to make UDP-based protocols (such as DNS) work, it needs to be chained with a UDP-enabled SOCKS5 proxy.  \n\n\n## Credits\n\n- https://github.com/google/gopacket\n- https://github.com/ambrop72/badvpn/\n- https://github.com/songgao/water\n- https://github.com/FlexibleBroadband/tun-go\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyinghuocho%2Fgotun2socks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyinghuocho%2Fgotun2socks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyinghuocho%2Fgotun2socks/lists"}