Python CLI client for slipstream-rust DNS tunnel
Project description
LocalStream
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
.localfiles. - 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.
- Add your server configuration or import a profile.
- Select VPN Mode or Proxy Mode.
- 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dea5b213e0391d60602c53c2223781723471d060d625146015a5fddcb3246659
|
|
| MD5 |
a24d64adb02a29ac16fc3bc1d20ae35c
|
|
| BLAKE2b-256 |
aeea9ef63dfc98e287f2bbf7e59c8e2169f258a933c19b5c0145a46552a3dc98
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dc874362f2a6f32a238c31e523df0122dab668f1910f796bf6e45eef76bcf8c
|
|
| MD5 |
4a411988a113d2fccf5333be80f9c95c
|
|
| BLAKE2b-256 |
39b969aeb33ec62bcf5272fa003d7c6626271b2b08566e174c316bdffadf8aa7
|