ThisSeanZhang
landscape
Rust

The goal is to make it easier to configure your favorite Linux distribution as a router. Built with Rust and eBPF.

Last updated Jul 7, 2026
1.5k
Stars
101
Forks
25
Issues
+9
Stars/day
Attention Score
81
Language breakdown
Rust 68.0%
Vue 16.7%
C 8.8%
TypeScript 6.1%
Shell 0.4%
Dockerfile 0.0%
โ–ธ Files click to expand
README

License: GPL v3

Landscape routes traffic by domainโ€”not just IP. Each flow gets its own DNS server.

DNS answers populate kernel eBPF maps. Packets are steered at XDP/TC wire speed.

No userspace datapath. No iptables.

Built with Rust / eBPF.

็ฎ€ไฝ“ไธญๆ–‡ | English | Documentation

Screenshot

Landscape Web UI

Architecture

Landscape separates traffic steering into two planes:

DNS plane (userspace). A flow is a policy group that devices join by IP or MAC. Each flow gets its own isolated Hickory DNS server with independent cache, upstream (UDP/DoH/DoT/DoQ), and rules. DNS answers populate per-flow eBPF maps in the kernel.

Data plane (kernel). XDP and TC hooks read these maps to steer packets at wire speed. Packets matching a flow are steered according to its policy. Everything else passes through directly โ€” no userspace context switch, zero overhead.

DNS results โ†’ eBPF flow maps โ†’ TC/XDP in-kernel steering โ†’ interface routing

DNS plane decides. Kernel enforces.

Core Features

  • DNS-driven traffic steering via eBPF โ€” DNS answers populate per-flow kernel maps
  • Fine-grained NAT โ€” strict NAT4 by default, per-domain/IP NAT1 exceptions (details)
  • Per-flow DNS isolation โ€” independent cache and upstream per flow, no cross-flow leaks
  • Redirect packets matching a flow into Docker containers โ€” extend with any TProxy-compatible program
  • Geo database management โ€” DAT and TXT format support
  • Full REST API โ€” everything in the UI is scriptable

Why Landscape

Standard Linux, no lock-in. Debian, Arch, openSUSE. Your distro, your rules.

Upgrade without fear. Single directory. Drop in a new binary, config auto-migrates. Downgrade works too.

NAT that fits your LAN. BT/PT on one device, everything else locked down โ€” domain-level control, no blanket rules.

One failure, one victim. Per-flow DNS and traffic policies. A container goes down? Only the traffic routed through it is affected.

Quick Start

Prerequisites

  • Linux kernel โ‰ฅ 6.9 with BTF/BPF enabled, root privileges; non-Linux kernels (FreeBSD, macOS) are not supported
  • Docker (optional, for container redirection)

1. Create the config directory

mkdir -p /root/.landscape-router

2. Download the release assets

  • From Releases (backend binary and frontend static assets are released separately)
- Download static.zip - Download the landscape-webserver binary for your architecture
  • Extract it to /root/.landscape-router/static (this is the default path, but it can be customized)

3. Start Landscape

Run as root:

./landscape-webserver

Defaults: config at /root/.landscape-router, HTTPS on port 6443, user/pass root / root.

Landscape can start directly without any pre-created configuration file. If you want to initialize it through landscape_init.toml, see the configuration guide on the documentation site.

You can check more options with ./landscape-webserver --help.

4. Open the management interface

  • http://landscape.local:6300 automatically redirects to HTTPS
  • https://landscape.local:6443 opens the Web UI
  • https://landscape.local:6443/api/docs opens the REST API docs

Run as a systemd Service

After confirming that the service is running correctly, you can configure it as a systemd service:

[Unit]
Description=Landscape Router

[Service] ExecStart=/root/landscape-webserver Restart=always User=root LimitMEMLOCK=infinity

[Install] WantedBy=multi-user.target

Replace ExecStart with the actual path to your binary.

Development

Build guide: BUILD.md | BUILD.zh.md

License

If you have suggestions or run into a problem, please open an issue.
๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท ThisSeanZhang/landscape ยท Updated daily from GitHub