{"id":13605946,"url":"https://github.com/cloudwu/mptun","last_synced_at":"2025-05-16T15:06:43.354Z","repository":{"id":34756644,"uuid":"38737845","full_name":"cloudwu/mptun","owner":"cloudwu","description":"Multi-path Tunnel","archived":false,"fork":false,"pushed_at":"2015-12-22T04:01:04.000Z","size":31,"stargazers_count":1250,"open_issues_count":7,"forks_count":315,"subscribers_count":78,"default_branch":"master","last_synced_at":"2025-04-12T11:58:20.489Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/cloudwu.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":"2015-07-08T07:04:48.000Z","updated_at":"2025-03-17T01:00:39.000Z","dependencies_parsed_at":"2022-09-15T06:21:09.423Z","dependency_job_id":null,"html_url":"https://github.com/cloudwu/mptun","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/cloudwu%2Fmptun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwu%2Fmptun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwu%2Fmptun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwu%2Fmptun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudwu","download_url":"https://codeload.github.com/cloudwu/mptun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254553959,"owners_count":22090417,"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-01T19:01:04.549Z","updated_at":"2025-05-16T15:06:43.330Z","avatar_url":"https://github.com/cloudwu.png","language":"C","funding_links":[],"categories":["C","Tools"],"sub_categories":["C"],"readme":"Multi-Path Tunnel VPN\n=====================\n\nIt's a peer to peer VPN tunnel over UDP. You can specify multiple local ip if you have many gateway ,\nand also can specify multiple remote ip . mptun can use all the possible paths for tunneling.\n\nFor example, if you have two internet connections , and you want to create one tunnel to your vps \n(it's very necessary in China :) over two of them , mptun can be helpful.\n\nAt server side  (your VPS) that has public IPs (SERVERIP) :\n\n```\nmptun -i tun0 -p PORT -v 10.0.0.2 -t 10.0.0.1 -k SECRET\n```\n\nAt client side :\n\n```\nmptun -i tun0 -p PORT -v 10.0.0.1 -t 10.0.0.2 -r SERVER_IP1 -r SERVER_IP2 -l LOCAL_IP1 -l LOCAL_IP2 -k SECRET\n```\nYou can also omit -l argument, for short \n```\nmptun -i tun0 -p PORT -v 10.0.0.1 -t 10.0.0.2 -r SERVER_IP1 -k SECRET\n```\nNow you can testing the connection, ping -c 3 10.0.0.2 for details\n\nThe local ips only for sending package out (can be none public IP). \nif you specify multiple local ip , that means multiple paths to server.\n\n-k specify the secret for authentication, it's optional but must be the same between server and client.\n\nAbout Code\n==========\nThe code is ugly, and just quick and dirty work for myself. It's not thoroughly tested, so of course there can be bugs. \nAny pull request is welcome, but don't ask me why the implementation is it :)\n\nLicense\n=======\nThe MIT License (MIT)\n\nCopyright (c) 2015 codingnow.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nMore Question ?\n===============\n\nRead the source code .\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudwu%2Fmptun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudwu%2Fmptun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudwu%2Fmptun/lists"}