Skip to content

lgcde/trojan-gfw-script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

229 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trojan-GFW Script

This script will help you set up a trojan-gfw server in an extremely fast way.

Read The Fucking Manual: https://www.johnrosen1.com/trojan/

via wget

sudo bash -c "$(wget -O- https://raw.githubusercontent.com/johnrosen1/trojan-gfw-script/master/trojan.sh)"

or via curl

sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/johnrosen1/trojan-gfw-script/master/trojan.sh)"

汉化GUI版本 (No Centos7 and older Centos Version Support)

apt/yum install whiptail -y
sudo bash -c "$(curl -fsSL https://github.com/johnrosen1/trojan-gfw-script/raw/master/trojangui.sh)"

附:不保证中文兼容性

Qbittorrent Version (No Centos Support completely)

apt/yum install whiptail -y
sudo bash -c "$(curl -fsSL https://github.com/johnrosen1/trojan-gfw-script/raw/master/trojangui-qbt.sh)"

Bash Features:

  1. Auto install Trojan-GFW NGINX V2ray Qbittorrent and Dnsmasq
  2. Auto config Trojan-GFW NGINX V2ray Qbittorrent and Dnsmasq
  3. Auto issue and renew let's encrypt certificate
  4. Auto OS Detect Support Centos Debian Ubuntu (Centos not recommended)
  5. Auto domain resolve verification
  6. Auto iptables firewall config and iptables-persistent
  7. Auto generate client config
  8. Auto random vmess uuid generate
  9. Auto TCP Turbo enable ( TCP-BBR included)
  10. Auto Nginx Performance Optimization
  11. Auto Trojan-GFW trojan:// share link and QR code generate
  12. Auto V2ray vmess:// share link generate
  13. Auto https 301 redirect without affecting certificate renew
  14. Auto enable HSTS header
  15. Auto enable TLS1.3 ONLY
  16. Support auto vmess + tls + websocket + nginx config
  17. Support manually check for update include both Trojan-gfw and v2ray
  18. Support manually force renew certificate
  19. Support Full Uninstall

Friendly Reminder:

  1. Please Purchase a domain and finish a dns resolve before running this bash script!
  2. 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'
  1. Please choose option2 if you want to use v2ray !
  2. Please do not any special symbols like "!" in password1 or 2 , or error will occur !
  3. Please do not use enter / in websocket option ,enter someting else like /secret !
  4. For security reasons, system upgrade is not forced ,press [ENTER] to skip or manually enter y to upgrade system.
  5. Trojan-GFW QR code generate will be skipped on os who do not support python3-qrcode!
  6. Due to personal demands , Dnsmasq installation is not forced ,press [ENTER] to skip or manually enter y to install dnsmasq.
  7. If "sudo command not found" , please manually remove "sudo" from the beginning of the command and run as root !

Telegram Channel And Group

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.

If you found it useful , please give a star ,thanks!

About

This script will help you set up a trojan-gfw server in an extremely fast way.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 100.0%