Complete Guides Using Trojan Websocket

Introduction Trojan

Trojan-GFW is a project that aims to provide an unidentifiable mechanism for bypassing the Great Firewall of China (GFW). It does this by using multiple protocols over TLS to avoid both active and passive detections. Trojan-GFW is not a fixed program or protocol, but rather an idea that can be implemented in different ways.

One of the key features of Trojan-GFW is its ability to bypass ISP QoS limitations. This is important because the GFW often uses ISP throttling to slow down or block traffic to certain websites and services. Trojan-GFW can circumvent these limitations by encrypting all traffic, making it impossible for ISPs to identify and throttle it.

Trojan-GFW is a free and open-source project, and there are a number of different clients available for different platforms. The most popular client is called igniter, which is available for Windows, macOS, and Linux.

Trojan-GFW is a powerful tool that can be used to bypass the GFW and access blocked websites and services. It is a popular choice among users in China and other countries with restrictive internet censorship.

Introduction Websocket

WebSockets are a persistent connection between a client and a server. This means that once the connection is established, data can be exchanged in real time without having to create a new connection for each message. WebSockets are often used for applications such as live chat, gaming, and streaming media.

Cloudflare supports WebSockets on all of its plans. This means that you can use WebSockets to connect to your Cloudflare-protected origin server without having to worry about configuring anything on your end.

To use WebSockets with Cloudflare, you need to:

  1. Create a WebSocket server on your origin server.
  2. Configure your origin server to accept WebSocket connections from Cloudflare.
  3. Configure your Cloudflare account to allow WebSockets traffic.

Once you have done this, you can connect to your WebSocket server from any client that supports WebSockets.

Here are some methods for using WebSockets over CDN:

  • Proxying WebSockets: Cloudflare can proxy WebSockets traffic from your origin server to your users. This means that all WebSockets traffic will go through Cloudflare’s network, which can improve performance and security.
  • Terminating WebSockets: Cloudflare can terminate WebSockets connections at the edge. This means that Cloudflare will handle all of the WebSocket protocol negotiation and routing, and your origin server will only receive the data that is actually being sent between the client and the server.
  • Using Cloudflare Workers: Cloudflare Workers is a serverless platform that allows you to run JavaScript code on Cloudflare’s edge network. You can use Cloudflare Workers to create WebSocket servers that are hosted on Cloudflare’s network. This can be a good option if you want to avoid having to manage your own WebSocket server.

Introduction sing-box

Sing-box stands as a universal proxy platform designed to empower users with the ability to transcend censorship barriers, safeguard their privacy, and access restricted online content. It’s a versatile tool that offers support for a range of protocols, including VMess, Shadowsocks, and HTTP, making it a valuable resource for a variety of online activities. Unlike rigid alternatives, Sing-box flexes effortlessly to accommodate clients spanning browsers, mobile apps, and desktop applications.

As an embodiment of the open-source ethos, Sing-box invites users into a vibrant and dynamic community of developers and enthusiasts. Its continuous evolution ensures that it remains at the forefront of secure and reliable censorship circumvention. Sing-box is not only user-friendly but also fortified by robust encryption measures, thwarting any attempts at data interception.

Sing-box embodies simplicity, where configuring your client to route through it becomes an intuitive process, guaranteeing censorship evasion and data protection. With a formidable reputation for uptime and performance, Sing-box has proven its reliability over the years. This proxy platform provides a dependable gateway to unrestricted online experiences.

One of Sing-box’s standout features is its support for multiple protocols, ensuring it adapts seamlessly to various scenarios. Its flexibility shines through its compatibility with an array of clients, fostering convenience for users seeking access across diverse devices. Furthermore, Sing-box’s commitment to data security strengthens your online presence, shielding your sensitive information from prying eyes.

In summary, Sing-box emerges as an indispensable tool for those in search of an easy-to-use, secure, and versatile solution to circumvent censorship and access restricted online content. With its robust protocol support, flexibility, and dedication to user privacy, Sing-box remains a beacon of reliability in the ever-evolving landscape of online freedom.

Config Trojan Websocket Sing-box For Android

SFA, or Sing-Box for Android, stands as the official Android APK from Sing-Box, designed to fortify the security of your mobile device. To get started, you can easily access this potent security enhancement by downloading the SFA APK directly from Sing-Box’s official website.

Before proceeding with the installation of SFA, it’s crucial to verify that your Android device meets the necessary requirements. Although the APK generally functions effectively across various Android versions, it’s advisable to confirm its compatibility with your specific device to ensure a seamless experience.

{
  "log": {
    "level": "warn",
    "timestamp": true
  },
  "dns": {
    "servers": [
      {
        "tag": "Internet-dns",
        "address": "1.0.0.1",
        "strategy": "prefer_ipv4",
        "detour": "Internet"
      },
      {
        "tag": "Best Latency-dns",
        "address": "1.1.1.1",
        "strategy": "prefer_ipv4",
        "detour": "Best Latency"
      },
      {
        "tag": "direct-dns",
        "address": "local",
        "strategy": "prefer_ipv4",
        "detour": "direct"
      },
      {
        "tag": "block-dns",
        "address": "rcode://success"
      }
    ],
    "rules": [
      {
        "network": "udp",
        "port": 443,
        "server": "block-dns",
        "rewrite_ttl": 600
      },
      {
        "outbound": "Internet",
        "server": "Internet-dns",
        "rewrite_ttl": 600
      },
      {
        "outbound": "Best Latency",
        "server": "Best Latency-dns",
        "rewrite_ttl": 600
      },
      {
        "outbound": "direct",
        "server": "direct-dns",
        "rewrite_ttl": 600
      },
      {
        "outbound": "any",
        "server": "direct-dns",
        "rewrite_ttl": 600
      }
    ],
    "final": "Internet-dns",
    "strategy": "prefer_ipv4",
    "disable_cache":true,
    "independent_cache": true
  },
  "inbounds": [
    {
      "type": "tun",
      "tag": "tun-in",
      "interface_name": "tun0",
      "mtu": 1358,
      "inet4_address": "172.19.0.1/30",
      "inet6_address": "fdfe:dcba:9876::1/126",
      "auto_route": true,
      "strict_route": true,
      "endpoint_independent_nat": true,
      "udp_timeout": 300,
      "stack": "mixed",
      "sniff": true
    },
    {
      "type": "mixed",
      "tag": "mixed-in",
      "listen": "0.0.0.0",
      "listen_port": 60080,
      "sniff": true
    }
  ],
  "outbounds": [
    {
      "type": "selector",
      "tag": "Internet",
      "outbounds": [
        "Best Latency",
        "TROJAN-WS-HTTPS",
        "TROJAN-WS-HTTP"
      ]
    },
    {
      "type": "urltest",
      "tag": "Best Latency",
      "outbounds": [
        "TROJAN-WS-HTTPS",
        "TROJAN-WS-HTTP"
      ],
      "url": "https://detectportal.firefox.com/success.txt",
      "interval": "1m0s"
    },
    {
      "type": "trojan",
      "tag": "TROJAN-WS-HTTPS",
      "detour": "direct",
      "tcp_fast_open": true,
      "tcp_multi_path": true,
      "udp_fragment": true,
      "domain_strategy": "prefer_ipv4",
      "server": "jala.iptunnels.com",
      "server_port": 443,
      "password": "PASSWORD-ACCOUNT",
      "tls": {
        "enabled": true,
        "server_name": "jala.iptunnels.com",
        "insecure": true
      },
      "multiplex": {
        "enabled": true,
        "protocol": "smux",
        "max_streams": 32
      },
      "transport": {
        "type": "ws",
        "path": "/buy-trojan-ws-pm-telegram-at-synricha",
        "headers": {
          "Host": "jala.iptunnels.com"
        }
      }
    },
    {
      "type": "trojan",
      "tag": "TROJAN-WS-HTTP",
      "detour": "direct",
      "tcp_fast_open": true,
      "tcp_multi_path": true,
      "udp_fragment": true,
      "domain_strategy": "prefer_ipv4",
      "server": "jala.iptunnels.com",
      "server_port": 80,
      "password": "PASSWORD-ACCOUNT",
      "multiplex": {
        "enabled": true,
        "protocol": "smux",
        "max_streams": 32
      },
      "transport": {
        "type": "ws",
        "path": "/buy-trojan-ws-pm-telegram-at-synricha",
        "headers": {
          "Host": "jala.iptunnels.com"
        }
      }
    },
    {
      "type": "direct",
      "tag": "direct"
    },
    {
      "type": "block",
      "tag": "block"
    },
    {
      "type": "dns",
      "tag": "dns-out"
    }
  ],
  "route": {
    "geoip": {
      "download_url": "https://github.com/malikshi/sing-box-geo/releases/latest/download/geoip.db",
      "download_detour": "Best Latency"
    },
    "geosite": {
      "download_url": "https://github.com/malikshi/v2ray-rules-dat/releases/latest/download/geosite.db",
      "download_detour": "Best Latency"
    },
    "rules": [
      {
        "port": 53,
        "outbound": "dns-out"
      },
      {
        "network": "udp",
        "port": 443,
        "outbound": "block"
      }
    ],
    "final": "Internet",
    "auto_detect_interface": true,
    "override_android_vpn": true
  },
  "experimental": {
    "clash_api": {
      "external_controller": "0.0.0.0:9090",
      "external_ui": "yacd",
      "external_ui_download_url": "https://github.com/MetaCubeX/metacubexd/archive/gh-pages.zip",
      "external_ui_download_detour": "Best Latency",
      "default_mode": "rule",
      "store_selected": true,
      "cache_file": "clash.db"
    }
  }
}

Leave a Reply

More Docs