{"id":16847841,"url":"https://github.com/chzyer/next","last_synced_at":"2025-06-18T08:39:41.311Z","repository":{"id":57522486,"uuid":"53502088","full_name":"chzyer/next","owner":"chzyer","description":"A robust, reliable, easy-configure virtual private network (linux/macOS)","archived":false,"fork":false,"pushed_at":"2022-01-21T15:43:30.000Z","size":7911,"stargazers_count":20,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-25T04:28:30.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chzyer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-09T14:02:53.000Z","updated_at":"2024-03-13T16:58:57.000Z","dependencies_parsed_at":"2022-09-05T11:30:27.517Z","dependency_job_id":null,"html_url":"https://github.com/chzyer/next","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chzyer%2Fnext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chzyer%2Fnext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chzyer%2Fnext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chzyer%2Fnext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chzyer","download_url":"https://codeload.github.com/chzyer/next/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248357752,"owners_count":21090400,"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-10-13T13:09:12.135Z","updated_at":"2025-04-11T06:35:04.101Z","avatar_url":"https://github.com/chzyer.png","language":"Go","readme":"# next\n[![build](https://travis-ci.org/chzyer/next.svg)](https://travis-ci.org/chzyer/next)\n\n### install\n\n```shell\n$ go get github.com/chzyer/next\n```\n\n### server\n\n```shell\n$ next sysenv -iface eth0 # enable ipforward and NAT, only work for linux\n$ next genkey\n617e819c1551a6be8e31b76ed5cb8157\n$ next server -key 617e819c1551a6be8e31b76ed5cb8157\n... running...\n```\n\nadd a user\n\n```shell\n$ next shell\nNext Server CLI\n -\u003e user add \u003cuserName\u003e\npassword:\n```\n\n### client\n\n```shell\n$ next client -key 617e819c1551a6be8e31b76ed5cb8157 -username \u003cuserName\u003e -password \u003cpassword\u003e \u003cserverHost\u003e\n```\n\n### test\n\n```shell\nping 10.8.0.1\nPING 10.8.0.1 (10.8.0.1) 56(84) bytes of data.\n64 bytes from 10.8.0.1: icmp_seq=1 ttl=64 time=1.07 ms\n64 bytes from 10.8.0.1: icmp_seq=2 ttl=64 time=0.971 ms\n64 bytes from 10.8.0.1: icmp_seq=3 ttl=64 time=1.41 ms\n64 bytes from 10.8.0.1: icmp_seq=4 ttl=64 time=1.47 ms\n```\n\n### route table\n```shell\n$ next shell\nNext Client CLI\n -\u003e route add 8.8.8.8/32 'google dns'\nroute item '8.8.8.8/32' added\n -\u003e route show\nItem:\n\t8.8.8.8/32\tgoogle dns\n -\u003e ^D\n\n$ netstat -nr | grep 8.8.8.8\nDestination     Gateway         Genmask         Flags   MSS Window  irtt Iface\n8.8.8.8         0.0.0.0         255.255.255.255 UH        0 0          0 utun0\n```\n\n### show speed\n```shell\n$ watch -n 1 next shell dchan speed\n\nEvery 1.0s: next shell dchan speed\n\nupload:   66B/s\ndownload: 84B/s\n```\n\n### show data channels\n```shell\n$ watch -n 1 next shell dchan list\n[1.1.1.1:62019 -\u003e 2.2.2.2:36152]: RTT: 767ms 767ms 516ms, LC: 0, LT: 2m13s\n[1.1.1.1:61992 -\u003e 2.2.2.2:47453]: RTT: 639ms 639ms 390ms, LC: 0, LT: 2m37s [*]\n[1.1.1.1:61920 -\u003e 2.2.2.2:34667]: RTT: 780ms 780ms 336ms, LC: 1s, LT: 4m0s [*]\n[1.1.1.1:61917 -\u003e 2.2.2.2:50859]: RTT: 786ms 786ms 395ms, LC: 0, LT: 4m1s [*]\n\n# RTT: round trip time, (15min, 5min, 1min)\n# LC: last commit time\n# LT: life time\n# [*]: data channels which is usable\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchzyer%2Fnext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchzyer%2Fnext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchzyer%2Fnext/lists"}