Skip to main content

Python CLI client for slipstream-rust DNS tunnel

Project description

LocalStream

Version Python Platform License

A high-performance, resilient Python CLI client for the slipstream-rust DNS tunnel.


📖 Overview

LocalStream simplifies the usage of standard DNS tunneling. It provides a robust, menu-driven interface to manage connections, supporting both System-wide VPN (via tun2proxy) and SOCKS5 Proxy modes. Whether you need to secure your entire system or just specific applications, LocalStream handles the complexity for you.

✨ Features

  • 🚀 High Performance: Optimized for Windows with minimal resource overhead.
  • 🛡️ VPN Mode: Full system-wide traffic tunneling (requires Administrator privileges).
  • 🔌 Proxy Mode: Flexible SOCKS5 proxy on local port 5201 (default).
  • 🔄 Auto-Reconnect: Intelligent connection watchdog that keeps you online.
  • 📦 Smart Dependency Management: Automatically downloads and manages slipstream-client, tun2proxy, and wintun drivers.

📥 Installation

Install easily via pip:

pip install localstream

For development (editable mode):

pip install -e .

🚀 Usage

To start the application, simply run:

LocalStream

⚠️ Important: To use VPN Mode, you must run your terminal (Command Prompt or PowerShell) as Administrator.

🎮 Controls

  • Menu Navigation: Follow the on-screen prompts (Enter numbers 1, 2, 3...).
  • Disconnect: Press Ctrl+C to safely stop the connection and return to the menu.
  • Force Restart: Press Ctrl+D to force a reconnection attempt.

⚙️ Configuration

Configuration is automatically created at first run in ~/.localstream/config.json. You can also edit it via the CLI menu.

{
  "server_ip": "203.0.113.2",
  "server_port": 53,
  "local_port": 5201,
  "domain": "s.example.com"
}

🛠️ Requirements

  • Operating System: Windows 10 / 11
  • Runtime: Python 3.13 or higher
  • Permissions: Administrator rights (only for VPN mode)

🤝 Contributing

We welcome contributions! Please check out our CONTRIBUTING.md guide for guidelines on how to proceed.

🔒 Security

We take security seriously. Please review our SECURITY.md policy for reporting vulnerabilities.

📄 License

This project is licensed under the Apache-2.0 License. See the LICENSE file for full details.


Built with ❤️ by the LocalStream Team

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

localstream-1.0.3.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

localstream-1.0.3-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file localstream-1.0.3.tar.gz.

File metadata

  • Download URL: localstream-1.0.3.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for localstream-1.0.3.tar.gz
Algorithm Hash digest
SHA256 01a0bd7979e2ade63df24e0a0a71d9220f1205724c5aff5f3e00fb7e496593d1
MD5 0bddaf025b75ab164c4ce08800f35ad3
BLAKE2b-256 24ab42b3033ea5137e0b472e8ce1dfe642ddcaeba295d23b3439eee40b0fbabe

See more details on using hashes here.

File details

Details for the file localstream-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: localstream-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for localstream-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 63f9271080484a1e959c7c36b140efb424b6a69d252a820aca29a42544c11b75
MD5 62cfa7b8e37cfdf2d1626d8483acfb44
BLAKE2b-256 c8b55ae9add5e458d68fb507d3c7324c65f01b39a122825f09d45c8173587217

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page