{"id":13514880,"url":"https://github.com/wtdcode/tun2socks","last_synced_at":"2025-03-22T07:32:12.991Z","repository":{"id":110681718,"uuid":"178233695","full_name":"wtdcode/tun2socks","owner":"wtdcode","description":"A blazing fast tun2socks implementation with pure C++ and boost.asio 🚀.","archived":false,"fork":false,"pushed_at":"2020-01-31T17:16:11.000Z","size":3122,"stargazers_count":54,"open_issues_count":4,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T09:37:43.076Z","etag":null,"topics":["boost","lwip","proxy","reassemble-packets","socks5","traffic","tun2socks","tunnel","tuntap"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wtdcode.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}},"created_at":"2019-03-28T15:40:05.000Z","updated_at":"2025-03-09T05:09:37.000Z","dependencies_parsed_at":"2023-04-25T20:13:14.495Z","dependency_job_id":null,"html_url":"https://github.com/wtdcode/tun2socks","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/wtdcode%2Ftun2socks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtdcode%2Ftun2socks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtdcode%2Ftun2socks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtdcode%2Ftun2socks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wtdcode","download_url":"https://codeload.github.com/wtdcode/tun2socks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244925175,"owners_count":20532873,"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":["boost","lwip","proxy","reassemble-packets","socks5","traffic","tun2socks","tunnel","tuntap"],"created_at":"2024-08-01T05:01:03.038Z","updated_at":"2025-03-22T07:32:12.570Z","avatar_url":"https://github.com/wtdcode.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# tun2socks[WIP]\n\n## Introduction\n\nThe `tun2socks` is a tool which intercepts all traffic at ip layer and reassembles packets to a tcp stream and sends it to a SOCKS5 proxy.\n\nOnly work on Windows and Linux and still under heavy development now. Everything may be changed in the future.\n\nAny kind of contributions is highly welcome. You can also join the development on the Telegram. [Telegram Group Link](https://t.me/joinchat/HFFokxdMTSOdbL2bKIVhnw).\n\n## Build\n\n### Linux\n\nTake Debian as an example.\n\n```\napt install libboost-all-dev -y\nmkdir build\ncd build\ncmake ..\nmake\n```\n\n**Note: The version of boost should be higher than 1.66.0.**\n\n## Usage\n\n```\nUsage: tun2socks [options] \n\nOptional arguments:\n-h --help               show this help message and exit\n-tip --tunIP            The IP address of the TUN interface.\n-tmask --tunMask        The mask of the TUN interface.\n-sip --socks5IP         The IP address of your socks5 server.\n-sport --socks5Port     The port of your socks5 server.\n-u --username           SOCKS5 username. Leave it blank if no authentication.\n-p --password           SOCKS5 password. Leave it blank if no authentication.\n-l --level              Set logging level. 0(Off), 1(Error), 2(Critical), 3(Warning), 4(Info), 5(Debug), 6(Trace).\n-f --log-file           The path to log file. Logs are printed by default.\n```\n\n## Status\n\nOkay, I rewrite almost all the logic of tun2socks. Although there exists some bugs, but the new structure should work well.\n\n## TODO\n\n- Fix LwIP running out of memoery.\n- Port to Windows and MacOS.\n- Real time statistics.\n- Profile the program to ensure its performance.\n\n## Known Bugs\n\n- Huge network traffic cause LwIP to run out of memory.\n- Race condition when stopping the program.\n\nWorking on these problems 💪.\n\n## Credits\n\n- [tun2socks](https://github.com/zhuhaow/tun2socks): It provides some basic ideas about how to reassemble packets to a tcp stream.\n- [libtuntap](https://github.com/LaKabane/libtuntap): A good example about how to design tuntap API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtdcode%2Ftun2socks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwtdcode%2Ftun2socks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtdcode%2Ftun2socks/lists"}