Lokinet is an anonymous, decentralized and IP based overlay network for the internet.
Go to file
Jason Rhinelander 3deb55193f SockAddr string optimization
- Reduce buffer size to INET6_ADDRSTRLEN, and use a single buf rather
  than two identical ones in each branch.
- Don't pre-reserve because doing so is usually going to over-allocate,
  but also because it prevents SSO, especially for the IPv4 case which
  should fit in SSO for all IPv4 addresses.
2021-08-30 16:55:17 -03:00
.github
cmake use $(MAKE) only on makefile generator 2021-06-19 09:35:49 -04:00
contrib bencode-dump.py: support reading from stdin 2021-08-06 14:25:32 -03:00
crypto redo cmake parts 2021-04-19 06:52:24 -04:00
daemon fix linking on win32 for lokinet.dll 2021-06-08 08:32:44 -04:00
docs fix up docs generation 2021-06-29 12:17:33 -04:00
external Remove double cpr submodule 2021-06-01 10:49:38 -03:00
include export functions in liblokinet for win32 dll 2021-06-08 08:32:52 -04:00
jni add new JNI function: LokinetDaemon DumpStatus 2021-06-20 05:55:33 -04:00
llarp SockAddr string optimization 2021-08-30 16:55:17 -03:00
pybind use weak_ptr on a path to reference its parent pathset instead of a bare pointer so crashes dont happen 2021-06-08 14:36:32 -04:00
test Remove unneeded split(str, char) method 2021-08-11 00:26:52 -03:00
win32-setup rebrand and bump version 2021-04-14 12:55:52 -04:00
.clang-format Config file improvements (#1397) 2020-10-07 18:22:58 -04:00
.clang-tidy Tweak clang-tidy rules 2021-03-04 16:51:18 -04:00
.dir-locals.el
.dockerignore Add fail-able docker build for gcc trunk 2019-08-02 10:28:09 +01:00
.drone.jsonnet pass VERBOSE=1 in ci jobs for full verbosity on builds 2021-06-19 09:35:50 -04:00
.gitattributes Don't ignore .exe, .png, .gif 2020-03-05 19:09:27 -04:00
.gitignore Add more junk & clangd symlinks to .gitignore 2021-03-04 16:51:18 -04:00
.gitmodules Remove double cpr submodule 2021-06-01 10:49:38 -03:00
CMakeLists.txt Fix typo in libuv error message 2021-07-05 10:41:09 -03:00
CMakeSettings.json Fixup MSVC build 2019-05-15 23:03:24 +01:00
CONTRIBUTING_es.md Create CONTRIBUTING_es.md 2019-07-19 22:04:50 -05:00
CONTRIBUTING.md Update CONTRIBUTING.md 2019-07-19 22:08:47 -05:00
LICENSE.txt update license preamble 2020-05-17 11:27:41 -04:00
lokinet-docker.ini
readme_es.md update urls 2021-06-30 05:47:16 -04:00
readme_ru.md update urls 2021-06-30 05:47:16 -04:00
readme.md Update readme.md 2021-07-29 15:51:19 +10:00
release_es.md Create release_es.md 2019-07-19 21:44:17 -05:00
release_ru.md Adding Russian translation (#1447) 2020-11-03 09:11:18 -05:00
release.md add release key files 2019-06-12 19:31:12 -04:00

Lokinet

Español Русский

Lokinet is the reference implementation of LLARP (low latency anonymous routing protocol), a layer 3 onion routing protocol.

You can learn more about the high level design of LLARP here

And you can read the LLARP protocol specification here

You can view documentation on how to get started here .

A simple demo application that is lokinet "aware" can be found here

Build Status

Building

Build requirements:

  • Git
  • CMake
  • C++ 17 capable C++ compiler
  • libuv >= 1.27.0
  • libsodium >= 1.0.18
  • libcurl (for lokinet-bootstrap)
  • libunbound
  • libzmq
  • sqlite3

Linux

You do not have to build from source if you are on debian or ubuntu as we have apt repositories with pre-built lokinet packages on deb.oxen.io.

You can install these using:

$ sudo curl -so /etc/apt/trusted.gpg.d/oxen.gpg https://deb.oxen.io/pub.gpg
$ echo "deb https://deb.oxen.io $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/oxen.list
$ sudo apt update
$ sudo apt install lokinet

If you are not on a platform supported by the debian packages or if you want to build a dev build, this is the most "portable" way to do it:

$ sudo apt install build-essential cmake git libcap-dev pkg-config automake libtool
$ git clone --recursive https://github.com/oxen-io/lokinet
$ cd lokinet
$ mkdir build
$ cd build
$ cmake .. -DBUILD_STATIC_DEPS=ON -DBUILD_SHARED_LIBS=OFF -DSTATIC_LINK=ON
$ make -j$(nproc)

install:

$ sudo make install

macOS

You can get the latest stable macos relase from https://lokinet.org/ or check the releases page on github.

alternatively you can build from source, make sure you have cmake, libuv and xcode command line tools installed:

$ git clone --recursive https://github.com/oxen-io/lokinet
$ cd lokinet
$ mkdir build
$ cd build
$ cmake .. -DBUILD_STATIC_DEPS=ON -DBUILD_SHARED_LIBS=OFF -DSTATIC_LINK=ON
$ make -j$(sysctl -n hw.ncpu)

install:

$ sudo make install

Windows

You can get the latest stable windows release from https://lokinet.org/ or check the releases page on github.

windows builds are cross compiled from debian/ubuntu linux

additional build requirements:

  • nsis
  • cpack

setup:

$ sudo apt install build-essential cmake git pkg-config mingw-w64 nsis ninja-build

building:

$ git clone --recursive https://github.com/oxen-io/lokinet
$ cd lokinet
$ ./contrib/windows.sh

Solaris 2.10+

NOTE: Oracle Solaris users need to download/compile the TAP driver from http://www.whiteboard.ne.jp/~admin2/tuntap/

The generated binaries may work on Solaris 2.10 or earlier, you're on your own. (Recommended: -static-libstdc++ -static-libgcc, and the TAP driver if not already installed on the target system.)

Building on a v2.10 or earlier system is unsupported, and may not even work; recent GCC releases have progressively dropped support for older system releases.

build:

$ sudo pkg install build-essential gcc8 wget tuntap cmake (optional: ninja ccache - from omnios extra) (OmniOS CE)
$ sudo pkg install base-developer-utilities developer-gnu developer-studio-utilities gcc-7 wget cmake (Oracle Solaris, see note)
$ sudo pkg install build-essential wget gcc-8 documentation/tuntap header-tun tun (optional: ninja ccache) (all other SunOS)
$ git clone --recursive https://github.com/oxen-io/lokinet
$ cd lokinet
$ mkdir build
$ cd build
$ cmake ..
$ make -j$(nproc)

install:

$ sudo make install

FreeBSD

build:

$ pkg install cmake git pkgconf
$ git clone --recursive https://github.com/oxen-io/lokinet
$ cd lokinet
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DSTATIC_LINK=ON -DBUILD_SHARED_DEPS=ON ..
$ make

install (root):

# make install

Usage

Debian / Ubuntu packages

When running from debian package the following steps are not needed as it is already ready to use.

Create default config

to configure as client:

$ lokinet -g
$ lokinet-bootstrap

to configure as relay:

$ lokinet -r -g
$ lokinet-bootstrap

Running on Linux

DO NOT RUN AS ROOT, run as normal user.

to run, after you create default config:

$ lokinet

This requires the binary to have the proper capabilities which is usually set by make install on the binary. If you have errors regarding permissions to open a new interface this can be resolved using:

$ sudo setcap cap_net_admin,cap_net_bind_service=+eip /usr/local/bin/lokinet

Running on macOS/UNIX/BSD

YOU HAVE TO RUN AS ROOT, run using sudo. Elevated privileges are needed to create the virtual tunnel interface.

The macOS installer places the normal binaries (lokinet and lokinet-bootstrap) in /usr/local/bin which should be in your path, so you can easily use the binaries from your terminal. The installer also nukes your previous config and keys and sets up a fresh config and downloads the latest bootstrap seed.

to run, after you create default config:

$ sudo lokinet