{"id":19662446,"url":"https://github.com/qsctech/zjunet","last_synced_at":"2025-04-05T21:11:11.951Z","repository":{"id":20903022,"uuid":"24190617","full_name":"QSCTech/zjunet","owner":"QSCTech","description":"Command Line Scripts for ZJU (VPN / WLAN / DNS)","archived":false,"fork":false,"pushed_at":"2023-12-21T07:40:11.000Z","size":178,"stargazers_count":311,"open_issues_count":14,"forks_count":47,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-29T20:08:13.822Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QSCTech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-09-18T14:09:57.000Z","updated_at":"2025-03-22T21:51:56.000Z","dependencies_parsed_at":"2024-11-11T16:11:34.321Z","dependency_job_id":"1d6bce85-1edd-496f-b39d-20738924916c","html_url":"https://github.com/QSCTech/zjunet","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QSCTech%2Fzjunet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QSCTech%2Fzjunet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QSCTech%2Fzjunet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QSCTech%2Fzjunet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QSCTech","download_url":"https://codeload.github.com/QSCTech/zjunet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399885,"owners_count":20932880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T16:11:21.377Z","updated_at":"2025-04-05T21:11:11.896Z","avatar_url":"https://github.com/QSCTech.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zjunet\n\n[查看中文README](README.zh.md)\n\nCommand Line Scripts for ZJU (VPN / WLAN / DNS)\n\n## Features\n\n- ZJU VPN (l2tp)\n\n- ZJUWLAN\n\n- Router support\n\n- Overlap network dialing (with load balance)\n\n- Overlap bandwidth of ZJUWLAN and ZJU VPN (1 WLAN + N VPN, Using ZJUWLAN) \n\n- Automatic DNS setting (in case DNS do not work)\n\n## Requirements\n\n- xl2tpd\n\n- `dig` (Different package on different platform)\n\n## Installation\n\nIf you meet any problem during or after the installation, check Troubleshooting section below in this documentation.\n\n### Debian / Ubuntu (deb)\n\n1. Configure ZJU mirrors from manual. [Ubuntu](https://mirror.zju.edu.cn/docs/ubuntu/)/[Debian](https://mirror.zju.edu.cn/docs/debian/)\n2. Run these command.\n\n``` bash\ncurl https://mirrors.zju.edu.cn/openzjunet/zjumirrors.pgp | sudo tee /etc/apt/trusted.gpg.d/zjumirrors.asc\ncurl https://mirrors.zju.edu.cn/openzjunet/zjunet.list | sudo tee /etc/apt/sources.list.d/zjunet.list\nsudo apt-get update\nsudo apt-get install zjunet\n```\n\n3. The installation has completed.\n4. If you are setting up a server, we suggest you run `zjunet wlan disable` to disable WLAN capability.\n\n### Fedora / CentOS (rpm)\n\n1. Configure ZJU mirrors from manual. [Fedora](https://mirror.zju.edu.cn/docs/fedora/)/[CentOS](https://mirror.zju.edu.cn/docs/centos/)\n2. Configure [EPEL of ZJU mirrors](https://mirrors.zju.edu.cn/epel/) (Taking CentOS installation as an example)\n\t1. Run `yum install epel-release` to install EPEL.\n\t2. Edit `/etc/yum.repos.d/epel.repo` , uncomment lines begin with `#baseurl=` (Remove leading `#` sign) and comment lines begin with `mirrorlist=` (Prepend `#` sign)\n\t3. Edit `/etc/yum.repos.d/epel.repo` , replace `https://download.fedoraproject.org/pub` with `https://mirrors.zju.edu.cn` .\n\n3. Run these command.\n\n```bash\ncurl https://mirrors.zju.edu.cn/openzjunet/zjumirrors.pgp | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-ZJUMIRRORS\ncurl https://mirrors.zju.edu.cn/openzjunet/zjunet.repo | sudo tee /etc/yum.repos.d/zjunet.repo\nsudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-ZJUMIRRORS\nsudo yum install zjunet\n```\n\n4. The installation has completed.\n5. If you are setting up a server, we suggest you run `zjunet wlan disable` to disable WLAN capability.\n\n### OpenWrt (opk)\n\nDownload .opk package from [Release Page](https://github.com/QSCTech/zjunet/releases) (onto your router),\nRun `opkg install ./zjunet_\u003cversion\u003e_all.opk`.\n\n### Arch Linux (AUR)\n\nSimply run `yay zjunet` to build the package from AUR and install it.\n\nKeep in mind that a fresh install without internet connection is almost impossible.\nPlease complete installation before connecting to the intranet.\n\n### Other Linux (Build from source code)\n\n```bash\nxl2tpd -v; dig -v # Check installation of dependencies. There should be 3 version numbers.\n# Under proper directory\ngit clone https://github.com/QSCTech/zjunet.git\ncd zjunet\nsudo ./install.sh\n# If update is necessary, run `git pull` and `sudo ./install.sh`\n# If you are setting up a server, we suggest you run `zjunet wlan disable` to disable WLAN capability.\n```\n\n**ATTENTION** Requirement check will **NOT** be done running `./install.sh`.\nPlease run `xl2tpd -v` and `dig -v` to verify the installation.\n\n## Troubleshooting\n\n### Packet lose\n\nThis is a known issue.\nWhen overlapping VPN and ZJUWLAN, network packet may be lost.\n(because of nexthop in routing table).\n\nContributions to this issue are welcomed. (Maybe using `iptables`)\n\n### ppp0 may disappears on OpenWrt\n\nSet lcp-echo-failure larger in /etc/ppp/options.\n\nSee also #39\n\n### Other problems?\n\nPlease send mail to tech@zjuqsc.com if you have any other problem.\n\n## Contribute to this project\n\nQSCers may Push directly without sending Pull Requests。\n\nPlease write an Issue if you have worries. Contact maintainer directly if necessary.\n\n**PRs from non-QSCers are also welcomed.**\n\n### Packaging Instruction\n\n*(Not finished yet)*\n\n#### Debian\n\n```bash\nsudo apt-get install build-essential autoconf automake autotools-dev dh-make \\\n  debhelper devscripts fakeroot xutils lintian pbuilder rpm\ncd build\n./build.sh\n```\n\n##### See Also\n\n- http://www.webupd8.org/2010/01/how-to-create-deb-package-ubuntu-debian.html\n\n- http://tldp.org/HOWTO/html_single/Debian-Binary-Package-Building-HOWTO/\n\n#### OpenWrt\n\n##### See Also\n\n- http://lists.openmoko.org/pipermail/devel/2008-July/000496.html\n\n### Links\n\n- [Array in unix Bourne Shell](http://unix.stackexchange.com/questions/137566/array-in-unix-bourne-shell)\n\n- [How do you tell if a string contains another string in Unix shell scripting?](http://stackoverflow.com/questions/2829613/how-do-you-tell-if-a-string-contains-another-string-in-unix-shell-scripting)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqsctech%2Fzjunet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqsctech%2Fzjunet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqsctech%2Fzjunet/lists"}