• Stars
    star
    296
  • Rank 140,464 (Top 3 %)
  • Language
    Shell
  • License
    GNU General Publi...
  • Created about 10 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Command Line Scripts for ZJU (VPN / WLAN / DNS)

zjunet

查看中文README

Command Line Scripts for ZJU (VPN / WLAN / DNS)

Features

  • ZJU VPN (l2tp)

  • ZJUWLAN

  • Router support

  • Overlap network dialing (with load balance)

  • Overlap bandwidth of ZJUWLAN and ZJU VPN (1 WLAN + N VPN, Using ZJUWLAN)

  • Automatic DNS setting (in case DNS do not work)

Requirements

  • xl2tpd

  • curl

  • dig (Different package on different platform)

Installation

If you meet any problem during or after the installation, check Troubleshooting section below in this documentation.

Debian / Ubuntu (deb)

  1. Configure ZJU mirrors from manual. Ubuntu/Debian
  2. Run these command.
curl https://dl.zjuqsc.com/linux/qsc.public.key | sudo apt-key add -
curl https://dl.zjuqsc.com/linux/debian/qsc.list | sudo tee /etc/apt/sources.list.d/qsc.list
sudo apt-get update
sudo apt-get install zjunet
  1. The installation has completed.
  2. If you are setting up a server, we suggest you run zjunet wlan disable to disable WLAN capability.

Fedora / CentOS (rpm)

  1. Configure ZJU mirrors from manual. Fedora/CentOS

  2. Configure EPEL of ZJU mirrors (Taking CentOS installation as an example)

    1. Run yum install epel-release to install EPEL.
    2. Edit /etc/yum.repos.d/epel.repo , uncomment lines begin with #baseurl= (Remove leading # sign) and comment lines begin with mirrorlist= (Prepend # sign)
    3. Edit /etc/yum.repos.d/epel.repo , replace https://download.fedoraproject.org/pub with https://mirrors.zju.edu.cn .
  3. Run these command.

curl https://dl.zjuqsc.com/linux/qsc.public.key | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-QSC-COMP66
curl https://dl.zjuqsc.com/linux/yum/qsc.repo | sudo tee /etc/yum.repos.d/qsc.repo
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-QSC-COMP66
sudo yum install zjunet
  1. The installation has completed.
  2. If you are setting up a server, we suggest you run zjunet wlan disable to disable WLAN capability.

OpenWrt (opk)

Download .opk package from Release Page (onto your router), Run opkg install ./zjunet_<version>_all.opk.

Arch Linux (AUR)

Simply run yay zjunet to build the package from AUR and install it.

Keep in mind that a fresh install without internet connection is almost impossible. Please complete installation before connecting to the intranet.

Other Linux (Build from source code)

xl2tpd -v; curl -V; dig -v # Check installation of dependencies. There should be 3 version numbers.
# Under proper directory
git clone https://github.com/QSCTech/zjunet.git
cd zjunet
sudo ./install.sh
# If update is necessary, run `git pull` and `sudo ./install.sh`
# If you are setting up a server, we suggest you run `zjunet wlan disable` to disable WLAN capability.

ATTENTION Requirement check will NOT be done running ./install.sh. Please run xl2tpd -v, curl -V and dig -v to verify the installation.

Troubleshooting

Packet lose

This is a known issue. When overlapping VPN and ZJUWLAN, network packet may be lost. (because of nexthop in routing table).

Contributions to this issue are welcomed. (Maybe using iptables)

ppp0 may disappears on OpenWrt

Set lcp-echo-failure larger in /etc/ppp/options.

See also #39

Other problems?

Please send mail to [email protected] if you have any other problem.

Contribute to this project

QSCers may Push directly without sending Pull Requests。

Please write an Issue if you have worries. Contact maintainer directly if necessary.

PRs from non-QSCers are also welcomed.

Packaging Instruction

(Not finished yet)

Debian

sudo apt-get install build-essential autoconf automake autotools-dev dh-make \
  debhelper devscripts fakeroot xutils lintian pbuilder rpm
cd build
./build.sh
See Also

OpenWrt

See Also

Links

More Repositories

1

zju-icicles

浙江大学课程攻略共享计划
HTML
37,206
star
2

zju-delicious

浙大周围的好吃的
32
star
3

tutorial-frontend

求是潮前端培训讲义
JavaScript
29
star
4

BaseCoreSocialistValues

encode everything to core socialist values, written in rust
Rust
19
star
5

2021-fall-round-two

求是潮技术 2021 秋纳二面试题
JavaScript
18
star
6

tutorial-backend

求是潮网站后端开发入门
15
star
7

freshman

求是潮线上新生手册
JavaScript
15
star
8

qsc-mobile

求是潮移动平台
JavaScript
14
star
9

2022-Autumn-Round-Two

求是潮产品研发中心技术方向 2022 秋纳二面试题
JavaScript
13
star
10

ZJUintl-gRPC

gRPC service for Zhejiang University Intl Campus.
JavaScript
12
star
11

jvm-cpp

a basic jvm
C++
12
star
12

qsc-mobile-ios-v3

Legacy Code of ZJU Campus App for iOS
Swift
11
star
13

2020-Autumn-Round-Two

QSC Tech Recruitment 2020 Autumn Round Two
HTML
10
star
14

NTR

Take 6!
C++
10
star
15

sports

求是潮运动 Repo
8
star
16

tutorial-basics-for-tech

求是潮技术研发中心基础技能培训(工程师方向)
7
star
17

drone

求是潮无人机小组
7
star
18

jw-scraper

教务网爬虫 SDK
Go
7
star
19

2021-Spring-Round-Two

Kotlin
7
star
20

jw-scraper-rs

浙江大学教务网爬虫库
Rust
6
star
21

git-auto-pull

A daemon written in C, which is used to handle GitLab and GitHub's Push Event WebHook http://dl.zjuqsc.com/linux/
C
6
star
22

tutorial-basics-for-all

求是潮全站通用基础网络知识培训
5
star
23

QSC_newbee

浙江大学新生手册
CSS
5
star
24

router.js

Router.js
CoffeeScript
5
star
25

QSCMobileLegacy

QSC Mobile V2 version
Java
4
star
26

QSC-wechat

QSC Mobile in Wechat Version
JavaScript
4
star
27

school-cal

获取 json 格式校历,go sdk
Go
4
star
28

bubblemusic

求是潮 Bubble 泡泡音乐 (2009-2012 线上产品)
PHP
4
star
29

QSC-wechat-backend

QSC wechat backend service, realiszed in Go.
Go
4
star
30

zju-feed

为浙大的教务网提供Feed服务
PHP
3
star
31

box-sdk-go

box SDK for go
Go
3
star
32

2023-spring-round-two

求是潮2023春季纳新二面题仓库
Go
3
star
33

ClassroomSpider

Spider for Generating Available Classroom Schedule
JavaScript
2
star
34

QSCMainSite

前端部分
HTML
2
star
35

qsc-npm

Vue project for QSC-npm
Vue
2
star
36

course

求是潮 moodle 课程用代码
Python
2
star
37

freshman-mobile-2014

浙江大学新生手册移动版
JavaScript
2
star
38

qsc-ui

JavaScript
1
star
39

qsc-mobile-plugins

求是潮 Mobile 插件仓库
JavaScript
1
star
40

qsc-zju-helper

求是潮浙大助手 (作业)
JavaScript
1
star
41

tide-music

JavaScript
1
star
42

passport-api

求是潮通行证 开放接口文档
1
star