-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Iran firewall blocks my subdomain, in vless/trojan CDN configuration. #218
Comments
There are some suggestions for Iran in the thread #217 |
Hi! @Hadi-1624 You should add a outbound CIDR-IP block so your server that looks like a website does not initiate the connection back to Iran, as "web servers" normally does not do this. Check my json config in my repository. Also use xtls-rprx-vision as flow (without ,none). Unfortunately vision does not support websockets as a direct connection. Configure your clients to use a uTLS fingerprint, like Chrome. You should NOT point your homepage on your server to Wikipedia. You need to create a fake website preferably in Persian with Persian text. The Iranian firewall probably has banned some keywords when they active-probe your website. If you don't want to create a fake website then point your nginx to load a page from inside Iran, an Iranian website that has Iranian an IP. I'm currently running my xray server without a CDN. But If you want to use a CDN, follow these steps here. https://github.com/XTLS/Xray-examples/blob/main/All-in-One-fallbacks-Nginx/nginx.conf |
@computerscot I believe that guide won't support websocket, which i use. |
@SasukeFreestyle |
You could use this in your nginx serverblock configuration. But I highly recommend you create a fake website.
Check configurations on https://github.com/XTLS/Xray-examples/blob/main/All-in-One-fallbacks-Nginx/server.json that uses Vision as its entry point to websockets using fallbacks, I have not tried this but it might work for you. |
As far as I remember, Websocket connection over Cloudflare uses HTTP/1.1 instead of HTTP/2 ( |
Xray supports HTTP/2 as https://github.com/XTLS/Xray-examples/blob/main/VLESS-H2C-Caddy2/server.json |
|
|
yes i readed that before but couldnt understand meaning of it 😕
what i get from this is for example if i dont put anything in alpn of v2rayn vless its gonna be h2 when it handsahke with cdn ?
is that means if i force H2 in v2rayn vless not connect ? thanks ❤️ |
Yes. Cloudflare does not support websocket over h2. |
just puted checkmark of alpn to h2 in vless and it connected ? 😕 |
Hi there
I've been frustrated and i don't know how to resolve this problem.
I use xray to create a vless or trojan WS configuration.
Then, I use cloudflare to connect to port 443 or 2083 to my xray server. in the SNI section, i have to use my subdomain so that cloudflare can connect to my server.
After a day or one week, my subdomain is blocked by the iranian firewall and i need to add another subdomain, issue a certificate and reconfigure my nginx server again.
-I use nginx so that when my subdomain is visited, a page from wikipedia is shown
-I've tried vmess, vless and trojan
Could you please help me to find a way to avoid getting my domains blocked?
The text was updated successfully, but these errors were encountered: