alreadysearched / trojan-gfw-script

People who do not want to be saved are not worth saving.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logo

VPS Toolbox

This script will help you set up many kind of useful tools on your VPS including website proxy download monitor and more.

How to use

For Debian/Ubuntu

apt-get update && apt-get install sudo curl -y && sudo -i

For Centos

yum update -y && yum install sudo curl -y && sudo -i

Then

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

menu choose

Friendly Reminder:

  1. Please Run as root(sudo -i)
  2. Please Purchase a domain and finish a dns resolve before running this bash script!
  3. Please Open Tcp port 80 and 443 and turn off Cloudflare CDN in your control panel before running this bash script!
  4. 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 Change QBittorrent Download save path to /usr/share/nginx/qbt/ manually !

  2. For customized certificate , please put it in /etc/trojan/ , no name change required !

Telegram Channel And Group

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

Bash Features:

  1. Auto install and config NGINX
  2. Auto issue renew let's encrypt certificate and auto reload Trojan-GFW after renewal
  3. Auto OS Detect Support Debian Ubuntu Centos
  4. Auto domain resolve verification
  5. Auto iptables(includes ipv6) firewall config and iptables-persistent
  6. Auto generate Trojan-GFW client config
  7. Auto Nginx Performance Optimization
  8. Auto Trojan-GFW trojan:// share link and QR code generate
  9. Auto https 301 redirect without affecting certificate renew
  10. Auto enable HSTS header
  11. Auto Random Html Template Choose
  12. Auto enable Full IPv6 Support
  13. Auto enable time sync
  14. Auto enable Fail Restart
  15. Auto uninstall Aliyun Aegis
  16. Support Auto install and config Trojan-GFW Dnscrypt-proxy Qbittorrent Bittorrent-Tracker Aria2 Filebrowser Netdata and TOR
  17. Support Auto TCP Turbo enable ( TCP-BBR included)
  18. Support BBRPLUS
  19. Support TLS1.3 ONLY
  20. Support manually check for update
  21. Support Full/Part Uninstall

If you need more functions, please open a Github issue.(No Centos related issues or bugs allowed except pull requests)

VPS Recommendation (no personal aff included)

Related Links

Qbittorrent Related: https://www.johnrosen1.com/qbt/

Trojan-GFW Related: https://www.johnrosen1.com/trojan/

Debug Guide

For Network issues:

https://tools.ipip.net/ping.php

For Server issues

sudo nginx -t
sudo systemctl status trojan
sudo systemctl status nginx
sudo systemctl status tor
sudo systemctl status tor@default
sudo systemctl status dnscrypt-proxy
sudo systemctl status qbittorrent
sudo systemctl status tracker
sudo systemctl status aria2
sudo systemctl status filebrowser
sudo systemctl status netdata
journalctl -e -u trojan.service
cat /usr/local/etc/trojan/config.json
cat /etc/nginx/conf.d/trojan.conf
cat /etc/aria.conf
crontab -l
sudo ~/.acme.sh/acme.sh --cron //only if you use let's encrypt certificate
timedatectl
iptables -L -v

About

People who do not want to be saved are not worth saving.

License:MIT License


Languages

Language:Shell 100.0%