{"id":13522856,"url":"https://github.com/mwarning/zerotier-openwrt","last_synced_at":"2025-03-31T23:32:33.093Z","repository":{"id":26285281,"uuid":"29732873","full_name":"mwarning/zerotier-openwrt","owner":"mwarning","description":"A OpenWrt package for ZeroTier One - Pull requests are welcome!","archived":false,"fork":false,"pushed_at":"2024-10-04T09:13:39.000Z","size":121,"stargazers_count":688,"open_issues_count":6,"forks_count":145,"subscribers_count":39,"default_branch":"master","last_synced_at":"2024-11-02T07:33:16.001Z","etag":null,"topics":["lede","openwrt","zerotier"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mwarning.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2015-01-23T13:07:35.000Z","updated_at":"2024-10-31T05:50:26.000Z","dependencies_parsed_at":"2022-07-18T03:00:42.447Z","dependency_job_id":"4381a811-f411-4e07-80e1-74853c73ee73","html_url":"https://github.com/mwarning/zerotier-openwrt","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwarning%2Fzerotier-openwrt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwarning%2Fzerotier-openwrt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwarning%2Fzerotier-openwrt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwarning%2Fzerotier-openwrt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mwarning","download_url":"https://codeload.github.com/mwarning/zerotier-openwrt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246558108,"owners_count":20796696,"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":["lede","openwrt","zerotier"],"created_at":"2024-08-01T06:00:52.992Z","updated_at":"2025-03-31T23:32:28.083Z","avatar_url":"https://github.com/mwarning.png","language":"Shell","funding_links":[],"categories":["ZeroTier OpenWrt","Shell"],"sub_categories":[],"readme":"# ZeroTier-OpenWrt\n\n*ZeroTier has been merged into the [official package repository](https://openwrt.org/packages/pkgdata/zerotier) and can be selected using the opkg package management tool.*\n\n[ZeroTier One](https://www.zerotier.com) is a program to create a global provider-independent virtual private cloud.\nThis project offers OpenWrt packages for ZeroTier.\n\n## Installing package\n\nDownload the [prebuild package](https://github.com/mwarning/zerotier-openwrt/releases) and copy it onto your OpenWrt installation, preferably into the /tmp folder.\n\nThen install the ipk package file:\n\n```\nopkg install zerotier_*.ipk\n```\n\nNow enable ZeroTier:\n\n```\nuci set zerotier.global.enabled='1'\nuci commit zerotier\n```\n\nNow start ZeroTier\n\n```\n/etc/init.d/zerotier start\n```\n\n## Compiling from Sources\n\nTo include ZeroTier One into your OpenWrt image or to create\nan .ipk package (equivalent to Debians .deb files),\nyou have to build an OpenWrt image.\n\nTo build OpenWrt on Debian, you need to install these packages:\n\n```\nsudo apt-get install subversion g++ zlib1g-dev build-essential git python\nsudo apt-get install libncurses5-dev gawk gettext unzip file libssl-dev wget\n```\n\nNow prepare OpenWrt:\n\n```\ngit clone https://github.com/openwrt/openwrt\ncd openwrt\n\n./scripts/feeds update -a\n./scripts/feeds install -a\n```\n\nNow you can insert the zerotier package using a package feed (see `Add package by feed`) or add the package manually (see `Add package by hand`).\n\n### Add package by feed\n\nA feed is the standard way packages are made available to the OpenWrt build system.\n\nPut this line in your feeds list file (e.g. `feeds.conf`, or `feeds.conf.default`)\n\n```\nsrc-git zerotier https://github.com/mwarning/zerotier-openwrt.git\n```\n\nUpdate and install the new feed\n\n```\n./scripts/feeds update zerotier\n./scripts/feeds install zerotier\n```\n\nNow continue with the building packages section (see `Building Packages`).\n\n### Add package by hand\n\n```\ngit clone https://github.com/mwarning/zerotier-openwrt.git\ncp -rf zerotier-openwrt/zerotier package/\nrm -rf zerotier-openwrt/\n```\n\nNow continue with the building packages section (see `Building Packages`).\n\n### Building Packages\n\nConfigure packages:\n\n```\nmake menuconfig\n```\n\nNow select the appropiate \"Target System\" and \"Target Profile\"\ndepending on what target chipset/router you want to build for.\nAlso mark the ZeroTier package under Network ---\u003e VPN ---\u003e \u003c\\*\u003e zerotier.\n\nNow compile/build everything:\n\n```\nmake -j8\n```\n\nThe images and all \\*.ipk packages are now inside the `bin/` folder, including the zerotier package.\nYou can install the ZeroTier .ipk on the target device using `opkg install \u003cipkg-file\u003e`.\n\nFor details please check the OpenWrt documentation.\n\n#### Build bulk packages\n\nFor a release, it is useful the build packages at a bulk for multiple targets:\n\n```\n#!/bin/sh\n\n# dump-target-info.pl is used to get all targets configurations:\n# https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=scripts/dump-target-info.pl\n\n./scripts/dump-target-info.pl architectures | while read pkgarch target1 rest; do\n  echo \"CONFIG_TARGET_${target1%/*}=y\" \u003e .config\n  echo \"CONFIG_TARGET_${target1%/*}_${target1#*/}=y\" \u003e\u003e .config\n  echo \"CONFIG_PACKAGE_example1=y\" \u003e\u003e .config\n\n  # Debug output\n  echo \"pkgarch: $pkgarch, target1: $target1\"\n\n  make defconfig\n  make -j4 tools/install\n  make -j4 toolchain/install\n\n  # Build package\n  make package/zerotier/{clean,compile}\n\n  # Free space (optional)\n  rm -rf build_dir/target-*\n  rm -rf build_dir/toolchain-*\ndone\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwarning%2Fzerotier-openwrt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmwarning%2Fzerotier-openwrt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwarning%2Fzerotier-openwrt/lists"}