All Projects → mwarning → Zerotier Openwrt

mwarning / Zerotier Openwrt

A OpenWrt package for ZeroTier One - Pull requests are welcome!

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Zerotier Openwrt

luci-openwisp
OpenWISP configuration interface implemented as LuCI extensions
Stars: ✭ 21 (-93.56%)
Mutual labels:  openwrt, lede
OpenWrtAction
Openwrt automatic compilation project of github action
Stars: ✭ 28 (-91.41%)
Mutual labels:  openwrt, lede
apm82181-lede
APM82181 LEDE Repository
Stars: ✭ 18 (-94.48%)
Mutual labels:  openwrt, lede
lede-dockerbuilder
A (container based) LEDE/OpenWrt image builder.
Stars: ✭ 53 (-83.74%)
Mutual labels:  openwrt, lede
Openwrt Shadowsocks
Shadowsocks-libev for OpenWrt/LEDE
Stars: ✭ 3,091 (+848.16%)
Mutual labels:  openwrt, lede
HomeLede
An Openwrt firmware for home use scenarios.
Stars: ✭ 925 (+183.74%)
Mutual labels:  openwrt, lede
scale-network
SCaLE's on-site expo network configurations, wifi, tooling, and scripts
Stars: ✭ 13 (-96.01%)
Mutual labels:  openwrt, lede
CloudFlare-DDNS-Script
CloudFlare-DDNS-Script Support LEDE/Openwrt with IPv4/IPv6
Stars: ✭ 40 (-87.73%)
Mutual labels:  openwrt, lede
firmware-core
nodewatcher firmware.
Stars: ✭ 26 (-92.02%)
Mutual labels:  openwrt, lede
OpenWrts
OPENWRT 固件(Raspberry Pi4B/3B+,NanoPi R4S,Orange Pi R1Plus,x86) 依源码更新自动编译
Stars: ✭ 100 (-69.33%)
Mutual labels:  openwrt, lede
ansible-openwrt
Ansible collection to configure your OpenWrt devices more quickly and automatically (without Python)
Stars: ✭ 34 (-89.57%)
Mutual labels:  openwrt, lede
Libuhttpd
A very flexible, lightweight and fully asynchronous HTTP server library based on libev and http-parser for Embedded Linux.
Stars: ✭ 302 (-7.36%)
Mutual labels:  openwrt, lede
openwrt-build-env
OpenWrt build environment in docker | Docker 中的 OpenWrt 编译环境
Stars: ✭ 77 (-76.38%)
Mutual labels:  openwrt, lede
openwrt-scripts
A collection of some useful scripts running on OpenWrt/LEDE routers
Stars: ✭ 43 (-86.81%)
Mutual labels:  openwrt, lede
plan44-feed
OpenWrt feed containing plan44 packages
Stars: ✭ 25 (-92.33%)
Mutual labels:  openwrt, lede
meta-openwrt
OE/Yocto metadata layer for OpenWRT
Stars: ✭ 75 (-76.99%)
Mutual labels:  openwrt, lede
lede-dockercompiler
Docker image to compile LEDE/OpenWrt from source
Stars: ✭ 21 (-93.56%)
Mutual labels:  openwrt, lede
gluon-firmware-selector
Firmware selector for gluon router images
Stars: ✭ 19 (-94.17%)
Mutual labels:  openwrt, lede
ansible-nnxx
Ansible configurations for the nnxx infrastructure
Stars: ✭ 11 (-96.63%)
Mutual labels:  openwrt, lede
scal
System Configuration Abstraction Layer
Stars: ✭ 14 (-95.71%)
Mutual labels:  openwrt, lede

ZeroTier-OpenWrt

ZeroTier has been merged into the official package repository and can be selected using the opkg package management tool.

ZeroTier One is a program to create a global provider-independent virtual private cloud. This project offers OpenWrt packages for ZeroTier.

Installing package

Download the prebuild package and copy it onto your OpenWrt installation, preferably into the /tmp folder.

Then install the ipk package file:

opkg install zerotier_*.ipk

Now start ZeroTier:

/etc/init.d/zerotier start

Compiling from Sources

To include ZeroTier One into your OpenWrt image or to create an .ipk package (equivalent to Debians .deb files), you have to build an OpenWrt image.

To build OpenWrt on Debian, you need to install these packages:

sudo apt-get install subversion g++ zlib1g-dev build-essential git python
sudo apt-get install libncurses5-dev gawk gettext unzip file libssl-dev wget

Now prepare OpenWrt:

git clone https://github.com/openwrt/openwrt
cd openwrt

./scripts/feeds update -a
./scripts/feeds install -a

Now you can insert the zerotier package using a package feed or add the package manually.

Add package by feed

A feed is the standard way packages are made available to the OpenWrt build system.

Put this line in your feeds list file (e.g. feeds.conf.default)

src-git zerotier https://github.com/mwarning/zerotier-openwrt.git

Update and install the new feed

./scripts/feeds update zerotier
./scripts/feeds install zerotier

Now continue with the building packages section.

Add package by hand

git clone https://github.com/mwarning/zerotier-openwrt.git
cp -rf zerotier-openwrt/zerotier package/
rm -rf zerotier-openwrt/

Now continue with the building packages section.

Building Packages

Configure packages:

make menuconfig

Now select the appropiate "Target System" and "Target Profile" depending on what target chipset/router you want to build for. Also mark the ZeroTier package under Network ---> VPN ---> <*> zerotier.

Now compile/build everything:

make

The images and all *.ipk packages are now inside the bin/ folder, including the zerotier package. You can install the ZeroTier .ipk on the target device using opkg install <ipkg-file>.

For details please check the OpenWrt documentation.

Build bulk packages

For a release, it is useful the build packages at a bulk for multiple targets:

#!/bin/sh

# dumpinfo.pl is used to get all targets configurations:
# https://git.openwrt.org/?p=buildbot.git;a=blob;f=phase1/dumpinfo.pl

./dumpinfo.pl architectures | while read pkgarch target1 rest; do
  echo "CONFIG_TARGET_${target1%/*}=y" > .config
  echo "CONFIG_TARGET_${target1%/*}_${target1#*/}=y" >> .config
  echo "CONFIG_PACKAGE_example1=y" >> .config

  # Debug output
  echo "pkgarch: $pkgarch, target1: $target1"

  make defconfig
  make -j4 tools/install
  make -j4 toolchain/install

  # Build package
  make package/zerotier/{clean,compile}

  # Free space (optional)
  rm -rf build_dir/target-*
  rm -rf build_dir/toolchain-*
done
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].