This commit is contained in:
ChuXun
2025-10-19 20:57:33 +08:00
parent af92aed82b
commit eb6dadd89d
30 changed files with 440 additions and 2 deletions

2
.gitattributes vendored
View File

@@ -1,2 +0,0 @@
# Auto detect text files and perform LF normalization
* text=auto

201
LICENSE Normal file
View File

@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

239
README.md Normal file
View File

@@ -0,0 +1,239 @@
# 东北大学校园网免流全新教程
### 免流介绍
![image-20250419212113105](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212113105.png)
由于之前的教程已经彻底亡了(我明明用了快一年,但写出教程一个月就不行了),因此出个新的教程。
免流顾名思义就是通过校园网ipv6免费的特性让所有流量都通过ipv6这样不使用ipv4自然就不会产生费用。
之前的方案不能用了主要在于国内用不了cloudflare的服务器了因此这次的免流方案的最主要目标就是解决免费的服务器而通过GitHub学生认证之后刚好可以获得DigitalOcean的1年200刀的学生优惠额度就可以很爽的用这200刀买服务器了因此本教程是部署于DigitalOcean基于hysteria2协议运用虚拟专用网原理实现的东北大学校园网免流教程。
想要百分百的白嫖DigitalOcean条件还是比较苛刻的如果不能白嫖还可以购买cloudcone、racknerd等运营商的服务器他们的服务器也很划算在黑五圣诞等各种节日促销中能低至9.9刀一年的价格并且也能有1T起步的月流量量大也不贵宿舍合租也很实惠。但是cloudcone、racknerd的服务器都在美国因此延迟较DigitalOcean较高速度较慢但速度也同样能有400左右用起来依旧也非常爽。
### 准备环节&前情提要
申请github学生认证、申请全币种信用卡等操作可能比较繁琐但这些步骤都是白嫖免费的DigitalOcean vps所需要的如果您在以上环节有卡住或者白嫖的一年DigitalOcean vps已经到期那么可以使用购买cloudcone、racknerd的服务器实现免流这两家的服务器在节日打折时可以低至10刀一年相当于1刀一月相比校园网来已经足够便宜且流量大。如果不进行白嫖DigitalOcean可以直接跳到第4步进行查看。
### 1. 申请github学生认证
[Github学生认证及学生包保姆级申请指南 - 知乎 (zhihu.com)](https://zhuanlan.zhihu.com/p/578964972)
目前申请的方法教程很多,自行申请即可,不过目前申请条件越来越严格,要尽早申请。
![image-20250419212301055](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212301055.png)
### 2. 使用DigitalOcean学生认证
github的学生包有很多东西最有用的当然是copilot极大方便写代码。当然除此之外还有DigitalOcean其中就包括了1年200刀的免费额度普通注册也有200刀但是限时60天比亚马逊还大度。
![image-20250419212328702](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212328702.png)
使用github登录即可
![image-20250419212335456](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212335456.png)
初次登录会提示需要绑定支付方式有两种方法1.如果使用信用卡需要使用国外信用卡或者国内的全币种的信用卡大部分人是没有的因此比较麻烦2.如果使用PayPal使用会很简单PayPal很容易注册绑定银联银行卡即可但是使用PayPal要求必须初始要支付5刀。
![image-20250419212343223](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212343223.png)
登录进去在在billing里就可以看到已经充值的钱如果用PayPal的话
![image-20250419212349452](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212349452.png)
划到最下面就能看到github的200刀当购买服务器的时候就会优先使用这200刀。
![image-20250419212355328](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212355328.png)
### 3. 创建vps实例
![image-20250419212409084](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212409084.png)
具体设置如下即可
国家选择美国,新加坡等都可以,实测新加坡网速最快
系统选ubuntu
类型选basic
cpu型号可以任选但是最初我在regular上没有成功使用ipv6premium amd、premium intel没问题
选择适当的配置免流不吃配置因此一般选择最烂的cpu、内存即可免流流量自选一般1T十分充裕但是更多也可以
设置密码
最后最重要的,**在高级选项里面开启IPV6在高级选项里面开启IPV6在高级选项里面开启IPV6**没有ipv6怎么免流
![image-20250419212516193](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212516193.png)
### 4. 设置服务器架设代理
当DigitalOcean的服务器创建好之后控制面板大概是这样的。
![image-20250419212536281](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212536281.png)
这里可以先复制ipv6地址在cmd中用"ping -t ip地址"的方式先测一下延迟丢包率如何,延迟太高丢包太高或者根本连不上的情况建议换地区或者重开服务器。
![image-20250419212542683](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212542683.png)
没问题的话就用finalshell连服务器
![image-20250419212548673](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212548673.png)
接下来进行搭建:首先更新组件
```
apt update -y
apt install curl sudo -y
```
安装一键安装脚本
```
wget -N --no-check-certificate https://raw.githubusercontent.com/flame1ce/hysteria2-install/main/hysteria2-install-main/hy2/hysteria.sh && bash hysteria.sh
```
选1安装
![image-20250419212703120](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212703120.png)
选1自签证书
![image-20250419212725751](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212725751.png)
填写端口号
![image-20250419212733414](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212733414.png)
默认就行
![image-20250419212740023](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212740023.png)
密码,随便填,忘了也没事,足够长就行
![image-20250419212747281](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212747281.png)
混淆的网址默认也行或者就bing
![image-20250419212755706](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212755706.png)
后就配置完了,会生成配置文件
![image-20250419212802657](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212802657.png)
这就是我们的配置信息了,如果你忘记了配置信息,可以用
```
nano /root/hy/hy-client.yaml
```
的指令来重新查看。
重新打开就像这样:
![image-20250419212842701](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212842701.png)
### 5.配置代理文件
接下来就需要小猫咪的软件了,可以在这里下载。
[Releases · clash-verge-rev/clash-verge-rev](https://github.com/Clash-Verge-rev/clash-verge-rev/releases)
虽然服务器直接给我们生成了yaml文件但是并不能在clash中直接用还需要配置一些信息。
下面是一个通用的配置文件,根据下面的提示来更改一下。
新建一个txt文本文件后缀改成yaml
![image-20250419212933378](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419212933378.png)
打开将下面的信息复制到文本里面并且更改serverportpassword三行。
```
proxies:
- name: Hysteria2
type: hysteria2
server: 这里填服务器的ipv6地址填ipv4的话还怎么免流
port: 这里填设置成的端口号上面用的11451
password: 这里填密码也就是上面hy-client.yaml中的的auth的一行内容
sni: 这里填混淆地址默认是首尔大学我上面用的bing这里也用bing www.bing.com
skip-cert-verify: true
hopinterval: 30
fast-open: true
udp: true
recv-window-conn: 33554432
recv-window: 16777216
proxy-groups:
- name: PROXY
type: select
proxies:
- Hysteria2
rules:
- IP-CIDR6,::/0,DIRECT,no-resolve
- MATCH,PROXY
```
如果你想要屏蔽掉校园内网的话,可以自己修改规则,这样可以更方便的使用校园网,东北大学的校园网规则如下:
```
rules:
- IP-CIDR6,::/0,DIRECT,no-resolve
# 新增的直连IP规则IPv4
- IP-CIDR,202.118.0.0/19,DIRECT
- IP-CIDR,202.199.0.0/20,DIRECT
- IP-CIDR,210.30.192.0/20,DIRECT
- IP-CIDR,219.216.64.0/18,DIRECT
- IP-CIDR,58.154.160.0/19,DIRECT
- IP-CIDR,58.154.192.0/18,DIRECT
- IP-CIDR,118.202.0.0/19,DIRECT
- IP-CIDR,118.202.32.0/20,DIRECT
- IP-CIDR,172.16.0.0/12,DIRECT
- IP-CIDR,100.64.0.0/10,DIRECT
- IP-CIDR,192.168.1.1/24,DIRECT
# 兜底规则(必须放在最后)
- MATCH,PROXY
```
更改完应该是一下的样子,其中这三行填的是你的服务器的信息
![image-20250419213020702](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419213020702.png)
ipv6地址在哪找呢在DigitalOcean的面板里面就有
![image-20250419213207630](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419213207630.png)
### 6.设置代理软件
这里以clash verge为例。
首先配置一下clash verge的基本设置按需配置即可。
![image-20250419213307416](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419213307416.png)
在订阅里面直接 拖入刚刚写好的yaml文件就可以在这里面看到我们订阅了
![image-20250419213317090](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419213317090.png)
之后在代理里面就能看到我们的服务器上文我们在配置yaml的时候只用了一个最简单的规则只有一个服务器因此在这里面也只有一个我们可以在这里面测一下延迟
![image-20250419213326386](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419213326386.png)
最后使用时只需要在右下角的图标处右键快速设置即可这里我们使用规则模式规则就是我们写的除了ipv6和校园网内网都走代理的规则需要进行免流时就打开系统代理即可。
另外,默认情况下只有浏览器等少数软件可以免流,**如果需要电脑的所有软件都进行免流选择TUN模式即可**这样就连命令行都走的免流妈妈再也不用担心我下载python包超时啦。
![image-20250419213346963](https://github.com/SkYFly2233/NEU-ipv6-proxy/blob/main/image/image-20250419213346963.png)
现在你已经学会校园网免流了,赶紧去试试吧。

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB