This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [custom] | |
| ;dns防泄露 | |
| ;多分流规则 | |
| ;不要随意改变关键字,否则会导致出错 | |
| ;acl4SSR规则 | |
| ;去广告:支持 | |
| ;自动测速:支持 | |
| ;微软分流:支持 | |
| ;苹果分流:支持 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| [ $(id -u) != "0" ] && { echo "${CFAILURE}Error: You must be root to run this script${CEND}"; exit 1; } | |
| read -p "Enter your Brook Server Listen Port (Default is 9527):" bport | |
| echo " Your Brook Server Port is $bport" | |
| read -p "Enter your Brook Server Password:" bpwd | |
| echo " Your Brook Server Password is $bpwd" | |
| DOWNLOAD_URL=$(curl -s https://api.github.com/repos/txthinking/brook/releases/latest | grep "brook_linux_amd64" | cut -d : -f 2,3 | tr -d \" | awk 'NR==2 {print $0}') | |
| wget -q $DOWNLOAD_URL -O /usr/bin/brook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # | |
| # | |
| SERVERNAME=$1 | |
| USERNAME=$2 | |
| PASSWORD=$3 | |
| #Enable BBR && System Optimization | |
| echo "net.core.default_qdisc=fq" >>/etc/sysctl.d/99-sysctl.conf |