{"id":13548596,"url":"https://github.com/mehrdadrad/radvpn","last_synced_at":"2025-04-12T22:34:35.667Z","repository":{"id":41149384,"uuid":"216948075","full_name":"mehrdadrad/radvpn","owner":"mehrdadrad","description":"Decentralized VPN","archived":false,"fork":false,"pushed_at":"2020-05-22T21:45:10.000Z","size":274,"stargazers_count":1165,"open_issues_count":3,"forks_count":87,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-04-04T02:07:07.559Z","etag":null,"topics":["cbc","crypto","decentralized","gcm","golang","security","vpn"],"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/mehrdadrad.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":"2019-10-23T02:10:53.000Z","updated_at":"2025-04-02T10:00:41.000Z","dependencies_parsed_at":"2022-07-10T15:47:18.916Z","dependency_job_id":null,"html_url":"https://github.com/mehrdadrad/radvpn","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/mehrdadrad%2Fradvpn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehrdadrad%2Fradvpn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehrdadrad%2Fradvpn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehrdadrad%2Fradvpn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mehrdadrad","download_url":"https://codeload.github.com/mehrdadrad/radvpn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248642279,"owners_count":21138350,"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":["cbc","crypto","decentralized","gcm","golang","security","vpn"],"created_at":"2024-08-01T12:01:12.294Z","updated_at":"2025-04-12T22:34:35.632Z","avatar_url":"https://github.com/mehrdadrad.png","language":"Go","funding_links":[],"categories":["Go","Go (531)","\u003ca id=\"d62a971d37c69db9f3b9187318c3921a\"\u003e\u003c/a\u003e工具","相关技术","3. Common Tools"],"sub_categories":["\u003ca id=\"8ea8f890cf767c3801b5e7951fca3570\"\u003e\u003c/a\u003e公网访问局域网","去中心化网络 Decentralized file storage"],"readme":"## Decentralized VPN\n[![Build Status](https://travis-ci.org/mehrdadrad/radvpn.svg?branch=master)](https://travis-ci.org/mehrdadrad/radvpn) \n[![Go Report Card](https://goreportcard.com/badge/github.com/mehrdadrad/radvpn)](https://goreportcard.com/report/github.com/mehrdadrad/radvpn)\n[![GoDoc](https://godoc.org/github.com/mehrdadrad/radvpn?status.svg)](https://godoc.org/github.com/mehrdadrad/radvpn)\n\n![Alt text](/docs/imgs/radvpn.png?raw=true \"radvpn\")\n\nThe RadVPN doesn't need any central point as it connects to other nodes directly (full mesh) it has built-in router that helps packets to route to the approperate destinations. there are two options for configuration: yaml file and if you want to have central configuration management it supports [etcd](https://github.com/etcd-io/etcd). for the time being it supports symmetric encryptions and Linux platform.\n\n## Build\nGiven that the Go Language compiler (version 1.11 or greater is required) is installed, you can build it with:\n```bash\ngo get github.com/mehrdadrad/radvpn\ncd $GOPATH/src/github.com/mehrdadrad/radvpn\ngo build .\n```\n\n## Docker\n```bash\ndocker pull mehrdadrad/radvpn:latest\ndocker run --privileged -d -p 8085:8085 -v $(pwd)/radvpn.yaml:/etc/radvpn.yaml -e RADVPN_NODE_NAME=node1 mehrdadrad/radvpn:latest\n```\n\n## Basic Config\nWith the default it tries to load config.yaml file individually at each node, but it can be configured to use same configuration through [etcd](https://github.com/etcd-io/etcd). Once the configuration is changed, it loads and applies new changes by itself. Below yaml is a sample configuration:\n\n![Alt text](/docs/imgs/simpleconfig.png?raw=true \"radvpn\")\n\n```yaml\nrevision: 1\n\ncrypto:\n  type: gcm\n  key: 6368616e676520746869732070617373776f726420746f206120736563726574\n\nnodes:\n  - node:\n      name: node1\n      address: 8.121.55.10\n      privateAddresses:\n        - 10.0.1.1/24\n      privateSubnets:\n        - 10.0.1.0/24\n  - node:\n      name: node2\n      address: 84.12.92.45\n      privateAddresses:\n        - 10.0.2.1/24\n      privateSubnets:\n        - 10.0.2.0/24        \n```\n### Run\n```bash\nradvpn -config radvpn.conf \n```\n\n### Configuration keys\n- revision - the watcher works based on the revision number; once it increased, the configuration will be loaded immediately\n- server\n  - keepalive - frequency duration of radvpn-to-radvpn ping to check if a connection is alive (default is 10 seconds)\n  - insecure - disable encryption (default is false)\n  - mtu - sets the mtu of the tunnel interface\n  - maxworkers - sets number of concurrent workers (read/write to/from tunnel concurrently) \n  - address - sets ip address and ports (format : ip:port)\n  - name - sets the name of the current node \n- crypto\n  - type\n     - gcm - galois/counter mode\n     - cbc - cipher block chaining\n  - key - secret key\n- etcd\n  - endpoints - sets the etcd endpoints\n  - timeout - sets etcd endpoints timeout\n- nodes\n  - node\n     - name - node's name \n     - address - node's external ip address\n     - privateAddresses - sets private address(es) on the tunnel interface\n     - privateSubnets - sets reachable subnet(s) from currect node\n\n### Configuration with [etcd](https://github.com/etcd-io/etcd)\n![Alt text](/docs/imgs/radvpnetcd.png?raw=true \"radvpn etcd\")\n\n[sample configuration](https://github.com/mehrdadrad/radvpn/blob/master/radvpn.yaml)\n#### Run with etcd\n```bash\nradvpn -config radvpn.conf -etcd\n```\n#### Update etcd from yaml file\n```bash\nradvpn -update etcd -config radvpn.yaml\n```\n\n## License\nThis project is licensed under MIT license. Please read the LICENSE file.\n\n## Contribute\nWelcomes any kind of contribution, please follow the next steps:\n\n- Fork the project on github.com.\n- Create a new branch.\n- Commit changes to the new branch.\n- Send a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehrdadrad%2Fradvpn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmehrdadrad%2Fradvpn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehrdadrad%2Fradvpn/lists"}