├── README.md ├── README_zh.md └── mentohustconfig.png /README.md: -------------------------------------------------------------------------------- 1 | # RuiJie-gzhu 2 | Bypass Ruijie v6.84 based on Openwrt 3 | 4 | **Great Appreciation for [ysc3839](https://github.com/ysc3839/openwrt-minieap/tree/gzhu) and [Lean](https://github.com/coolsnowwolf/lede)** 5 | 6 | *** 7 | 8 | + **[Preparation](#preparation)** 9 | 10 | + **[Build](#build)** 11 | 12 | + **[Usage](#usage)** 13 | 14 | + **[Supplement](#supplement)** 15 | 16 | *** 17 | 18 | ## Preparation 19 | 20 | + `A router that can be flashed and run Openwrt` 21 | 22 | 23 | + `Ubuntu 64bit (Ubuntu 18 LTS x64 recommend)` 24 | 25 | 26 | + `Conditions to bypass GFW globally` 27 | 28 | 29 | + If you use `VMware Workstation Pro` to build, please make sure it has at least **50GB** of storage space *(20GB as default)* 30 | 31 | 32 | **My Compiling Environment** 33 | + VMware Workstation 16 Pro 34 | `Ver: 16.0.0 build-16894299` 35 | 36 | + Ubuntu image 37 | `Ver: 18.04.5` 38 | 39 | *** 40 | ## Build 41 | 42 | **1. Prepare your compilation environment** 43 | 44 | **2. Download the required packages** 45 | ```bash 46 | cd ~ # or the PATH you want in /home/ 47 | 48 | sudo apt-get update 49 | 50 | sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3.5 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget swig rsync 51 | ``` 52 |
53 | 54 | --- 55 | 56 | **DO NOT USE `sudo` or `root` USER IN THE FOLLOWING STEPS** 57 | **DO NOT USE `sudo` or `root` USER IN THE FOLLOWING STEPS** 58 | **DO NOT USE `sudo` or `root` USER IN THE FOLLOWING STEPS** 59 | 60 | --- 61 | 62 |
63 | 64 | **3. Get the source code of `Openwrt`** 65 | 66 | ```bash 67 | git clone https://github.com/coolsnowwolf/lede 68 | ``` 69 | 70 | 71 | **4. Enter the file directory of `lede` and get all the latest package definitions and install symlinks of all of them** 72 | 73 | 74 | **NOTE:** If you would like to use some plug-ins such as `S*R-PLUS` , you should edit the file `feeds.conf.default` or `feeds.conf` and uncomment the line with the word `helloword` (the last line usually) before running `./scripts/feeds update -a` 75 | 76 | ```diff 77 | src-git packages https://github.com/coolsnowwolf/packages 78 | src-git luci https://github.com/coolsnowwolf/luci 79 | src-git routing https://git.openwrt.org/feed/routing.git 80 | src-git telephony https://git.openwrt.org/feed/telephony.git 81 | src-git freifunk https://github.com/freifunk/openwrt-packages.git 82 | #src-git video https://github.com/openwrt/video.git 83 | #src-git targets https://github.com/openwrt/targets.git 84 | #src-git management https://github.com/openwrt-management/packages.git 85 | #src-git oldpackages http://git.openwrt.org/packages.git 86 | #src-link custom /usr/src/openwrt/custom-feed 87 | - #src-git helloworld https://github.com/fw876/helloworld 88 | + src-git helloworld https://github.com/fw876/helloworld 89 | ``` 90 | *The **one** step **above here** is optional* 91 | 92 | ```bash 93 | cd ./lede/ 94 | ./scripts/feeds update -a 95 | ./scripts/feeds install -a 96 | ``` 97 | 98 | 99 | **5. Integrate the source code of `Minieap` && `Luci-Minieap` into `Openwrt`** 100 | 101 | ```bash 102 | git clone https://github.com/ysc3839/openwrt-minieap.git -b gzhu package/minieap 103 | git clone https://github.com/ysc3839/luci-proto-minieap.git package/luci-proto-minieap 104 | ``` 105 | **NOTE:** Pay attention to the `gzhu` branch 106 | 107 | **6. Configure and Choose the packages that you want** 108 | 109 | ```bash 110 | make menuconfig 111 | ``` 112 | 113 | 114 | **NOTE:** 115 | + Choose **the correct** `Target System` , `Subtarget` and `Target Profile` for your router 116 | + In order to bypass the Ruijie, you should choose `minieap` in section `Network` and `luci-proto-minieap` in section `LuCI` -> `Protocols` 117 | 118 | [More information for the other packages](https://www.right.com.cn/forum/thread-344825-1-1.html) 119 | 120 | 121 | **7. Dowload some required library** 122 | *(Run with bypassing GFW globally)* 123 | 124 | ```bash 125 | make -j8 download V=s 126 | ``` 127 | 128 | 129 | **8. Compile** 130 | *(Run with bypassing GFW globally)* 131 | 132 | ```bash 133 | make -j1 V=s # -j1 single thread is recommended for the first compilation 134 | ``` 135 | *Usually takes 2 ~ 3 hours to compile for the first time* 136 | 137 | **9. Wait then Find your firmware and packages in `$YOURPATH(~ as default)/lede/bin/targets` and `$YOURPATH(~ as default)/lede/bin/packages`** 138 | 139 | *** 140 | 141 | ## Usage 142 | 143 | #### Login the Openwrt 144 | 145 | + Default login IP address : 192.168.1.1 146 | + Default login password : password 147 | 148 | #### Configure the Openwrt and Minieap 149 | 150 | 1. Click `Network` -> `Interface` -> `LAN` to change the default IP address for logging in Openwrt (192.168.1.1 as default) 151 | 152 | 153 | 2. Make sure `WAN` runs `DHCP` protocol 154 | Create a new interface with the name `$whateveruwant` 155 | Click and modify the new interface you create 156 | 157 | 158 | 3. Switch to `MINIEAP Client` 159 | Type in your account and password (same as ruijie client) and choose `rjv3` in `Packages Plug-in` 160 | Click `RJv3 plug-in Setting` 161 | Choose `Ruijie Private` in `EAP Broadcast Address` and `Twice Certification` in `DHCP Mode` 162 | Click `Physical Settings` 163 | Choose the `VLAN` that runs `DHCP` *(eth0.2 as default)* 164 | 165 | 166 | 4. Save and Apply 167 | 168 | 169 | 5. Click [Here](https://github.com/H0uzC) to test the Internet 170 | 171 | 172 | ## Supplement 173 | 174 | 175 | + Recompile 176 | 177 | ```bash 178 | cd lede 179 | git pull 180 | ./scripts/feeds update -a && ./scripts/feeds install -a 181 | make defconfig 182 | make -j8 download 183 | make -j$(($(nproc) + 1)) V=s 184 | ``` 185 | 186 | 187 | + Remake Menuconfig 188 | 189 | ```bash 190 | rm -rf ./tmp && rm -rf .config 191 | make menuconfig 192 | make -j$(($(nproc) + 1)) V=s 193 | ``` 194 | 195 | 196 | + `MentoHUST` Config Provided by [lomoyi](https://github.com/lomoyi) 197 | 198 | ![](./mentohustconfig.png) 199 | -------------------------------------------------------------------------------- /README_zh.md: -------------------------------------------------------------------------------- 1 | # RuiJie-gzhu 2 | 基于Openwrt固件的绕过锐捷 v6.84验证教程 3 | 4 | **特别感谢: [ysc3839](https://github.com/ysc3839/openwrt-minieap/tree/gzhu) , [Lean](https://github.com/coolsnowwolf/lede)** 5 | 6 | *** 7 | 8 | + **[准备](#准备本地编译环境)** 9 | 10 | + **[编译](#编译)** 11 | 12 | + **[使用](#使用)** 13 | 14 | + **[补充](#补充)** 15 | 16 | + **[不想或无法准备本地编译环境](#如果你不想或无法准备本地编译环境)** 17 | 18 | *** 19 | 20 | ## 准备本地编译环境 21 | 22 | + `一台可以被刷固件和运行Openwrt的路由器` 23 | 24 | 25 | + `Ubuntu 64bit (推荐 Ubuntu 18 LTS x64)` 26 | 27 | 28 | + `全局绕过GFW的网络条件` 29 | 30 | 31 | + 如果你使用 `VMware Workstation Pro` 来编译, 请确保至少分配 **50GB** 的存储空间 *(默认 20GB)* 32 | 33 | 34 | **我的编译环境** 35 | + VMware Workstation 16 Pro 36 | `Ver: 16.0.0 build-16894299` 37 | 38 | + Ubuntu image 39 | `Ver: 18.04.5` 40 | 41 | *** 42 | ## 编译 43 | 44 | **1. 准备好你的编译环境** 45 | 46 | **2. 下载编译所需的包** 47 | ```bash 48 | cd ~ # or the PATH you want in /home/ 49 | 50 | sudo apt-get update 51 | 52 | sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3.5 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget swig rsync 53 | ``` 54 |
55 | 56 | --- 57 | 58 | **请确保在接下来的步骤一定 不要 使用 `sudo` 命令 或者 `root` 用户** 59 | **请确保在接下来的步骤一定 不要 使用 `sudo` 命令 或者 `root` 用户** 60 | **请确保在接下来的步骤一定 不要 使用 `sudo` 命令 或者 `root` 用户** 61 | 62 | --- 63 | 64 |
65 | 66 | **3. 获取 `Openwrt` 的源码** 67 | 68 | ```bash 69 | git clone https://github.com/coolsnowwolf/lede 70 | ``` 71 | 72 | 73 | **4. 进入 `lede` 的文件夹并执行** 74 | 75 | **提示:** 如果你想使用一些如 `S*R-PLUS` 的插件, 你需要在执行 `./scripts/feeds update -a` 之前修改 `feeds.conf.default` 或者 `feeds.conf` 文件:取消有 `helloword` (通常为最后一行) 字样所在行的注释 76 | 77 | ```diff 78 | src-git packages https://github.com/coolsnowwolf/packages 79 | src-git luci https://github.com/coolsnowwolf/luci 80 | src-git routing https://git.openwrt.org/feed/routing.git 81 | src-git telephony https://git.openwrt.org/feed/telephony.git 82 | src-git freifunk https://github.com/freifunk/openwrt-packages.git 83 | #src-git video https://github.com/openwrt/video.git 84 | #src-git targets https://github.com/openwrt/targets.git 85 | #src-git management https://github.com/openwrt-management/packages.git 86 | #src-git oldpackages http://git.openwrt.org/packages.git 87 | #src-link custom /usr/src/openwrt/custom-feed 88 | - #src-git helloworld https://github.com/fw876/helloworld 89 | + src-git helloworld https://github.com/fw876/helloworld 90 | ``` 91 | *取消注释部分👆为选做,如果你不知道这是什么* 92 | *请直接忽略并执行👇* 93 | 94 | ```bash 95 | cd ./lede/ 96 | ./scripts/feeds update -a 97 | ./scripts/feeds install -a 98 | ``` 99 | 100 | 101 | **5. 在 `Openwrt` 的 `package` 中添加 `Minieap` 和 `Luci-Minieap` 插件** 102 | 103 | ```bash 104 | git clone https://github.com/ysc3839/openwrt-minieap.git -b gzhu package/minieap 105 | git clone https://github.com/ysc3839/luci-proto-minieap.git package/luci-proto-minieap 106 | ``` 107 | **提示:** 注意并且确保 `minieap` 拉取的是 **`gzhu`** 分支 108 | 109 | **6. 配置并选择你想要的软件插件** 110 | 111 | ```bash 112 | make menuconfig 113 | ``` 114 | 115 | 116 | **NOTE:** 117 | + 为你的路由器选择 **正确的** `Target System` , `Subtarget` 和 `Target Profile` 118 | + 为了绕过锐捷验证, 你需要选择在 `Network` 中的 `minieap` 和在 `LuCI` -> `Protocols` 中 `luci-proto-minieap` 119 | 120 | [更多其他软件插件的信息](https://www.right.com.cn/forum/thread-344825-1-1.html) 121 | 122 | 123 | **7. 下载dl库** 124 | *(确保网络条件为全局绕过GFW)* 125 | 126 | ```bash 127 | make -j8 download V=s 128 | ``` 129 | 130 | 131 | **8. 编译** 132 | *(确保网络条件为全局绕过GFW)* 133 | 134 | ```bash 135 | make -j1 V=s # -j1 single thread is recommended for the first compilation 136 | ``` 137 | *第一次编译通常需要2~3个小时* 138 | 139 | **9. 等待然后在 `$YOURPATH(~ as default)/lede/bin/targets` and `$YOURPATH(~ as default)/lede/bin/packages` 中寻找你的固件和软件ipk** 140 | 141 | *** 142 | 143 | ## 使用 144 | 145 | #### 登录 Openwrt 146 | 147 | + 默认登录IP : 192.168.1.1 148 | + 默认登录密码 : password 149 | 150 | #### 配置 Openwrt 和 Minieap 151 | 152 | 1. (选做)点击 `网络` -> `LAN` 来更改登录Openwrt的IP地址 (默认为192.168.1.1) 153 | 154 | 155 | 2. 确保 `WAN` 运行 `DHCP` 156 | 新建一个叫 `$whateveruwant` 的接口修改你新建的接口 157 | 158 | 159 | 3. 修改你新建的接口 160 | 接口协议选择 `MINIEAP Client` 161 | 输入你的校园网账号和密码并且在 `Packages Plug-in` 中选择 `rjv3` 162 | 点击 `RJv3 plug-in Setting` 163 | 在 `EAP Broadcast Address` 中选择 `Ruijie Private` 164 | 在 `DHCP Mode` 中选择 `Twice Certification` 165 | 点击 `Physical Settings` 并选择运行着 `DHCP` 的 `VLAN` *(一般是 eth0.2)* 166 | 167 | 168 | 4. 保存并应用 169 | 170 | 171 | 5. 点击 [Here](https://github.com/H0uzC) 测试网络 172 | 173 | 174 | ## 补充 175 | 176 | 177 | + Recompile 178 | 179 | ```bash 180 | cd lede 181 | git pull 182 | ./scripts/feeds update -a && ./scripts/feeds install -a 183 | make defconfig 184 | make -j8 download 185 | make -j$(($(nproc) + 1)) V=s 186 | ``` 187 | 188 | 189 | + Remake Menuconfig 190 | 191 | ```bash 192 | rm -rf ./tmp && rm -rf .config 193 | make menuconfig 194 | make -j$(($(nproc) + 1)) V=s 195 | ``` 196 | 197 | 198 | + `MentoHUST` Config Provided by [lomoyi](https://github.com/lomoyi) 199 | 200 | ![](./mentohustconfig.png) 201 | 202 | 203 | + 如果你已经有一台运行着Openwrt的路由器,实现绕过锐捷认证的功能只需安装minieap相关的IPK包即可,可参照 [此文](https://github.com/ysc3839/openwrt-minieap/tree/gzhu) 编译出IPK包 204 | 205 | 206 | + `Releases` 已有支持MT7621系列CPU(如NEWIFI D2)和RedmiAC2100的固件 207 | *** 208 | 209 | ## 如果你不想或无法准备本地编译环境 210 | 211 | 推荐使用 **P3TERX** 的 [Actions-Openwrt](https://github.com/P3TERX/Actions-OpenWrt) 进行线上自动编译 212 | 213 | **为了实现绕过锐捷验证的功能**,请参照本文 `编译` 部分的 `第五步` 并结合 `Actions-Openwrt` 中的 `添加额外的软件包` 来编译固件 -------------------------------------------------------------------------------- /mentohustconfig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/H0uzC/fkrjgzhu/8bc03a08b307ef9eb16f17c60c360a84a220e78d/mentohustconfig.png --------------------------------------------------------------------------------