bubuntux/nordlynx

By bubuntux

Updated 3 months ago

Image
18

100K+

bubuntux/nordlynx repository overview

bubuntux/nordlynx

Quick reference

Supported tags

  • edge (created nightly)
  • latest (created monthly or on demand)
  • YYYYmmdd (created monthly or on demand)

Quick reference (cont.)

What is NordLynx?

NordLynx is a technology built around the WireGuard® VPN protocol. It lets you experience WireGuard’s speed benefits without compromising your privacy. You can find more information about NordLynx in this blog post. nordlynx

What is WireGuard?

WireGuard® is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPsec, while avoiding the massive headache. It intends to be considerably more performant than OpenVPN. WireGuard is designed as a general purpose VPN for running on embedded interfaces and super computers alike, fit for many different circumstances. Initially released for the Linux kernel, it is now cross-platform (Windows, macOS, BSD, iOS, Android) and widely deployable. It is currently under heavy development, but already it might be regarded as the most secure, easiest to use, and simplest VPN solution in the industry.

wireguard

Road warriors, roaming and returning home

If you plan to use Wireguard both remotely and locally, say on your mobile phone, you will need to consider routing. Most firewalls will not route ports forwarded on your WAN interface correctly to the LAN out of the box. This means that when you return home, even though you can see the Wireguard server, the return packets will probably get lost.

This is not a Wireguard specific issue and the two generally accepted solutions are NAT reflection (setting your edge router/firewall up in such a way as it translates internal packets correctly) or split horizon DNS (setting your internal DNS to return the private rather than public IP when connecting locally).

Both of these approaches have positives and negatives however their setup is out of scope for this document as everyone's network layout and equipment will be different.

Usage

Here are some example snippets to help you get started creating a container.

---
version: "3"
services:
  nordlynx:
    image: ghcr.io/bubuntux/nordlynx
    container_name: nordlynx
    cap_add:
      - NET_ADMIN #required
    environment:
      - PRIVATE_KEY=xxxxxxxxx #required
    restart: unless-stopped
docker cli (click here for more info)
docker run -d \
  --name=nordlynx \
  --cap-add=NET_ADMIN `#required` \
  -e PRIVATE_KEY=xxxxxxxxx `#required` \
  --restart unless-stopped \
  ghcr.io/bubuntux/nordlynx

Env Variables

VariableDefaultDescription
PRIVATE_KEY[Required]The private key can be obtained using docker run --rm --cap-add=NET_ADMIN -e USER=XXX -e PASS=YYY bubuntux/nordvpn nord_private_key or following these instructions.
LISTEN_PORT51820A 16-bit port for listening.
ADDRESS10.5.0.2/32A comma-separated list of IP (v4 or v6) addresses (optionally with CIDR masks) to be assigned to the interface.
DNS103.86.96.100,103.86.99.100A comma-separated list of IP (v4 or v6) addresses to be set as the interface's DNS servers, or non-IP hostnames to be set as the interface's DNS search domains.
TABLEautoControls the routing table to which routes are added. There are two special values: off disables the creation of routes altogether, and auto (the default) adds routes to the default table and enables special handling of default routes.
ALLOWED_IPS0.0.0.0/0A comma-separated list of IP (v4 or v6) addresses with CIDR masks from which incoming traffic for this peer is allowed and to which outgoing traffic for this peer is directed. Use 0.0.0.0/1 for Synology, read this.
PERSISTENT_KEEP_ALIVE25A second interval, between 1 and 65535 inclusive, of how often to send an authenticated empty packet to the peer for the purpose of keeping a stateful firewall or NAT mapping valid persistently.
PRE_UP/POST_UP/PRE_DOWN/POST_DOWNScript snippets which will be executed by bash before/after setting up/tearing down the interface, most commonly used to configure custom DNS options or firewall rules. The special string %i is expanded to INTERFACE. Each one may be specified multiple times, in which case the commands are executed in order.
QUERYQuery for the api nordvpn
PUBLIC_KEYPublic key of the server to connect (auto select base on recommendation api).
END_POINTIp address of the server to connect (auto select base on recommendation api).
ALLOW_LISTList of domains that are going to be accessible outside vpn (IE rarbg.to,yts.mx).
NET_LOCALCIDR networks (IE 192.168.1.0/24), add a route to allows replies once the VPN is up.
NET6_LOCALCIDR IPv6 networks (IE fe00:d34d:b33f::/64), add a route to allows replies once the VPN is up.

Sysctl

  • net.ipv4.conf.all.src_valid_mark=1 May be required. (depends on multiple factors)
  • net.ipv6.conf.all.disable_ipv6=1 Recommended when only using ipv4.

Tag summary

Content type

Image

Digest

sha256:2e1444bec

Size

12.8 MB

Last updated

3 months ago

docker pull bubuntux/nordlynx:2025-11-22