Coder Social home page Coder Social logo

trojan-gfw-script's Introduction

logo

Trojan-GFW Script

This script will help you set up a Trojan-GFW and an Ultimate Offline download server in an extremely fast way.

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

GUI Version (Everything has been included)

apt-get update && apt-get install sudo curl -y && sudo -i
yum update -y && yum install sudo curl -y && sudo -i
sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/johnrosen1/trojan-gfw-script/master/trojangui.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 !

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 client config (includes both Trojan-GFW and V2ray )
  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 Dnsmasq Qbittorrent Bittorrent-Tracker Aria2 Filebrowser Netdata V2ray and Shadowsocks(V2ray-plugin) TOR
  17. Support auto V2ray vmess:// share link generate and Shadowsocks ss:// share link and qrcode generate
  18. Support auto vmess or ss + tls + websocket + nginx config
  19. Support Auto TCP Turbo enable ( TCP-BBR included)
  20. Support BBRPLUS
  21. Support TLS1.3 ONLY
  22. Support manually check for update include both Trojan-gfw and v2ray(ss included)
  23. 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

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

Debug Guide

https://github.com/trojan-gfw/trojan-quickstart
sudo nginx -t
sudo systemctl status trojan
sudo systemctl status nginx
sudo systemctl status v2ray
sudo systemctl status tor
sudo systemctl status tor@default
sudo systemctl status dnsmasq
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 /var/log/v2ray/error.log
cat /usr/local/etc/trojan/config.json
cat /etc/nginx/conf.d/trojan.conf
cat /etc/v2ray/config.json
cat /etc/aria.conf
crontab -l
sudo ~/.acme.sh/acme.sh --cron
timedatectl
iptables -L -v

Result Example

trojan://[email protected]:443

Trojan-GFW QR code

trojan-gfw-script's People

Contributors

xuebaxi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.