2020-12-21 12:37:31 +08:00
< h1 align = "center" >
< img src = "https://github.com/Dreamacro/clash/raw/master/docs/logo.png" alt = "Clash" width = "200" >
< br > ShellClash< br >
2020-12-21 13:23:16 +08:00
< / h1 >
2020-10-13 17:06:21 +08:00
2020-12-21 12:37:31 +08:00
< p align = "center" >
< a target = "_blank" href = "https://github.com/Dreamacro/clash/releases" >
< img src = "https://img.shields.io/github/release/Dreamacro/Clash.svg?style=flat-square&label=Clash" >
< / a >
< a target = "_blank" href = "https://github.com/juewuy/ShellClash/releases" >
< img src = "https://img.shields.io/github/release/juewuy/ShellClash.svg?style=flat-square&label=ShellClash&colorB=green" >
< / a >
2020-12-21 13:24:25 +08:00
< / p >
2020-12-21 13:31:46 +08:00
[中文 ](README_CN.md ) | English
2020-08-11 10:58:13 +08:00
2020-12-21 13:11:33 +08:00
## Function introduction:
2020-09-21 16:51:14 +08:00
2022-05-05 13:40:13 +08:00
~Convenient use in Shell environment through management script [Clash ](https://github.com/Dreamacro/clash )< br > ~Support management of [Clash functions ](https://lancellc.gitbook.io/clash )< br > ~Support online import [Clash ](https://github.com/Dreamacro/clash ) supports sharing, subscription and configuration links< br > ~Support configuration timing tasks, support configuration file timing updates< br > ~Support online installation and Use local web panel to manage built-in rules< br > ~Support routing mode, native mode and other mode switching< br > ~Support online update< br >
2020-09-21 16:51:14 +08:00
2020-12-21 13:11:33 +08:00
## Equipment support:
2020-12-21 12:37:31 +08:00
2020-12-21 13:11:33 +08:00
~Support various router devices based on OpenWrt or secondary custom development using OpenWrt< br > ~Support various devices running standard Linux systems (such as Debian/CenOS/Armbian, etc.)< br > ~Compatible with Padavan firmware (conservative mode), Pandora firmware< br > ~Compatible with various types of devices customized and developed using the Linux kernel< br > ——————————< br > ~For more device support, please submit an issue or go to the TG group for feedback (the device name and the device core information returned by running uname -a must be provided)< br >
2020-08-11 10:58:13 +08:00
2020-12-21 13:11:33 +08:00
How to use:
2020-07-08 20:10:46 +08:00
--
2020-10-13 17:06:21 +08:00
2020-12-21 13:11:33 +08:00
~Confirm that the router device has enabled SSH and obtained root privileges (Linux devices with GUI desktops can be installed using their own terminal)< br > ~Use SSH connection tools (such as putty, JuiceSSH, system built-in terminal, etc.) router or Linux device SSH management interface or terminal interface, and switch to the root user< br > ~Confirm that the curl or wget download tool has been installed on the device. If not installed, please [refer to here ](https://www.howtoforge.com/install-curl-in-linux ) for LInux devices to install curl. For devices based on OpenWrt (Xiaomi official system, Pandora, Gaoke, etc.), please Use the following command to install curl:< br >
2022-04-06 11:27:58 +08:00
```Shell
2020-10-13 17:06:21 +08:00
opkg update & & opkg install curl
```
2020-12-21 13:11:33 +08:00
~ Then execute the following installation commands on the SSH interface, and follow the subsequent prompts to complete the installation< br >
2020-10-13 17:06:21 +08:00
2020-12-21 13:11:33 +08:00
##### ~Use curl:<br>
2020-09-21 16:51:14 +08:00
2020-09-12 15:37:28 +08:00
```Shell
2022-04-10 21:36:58 +08:00
#by fastgit.org
export url='https://raw.fastgit.org/juewuy/ShellClash/master' & & sh -c "$(curl -kfsSl $url/install.sh)" & & source /etc/profile & > /dev/null
2022-04-06 11:27:58 +08:00
#by GitHub
2021-06-22 23:09:50 +08:00
export url='https://raw.githubusercontent.com/juewuy/ShellClash/master' & & sh -c "$(curl -kfsSl $url/install.sh)" & & source /etc/profile & > /dev/null
2022-04-10 21:36:58 +08:00
#by jsDelivr-CDN
2022-05-21 14:32:54 +08:00
export url='https://fastly.jsdelivr.net/gh/juewuy/ShellClash@master' & & sh -c "$(curl -kfsSl $url/install.sh)" & & source /etc/profile & > /dev/null
2020-09-19 16:51:34 +08:00
```
2020-10-12 15:01:35 +08:00
2020-12-21 13:11:33 +08:00
##### ~Use wget: <br>
2020-10-24 21:13:06 +08:00
2022-04-06 11:27:58 +08:00
```Shell
#by GitHub
export url='https://raw.githubusercontent.com/juewuy/ShellClash/master' & & wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh & & sh /tmp/install.sh & & source /etc/profile & > /dev/null
#By jsDelivrCDN
2022-05-21 14:32:54 +08:00
export url='https://fastly.jsdelivr.net/gh/juewuy/ShellClash@master' & & wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh & & sh /tmp/install.sh & & source /etc/profile & > /dev/null
2020-10-24 21:13:06 +08:00
```
2022-04-10 21:36:58 +08:00
~**Use a low version of wget (prompt not to support https) local installation**:< br >
2021-06-20 23:32:31 +08:00
2022-04-06 11:27:58 +08:00
```Shell
2022-04-10 21:36:58 +08:00
#by shellclash.ga
export url='http://shellclash.ga/' & & wget -q -O /tmp/install.sh $url/install.sh & & sh /tmp/install.sh & & source /etc/profile & > /dev/null
2021-06-20 23:32:31 +08:00
```
2020-12-21 13:11:33 +08:00
~**After installation by non-root users**, please execute the following additional commands to read environment variables:< br >
2020-10-24 21:13:06 +08:00
2022-04-06 11:27:58 +08:00
```Shell
2020-10-24 21:13:06 +08:00
source ~/.bashrc & > /dev/null
```
2020-12-21 13:11:33 +08:00
~After installing the management script, execute the following command to **run the management script** < br >
2020-09-21 16:51:14 +08:00
2020-09-12 15:37:28 +08:00
```Shell
2020-12-21 13:11:33 +08:00
clash #normal mode
clash -h #help
2021-06-20 23:32:31 +08:00
clash -u #uninstall
2020-12-21 13:11:33 +08:00
clash -t #test mode
2020-09-12 15:37:28 +08:00
```
2020-08-11 10:58:13 +08:00
2022-02-20 15:00:17 +08:00
~**Install in Docker: **< br >
Use: https://github.com/echvoyager/shellclash_docker
2020-12-21 13:11:33 +08:00
~**Additional dependencies at runtime**: < br >
2020-10-24 21:13:06 +08:00
2022-04-06 11:36:46 +08:00
> Most of the equipment/systems are pre-installed with most of the following dependencies, you can ignore them if there is no impact when you use them.
2020-10-24 21:13:06 +08:00
2022-04-06 11:27:58 +08:00
```Text
2020-12-21 13:11:33 +08:00
bash/ash necessary Cannot install and run scripts when all are missing
curl/wget necessary When all are missing, it cannot be installed and updated online
iptables important Only use pure mode when missing
systemd/rc.common general Only use conservative mode when all are missing
iptables-mod-nat general Cannot use redir mode, mixed mode when missing
ip6tables-mod-nat lower Affects redir mode when missing, mixed mode support for ipv6
crontab lower Cannot enable timing task function when missing
net-tools minimal Cannot detect port occupancy normally when missing
ubus/iproute-doc minimal The host address of the machine cannot be obtained normally when missing
2020-10-24 21:13:06 +08:00
```
2020-12-21 13:11:33 +08:00
## Update log:
2020-10-24 21:13:06 +08:00
2020-12-21 13:11:33 +08:00
### [Click to view](https://github.com/juewuy/ShellClash/releases)
2020-08-11 10:58:13 +08:00
2020-12-21 13:11:33 +08:00
## Exchange feedback:
2020-08-11 10:58:13 +08:00
2022-05-05 13:40:13 +08:00
### [TG Discussion Group](https://t.me/ShellClash)
2020-10-21 00:42:59 +08:00
2020-12-21 13:11:33 +08:00
## Related Q&A:
2020-07-08 20:27:18 +08:00
2020-12-21 13:11:33 +08:00
### [See blog for details](https://juewuy.github.io)
2020-11-03 16:41:41 +08:00
2021-06-20 23:32:31 +08:00
## Donate:
Alipay WeChat
2020-12-21 13:11:33 +08:00
2021-06-20 23:32:31 +08:00
##### <img src="http://juewuy.github.io/post-images/1604390977172.png" style="zoom:50%;" /><img src="http://juewuy.github.io/post-images/1604391042406.png" style="zoom:50%;" />
2020-12-21 13:11:33 +08:00
2022-05-05 13:47:12 +08:00
机场推荐:
--
#### [Catnet](https://dash.catnet.uk/#/register?code=KOhfH9qD)<br>
#### [Dler](https://dler.best/auth/register?affid=89698)<br>
2020-11-03 16:41:41 +08:00