1 Star 1 Fork 0

chinazyq / ECUST-openwrt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

ECUST-openwrt

GitHub stars Gitee stars
用openwrt mwan3实现ECUST校园网、宽带按IP段分流(V6流量全走校园网,V4流量分两种)

前置准备

wiki

分步安装

1.教育网cernet、校内地址走校园网,其它走宽带

# 更新软件包列表
opkg update
# 安装luci-app-mwan3
opkg install luci-app-mwan3
# 下载配置文件
wget -O /etc/config/mwan3 https://gitee.com/chinazyq/ECUST-openwrt/raw/master/mwan3
# 重新启动mwan3服务
/etc/init.d/mwan3 restart

2.仅校内地址走校园网,其它走宽带

# 更新软件包列表
opkg update
# 安装luci-app-mwan3
opkg install luci-app-mwan3
# 下载配置文件
wget -O /etc/config/mwan3 https://gitee.com/chinazyq/ECUST-openwrt/raw/master/mwan3_onlyschool
# 重新启动mwan3服务
/etc/init.d/mwan3 restart

一键安装(新版本似乎已失效,还是手动分步安装吧)

1.教育网cernet、校内地址走校园网,其它走宽带

#使用curl安装
export url='https://gitee.com/chinazyq/ECUST-openwrt/raw/master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
#使用wget安装
export url='https://gitee.com/chinazyq/ECUST-openwrt/raw/master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh  && sh /tmp/install.sh && source /etc/profile &> /dev/null

2.仅校内地址走校园网,其它走宽带

#使用curl安装
export url='https://gitee.com/chinazyq/ECUST-openwrt/raw/master' && sh -c "$(curl -kfsSl $url/install_onlyschool.sh)" && source /etc/profile &> /dev/null
#使用wget安装
export url='https://gitee.com/chinazyq/ECUST-openwrt/raw/master' && wget -q --no-check-certificate -O /tmp/install_onlyschool.sh $url/install_onlyschool.sh  && sh /tmp/install_onlyschool.sh && source /etc/profile &> /dev/null

说明

IP文件夹中的IP段具有时效性,不保证也不可能长期有效
第一种情况,部分CDN解析出的教育网地址也会走校园网而遭到限速
第二种情况,部分教育网站(例如四六级报名网站)宽带访问延迟可能增加
自行权衡利弊

MIT License Copyright (c) 2023 chinazyq Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

用openwrt实现ECUST校园网、宽带按IP段分流 展开 收起
Shell
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/chinazyq/ECUST-openwrt.git
git@gitee.com:chinazyq/ECUST-openwrt.git
chinazyq
ECUST-openwrt
ECUST-openwrt
master

搜索帮助