
Who it's for
A user running an OpenWrt-based router from Xiaomi or Netgear installs ShellCrash to route all household traffic through a mihomo kernel with subscription-managed rules, without flashing custom firmware.
User wants a GUI-only configuration experience or does not have SSH access to the router.
A self-hoster running Debian or Ubuntu on a mini PC uses ShellCrash in Local mode to proxy outbound traffic from that server, keeping the kernel updated automatically via scheduled tasks.
User is running a managed cloud VM where iptables rules are restricted by the provider.
A Synology or Proxmox VE user pulls the ShellCrash Docker image to run a sing-box kernel in a container, avoiding changes to the host system while still managing proxy rules through the web dashboard.
User prefers a native package manager installation rather than a Docker-based approach.
A user with an older router running busybox or a device with an outdated wget version uses ShellCrash's HTTP beta source and legacy installation path to get the proxy kernel running where standard HTTPS installs fail.
The problem
Configuring mihomo or sing-box as a transparent proxy on a router or headless Linux server requires manually managing binaries, writing startup scripts, setting iptables rules, and keeping configurations in sync with upstream subscription links. This process is error-prone and differs significantly across device types and firmwares, leaving users without a unified management interface.
How it works
Manage and switch between the mihomo and sing-box proxy kernels directly from the interactive shell menu, without reinstalling or reconfiguring from scratch.
Import proxy subscription links and configuration files online to populate routing rules automatically, reducing manual YAML or JSON editing.
Install a local web dashboard to visualize built-in routing rules and monitor traffic in real time from a browser on the same network.
Switch between Router mode, which forwards traffic from other devices on the network, and Local mode, which proxies only the host device's traffic.
Configure crontab-based scheduled tasks to keep configuration files and routing rules refreshed automatically, provided crontab is available on the device.
Runs on OpenWrt routers, standard Debian/Ubuntu/CentOS/Armbian servers, Padavan, Pandora, and ASUS/Merlin firmware, plus Docker on Synology and Proxmox VE.
Features
- Multi-Kernel Support
- Subscription and Config Import
- Web Dashboard Integration
- Router Mode and Local Mode
- Scheduled Automatic Updates
- Broad Device Compatibility
How to install
export url='https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@dev' \ && wget -q --no-check-certificate -O /tmp/install.sh $url/install_en.sh \ && bash /tmp/install.sh \ && . /etc/profile &> /dev/null
Recommended for this setup
Strengths
- Single script across many device types: One installation and management script covers routers, Linux servers, legacy busybox devices, and Docker containers, reducing the need to learn device-specific setup procedures for each environment.
- Multiple installation mirrors: Installation supports GitHub raw, jsDelivr CDN, and the author's private source, providing fallback options when one mirror is inaccessible or returns SSL errors.
- Interactive menu reduces manual config: The `crash` command launches a guided menu that handles kernel selection, subscription import, mode switching, and updates interactively, without requiring direct edits to kernel config files.
- Docker Hub image available: An official Docker image on Docker Hub makes it straightforward to run ShellCrash in containerized environments like Synology DSM or Proxmox VE without modifying the host system.
Trade-offs
- Requires root access: Installation and operation require root privileges and SSH access to the target device. The documentation explicitly states installation must be performed as the root user.
- iptables or nftables required for full functionality: Without iptables or nftables present on the device, the script can only run in Pure Mode, which limits traffic interception capabilities significantly.
- Scheduled tasks need crontab: Automatic configuration and rule update scheduling depends on crontab being available. Devices running minimal firmware without crontab support will not be able to use this feature.
- Not suited for desktop GUI users: ShellCrash is a shell-based tool designed for SSH sessions and terminal workflows. Users who prefer graphical desktop proxy managers will find the interaction model unfamiliar.
Tech stack
FAQ
Run `crash` in the terminal to open the interactive menu, or run `crash -h` to see the list of available command-line options.
Router mode forwards traffic from other devices on the network through the proxy kernel, making the host act as a transparent gateway. Local mode only proxies traffic originating from the host device itself.
Yes, but the script will operate in Pure Mode only, which limits its traffic interception capabilities. Full transparent proxying requires either iptables or nftables to be present on the device.
ShellCrash provides three installation sources: GitHub raw, jsDelivr CDN, and the author's private source. If one fails due to connectivity or SSL issues, the README recommends switching to an alternative mirror in the install command.
Yes. An official Docker image is published on Docker Hub under `juewuy/shellcrash`, which the README links to for Docker-based deployments on platforms like Synology and Proxmox VE.