Read The Fucking Manual: https://www.johnrosen1.com/trojan/
sudo bash -c "$(wget -O- https://raw.githubusercontent.com/johnrosen1/trojan-gfw-script/master/trojan.sh)"
sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/johnrosen1/trojan-gfw-script/master/trojan.sh)"
apt/yum install whiptail -y
sudo bash -c "$(curl -fsSL https://github.com/johnrosen1/trojan-gfw-script/raw/master/trojangui.sh)"
附:不保证中文兼容性
apt/yum install whiptail -y
sudo bash -c "$(curl -fsSL https://github.com/johnrosen1/trojan-gfw-script/raw/master/trojangui-qbt.sh)"
- Auto install Trojan-GFW NGINX V2ray Qbittorrent and Dnsmasq
- Auto config Trojan-GFW NGINX V2ray Qbittorrent and Dnsmasq
- Auto issue and renew let's encrypt certificate
- Auto OS Detect Support Centos Debian Ubuntu (Centos not recommended)
- Auto domain resolve verification
- Auto iptables firewall config and iptables-persistent
- Auto generate client config
- Auto random vmess uuid generate
- Auto TCP Turbo enable ( TCP-BBR included)
- Auto Nginx Performance Optimization
- Auto Trojan-GFW trojan:// share link and QR code generate
- Auto V2ray vmess:// share link generate
- Auto https 301 redirect without affecting certificate renew
- Auto enable HSTS header
- Auto enable TLS1.3 ONLY
- Support auto vmess + tls + websocket + nginx config
- Support manually check for update include both Trojan-gfw and v2ray
- Support manually force renew certificate
- Support Full Uninstall
- Please Purchase a domain and finish a dns resolve before running this bash script!
- Please manually change system dns to frequently updated dns like 1.1.1.1 instead of those who update slowly like aliyun lan dns !
echo "nameserver 1.1.1.1" > '/etc/resolv.conf'
- Please choose option2 if you want to use v2ray !
- Please do not any special symbols like "!" in password1 or 2 , or error will occur !
- Please do not use enter / in websocket option ,enter someting else like /secret !
- For security reasons, system upgrade is not forced ,press [ENTER] to skip or manually enter y to upgrade system.
- Trojan-GFW QR code generate will be skipped on os who do not support python3-qrcode!
- Due to personal demands , Dnsmasq installation is not forced ,press [ENTER] to skip or manually enter y to install dnsmasq.
- If "sudo command not found" , please manually remove "sudo" from the beginning of the command and run as root !
Attachment: Trojan-GFW one-click script's function is basically complete. Stop Function-based updating from now on. If you need more functions, please open a Github issue.