Skip to main content

Python CLI client for slipstream-rust DNS tunnel

Project description

LocalStream

Version Python Platform License PyPI Downloads

A Python client for slipstream-rust, Ping Tunnel and DNSTT, Sing-Box and DoH. designed to bypass censorship and secure your connection with more than 5 methods!.


📖 Overview

LocalStream simplifies the usage of complex DNS tunneling. It wraps the powerful slipstream-rust, PingTunnel, DNSTT, Sing-Box and DoH into a user-friendly interface that manages dependencies, connectivity, and routing automatically.

Designed specifically to operate in restricted network environments, LocalStream supports advanced features like TLS Fragmentation and System-wide VPN (via tun2proxy). Whether you need to secure your entire system or just provide a SOCKS5 proxy for specific applications, LocalStream offers a stable and resilient solution.

✨ Features

  • Dual Operation Modes: Switch effortlessly between VPN Mode (full device tunneling) and Proxy Mode (SOCKS5).
  • Censorship Circumvention: Optimized for users in high-censorship regions (e.g., Iran), with support for TLS fragmentation and custom DNS resolvers.
  • Automated Management: Automatically downloads and configures necessary binaries (slipstream-client, tun2proxy, wintun).
  • Resilient Connectivity:
    • Auto-Reconnect: Intelligent watchdog monitors your connection and reconnects instantly if it drops.
    • Auto-Restart: Optional scheduled restarts to maintain long-term stability.
  • Config Import/Export: Securely share configuration profiles encrypted with .local files.
  • DNS Checker: you can use the DNS Checker in both CLI and GUI to check if your DNS works or not.
  • Multi-Muthod Support: this tool supports SlipStream/DNSTT/PingTunnel Configs in both CLI and GUI

📥 Installation

For End Users

Download the latest Setup/Portable from our releases page and run the installer.

For Developers

Install via pip:

pip install localstream

Or for local development:

git clone https://github.com/ShiftGlory/LocalStream.git
cd LocalStream
pip install -e .

🚀 Usage

GUI Application

Launch LocalStream from your Start Menu or Desktop shortcut.

  1. Add your server configuration or import a profile.
  2. Select VPN Mode or Proxy Mode.
  3. Click Connect.

Command Line Interface (CLI)

Run the application from your terminal:

LocalStream

Follow the interactive menu prompts to configure your server and start the connection.

⚠️ Important: To use VPN Mode, you must run the application with elevated privileges:

  • Windows: Run as Administrator
  • Linux: Run with sudo

⚙️ Configuration

Your configuration is stored in ~/.localstream/config.json. You can edit it via the application or manually:

{
  "server_ip": "203.0.113.2",
  "server_port": 53,
  "local_port": 5201,
  "domain": "s.example.com",
  "keep_alive_interval": 200,
  "congestion_control": "bbr",
  "enable_fragmentation": false,
  "auto_restart_minutes": 0
}

🛠️ Requirements

  • Operating System: Windows 10/11 or Linux (Ubuntu, Debian, Fedora, Arch, etc.)
  • Python: 3.11 or higher (for source installation)
  • Privileges: Administrator/sudo rights (required for VPN mode)

🤝 Contributing

We welcome contributions! Please check out our CONTRIBUTING.md guide for details on how to get involved.

🔒 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 GloryMajor

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.9.tar.gz (49.6 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.9-py3-none-any.whl (52.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: localstream-1.0.9.tar.gz
  • Upload date:
  • Size: 49.6 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.9.tar.gz
Algorithm Hash digest
SHA256 dea5b213e0391d60602c53c2223781723471d060d625146015a5fddcb3246659
MD5 a24d64adb02a29ac16fc3bc1d20ae35c
BLAKE2b-256 aeea9ef63dfc98e287f2bbf7e59c8e2169f258a933c19b5c0145a46552a3dc98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: localstream-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 52.1 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9dc874362f2a6f32a238c31e523df0122dab668f1910f796bf6e45eef76bcf8c
MD5 4a411988a113d2fccf5333be80f9c95c
BLAKE2b-256 39b969aeb33ec62bcf5272fa003d7c6626271b2b08566e174c316bdffadf8aa7

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