{"id":19216427,"url":"https://github.com/bigbugcc/mhsyncdial","last_synced_at":"2025-05-12T23:29:18.500Z","repository":{"id":106951681,"uuid":"393250762","full_name":"bigbugcc/MHSyncdial","owner":"bigbugcc","description":"MentoHust锐捷认证校园网多播解决方案","archived":false,"fork":false,"pushed_at":"2021-08-07T03:40:53.000Z","size":2,"stargazers_count":19,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-20T19:38:20.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/bigbugcc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-08-06T04:36:05.000Z","updated_at":"2025-04-09T08:22:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"3525eb36-6633-4145-ab0b-e43e50d2743d","html_url":"https://github.com/bigbugcc/MHSyncdial","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/bigbugcc%2FMHSyncdial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigbugcc%2FMHSyncdial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigbugcc%2FMHSyncdial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigbugcc%2FMHSyncdial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigbugcc","download_url":"https://codeload.github.com/bigbugcc/MHSyncdial/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253839718,"owners_count":21972361,"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-09T14:16:58.537Z","updated_at":"2025-05-12T23:29:18.491Z","avatar_url":"https://github.com/bigbugcc.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# -----Mentohust校园网多播提升网速解决方案-----\n#### \u0026ensp;\u0026ensp;\u0026ensp;\u0026ensp;在这之前你得确保配置好基础的多播(luci-app-syncdial); 无论是单线还是多线都可;\n---\n## 原理   \n#### \u0026ensp;\u0026ensp;\u0026ensp;\u0026ensp;验证客户端基于mentohust，需要在openwrt中安装该插件(编译时记得添加锐捷组件)，Padvan固件已经自带，该脚本主要通过干掉mh(mentohust)运行的进程号实现多进程从而实现多播，需配合openwrt的多播插件 (luci-app-syncdial) 来使用，该方法简单易用；也可以通过修改mh源码删除创建进程部分的代码来实现，都可。通过绑定虚拟出来的macvlan来进行多播提升网速，前提得需要多个校园网账号 (若贵校支持多设备登录就当我没说)。\n---\n## 优化\n#### \u0026ensp;\u0026ensp;\u0026ensp;\u0026ensp;为了避免学校监管对账号进行行为侦测再次限速限流等操作 (固定使用一俩个账号流量太大还是会被限速 毕竟下片那啥...) ，特此添加了随机账户登录 每天登陆的账号都是随机的(将流量较为平均的分载)，将舍友的校园网账号添加到数组中去，密码统一下就可。虽然基本已经起飞了，但是 下片的兄弟还是收敛一点 : ) 奔放了大半年回来分享一下。\n---\n## 脚本适用Openwrt(lede测试通过)\n1. 单线多播\n2. 多线多播\n(绑定多播的虚拟网卡就可 一般为macvlan1，macvlan2...)\n---\n## 多播选择(视具体网络环境而定)\n1. 如果显示接入为千兆线也支持千兆传输(直连后网络适配器中查看连接速率)那单线多播就够用了。\n2. 若百兆单账号也能跑满那就果断多线多播。\n---\n## 安装使用\n将脚本上传到(openwrt) /etc/config/ 目录下\n```\ncd /etc/config\n\nchmod +x mentohust.sh\n\n./mentohust.sh\n```\n配置(自行替换)\n```\n# 存放校园网账号的数组\nstuid=(\"26352371732\" \"20323821931\" \"202123210072\" \"2022187382174\")\n\n# 修改\"-pabc1234\"密码为abc1234 其他保持默认\n# 修改\"-nmacvlan1\"虚拟网卡(默认为)macvlan1 修改为自己的虚拟网卡\nmentohust -u${stuid[$rnd1]} -pabc1234 -nmacvlan1 -b3 -o223.5.5.5 -a1 -d0 -v6.82 -cdhclient \n\n# 该脚本默认为双播，可自行修改添加。 \n```\n  \n开机自启\n```\nvim /etc/rc.local\n\n# exit0 前添加(脚本位置)\n/etc/config/mentohust.sh\n\n# 最重要(不然无法启动脚本)\nchmod +x /etc/rc.local\n```\n\n## 其他\n[openwrt 编译教程](https://www.bilibili.com/read/cv9714518)👈   \n[openwrt 自动编译脚本(持续更新中)👈](https://github.com/bigbugcc/Openwrt)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigbugcc%2Fmhsyncdial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigbugcc%2Fmhsyncdial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigbugcc%2Fmhsyncdial/lists"}