Command Line Scripts for ZJU (VPN / WLAN / DNS)
-
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)
-
xl2tpd
-
curl
-
dig
(Different package on different platform)
If you meet any problem during or after the installation, check Troubleshooting section below in this documentation.
- Configure ZJU mirrors using 浙大源配置生成器.
- 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
- The installation has completed.
- If you are setting up a server, we suggest you run
zjunet wlan disable
to disable WLAN capability.
-
Configure ZJU mirrors using 浙大源配置生成器.
-
Configure EPEL of ZJU mirrors (Taking CentOS installation as an example)
- Run
yum install epel-release
to install EPEL. - Edit
/etc/yum.repos.d/epel.repo
, uncomment lines begin with#baseurl=
(Remove leading#
sign) and comment lines begin withmirrorlist=
(Prepend#
sign) - Edit
/etc/yum.repos.d/epel.repo
, replacehttps://download.fedoraproject.org/pub
withhttps://mirrors.zju.edu.cn
.
- Run
-
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
- The installation has completed.
- If you are setting up a server, we suggest you run
zjunet wlan disable
to disable WLAN capability.
Download .opk package from Release Page (onto your router),
Run opkg install ./zjunet_<version>_all.opk
.
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.
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
)
Set lcp-echo-failure larger in /etc/ppp/options.
See also #39
Please send mail to tech@zjuqsc.com if you have any other problem.
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.
(Not finished yet)
sudo apt-get install build-essential autoconf automake autotools-dev dh-make \
debhelper devscripts fakeroot xutils lintian pbuilder rpm
cd build
./build.sh