#sni does not work

1 messages · Page 1 of 1 (latest)

tawny cipher
#

hey so i created a v2ray inbound with 3x ui
here is the link for it :https://github.com/MHSanaei/3x-ui

and i used nginx to route the traffic from my domain to the xray because then my isp thinks its a normal trafic but when i set the nginx as the reverse proxy i need to add the xray inbound host as that nginx proxy domain and the path as its location path but without the nginx proxy like direct connecting to the xray v2ray i can set the host as what ever i want and it works

GitHub

Xray panel supporting multi-protocol multi-user expire day & traffic & ip limit (Vmess & Vless & Trojan & ShadowSocks & Wireguard) - GitHub - MHSan...

#

here is my nginx proxy

[root@docker-e9308d839fce:/app]# cat /data/nginx/proxy_host/1.conf
# ------------------------------------------------------------
# 1x-ui.noerror.studio
# ------------------------------------------------------------



map $scheme $hsts_header {
    https   "max-age=63072000; preload";
}

server {
  set $forward_scheme http;
  set $server         "172.18.0.1";
  set $port           9090;

  listen 80;
listen [::]:80;


  server_name 1x-ui.noerror.studio;











proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;


  access_log /data/logs/proxy-host-1_access.log proxy;
  error_log /data/logs/proxy-host-1_error.log warn;



  location /xray {
    proxy_read_timeout 86400;
proxy_send_timeout 86400;
proxy_buffering off;
proxy_redirect off;
proxy_ssl_server_name on;
proxy_ssl_name m.zoom.us;

    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Scheme $scheme;
    proxy_set_header X-Forwarded-Proto  $scheme;
    proxy_set_header X-Forwarded-For    $remote_addr;
    proxy_set_header X-Real-IP          $remote_addr;

    set $proxy_forward_scheme http;
    set $proxy_server         "172.18.0.1";
    set $proxy_port           10255;

    proxy_pass       $proxy_forward_scheme://$proxy_server:$proxy_port;

    

    
    
    
    


    
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $http_connection;
    proxy_http_version 1.1;
    
  }





  location / {






    
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $http_connection;
    proxy_http_version 1.1;
    

    # Proxy!
    include conf.d/include/proxy.conf;
  }


  # Custom
  include /data/nginx/custom/server_proxy[.]conf;
}
#
{
  "id": 1,
  "userId": 0,
  "up": 16486333,
  "down": 204460591,
  "total": 0,
  "remark": "dialog-zoom",
  "enable": true,
  "expiryTime": 0,
  "listen": "",
  "port": 10255,
  "protocol": "vless",
  "settings": "{\n  \"clients\": [\n    {\n      \"id\": \"5db27999-5d8d-4f61-a17c-da18ffbe2059\",\n      \"flow\": \"\",\n      \"email\": \"ks9tem69\",\n      \"limitIp\": 0,\n      \"totalGB\": 0,\n      \"expiryTime\": 0,\n      \"enable\": true,\n      \"tgId\": \"\",\n      \"subId\": \"g4euu8lefvk5mq2r\",\n      \"reset\": 0\n    }\n  ],\n  \"decryption\": \"none\",\n  \"fallbacks\": []\n}",
  "streamSettings": "{\n  \"network\": \"ws\",\n  \"security\": \"none\",\n  \"externalProxy\": [\n    {\n      \"forceTls\": \"tls\",\n      \"dest\": \"1x-ui.noerror.studio\",\n      \"port\": 443,\n      \"remark\": \"proxy\"\n    }\n  ],\n  \"wsSettings\": {\n    \"acceptProxyProtocol\": false,\n    \"path\": \"/xray\",\n    \"host\": \"1x-ui.noerror.studio\",\n    \"headers\": {\n      \"host\": \"m.zoom.us\"\n    }\n  }\n}",
  "tag": "inbound-10255",
  "sniffing": "{\n  \"enabled\": true,\n  \"destOverride\": [\n    \"http\",\n    \"tls\",\n    \"quic\",\n    \"fakedns\"\n  ],\n  \"metadataOnly\": true,\n  \"routeOnly\": true\n}",
  "clientStats": [
    {
      "id": 1,
      "inboundId": 1,
      "enable": true,
      "email": "ks9tem69",
      "up": 31279664,
      "down": 647867535,
      "expiryTime": 0,
      "total": 0,
      "reset": 0
    }
  ]
}```
sinful glen
#

@tawny cipher

#

has nun

#

to do with lavalink