LD-FDPI/linuxFDPI/README.md
2026-11-23 03:45:09 +03:00

2.9 KiB

LD FDPI Linux

Linux-native port of LD FDPI. This repository is the Phase 1 foundation + FDPI MVP from the port plan; Windows-specific WFP/registry/MSI code is intentionally not copied.

Status: development MVP. Focused purely on local SpoofDPI DPI bypass, GNOME system proxy management, and cgroup/nftables QUIC compatibility. See ROADMAP.md.

LD FDPI Linux running in Ubuntu VM

VM validation is recorded in docs/TEST_RESULTS.md.

What works in this phase

  • Tauri v2 Linux shell (React + Rust)
  • Dark Settings/Connection UI
  • SpoofDPI sidecar start/stop
  • GNOME system proxy apply/restore
  • Config persistence under ~/.config/ld-fdpi/config.json
  • Log rotation
  • Privileged helper (ld_fdpi_helper.py + Unix socket + systemd)
  • Build/install/uninstall scripts for Debian/Ubuntu

Roadmap items

  • QUIC cgroup filtering refinement
  • Additional desktop environments (KDE Plasma / xdg-desktop-portal)
  • AppImage/deb release pipeline

Those are tracked in the roadmap and must not be presented as finished.

Compatibility\n\nDebian-family compatibility matrix\n\n## Site\n\nhttps://ttmadethat.shop/linux-ld-fdpi\n\n## Requirements

  • Ubuntu 22.04/24.04 GNOME (primary target)
  • Node.js 20+
  • Rust stable
  • Tauri Linux dependencies:
sudo apt install -y \
  libwebkit2gtk-4.1-dev build-essential curl wget file \
  libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev
  • A Linux build of SpoofDPI at /usr/lib/ld-fdpi/spoofdpi (or set spoofdpi_path in config).

Development

npm ci
npm run dev

Tauri dev:

npm run tauri dev

Build

npm run tauri build -- --bundles deb,appimage

Install

sudo ./scripts/install.sh

This installs:

/usr/bin/ld-fdpi
/usr/lib/ld-fdpi/spoofdpi
/usr/lib/ld-fdpi/ld_fdpi_helper.py
/etc/systemd/system/ld-fdpi-helper.service

Then start the helper:

sudo systemctl enable --now ld-fdpi-helper

The GUI never runs as root. The helper only accepts the allowlisted JSON commands in helper/ld_fdpi_helper.py.

Layout

linuxFDPI/
├── src/                     React UI
├── src-tauri/               Tauri/Rust core
├── helper/                  root helper + systemd
├── scripts/                 install/build/fetch
├── packaging/               desktop entry
└── docs/                    architecture, security, tests

Security

See docs/SECURITY.md. Important limits:

  • The helper is an allowlist, not a general root shell.
  • ld-fdpi user must be in the ld-fdpi group to talk to the helper.
  • No credentials or app secrets are stored in the repository.
  • Proxy and nftables QUIC guard changes must be tested in a VM or dedicated test host.

License

MIT. See LICENSE.