Code Monkey home page Code Monkey logo

xray-reality's Introduction

xray-reality

This is a Bash script that installs Xray Beta and downloads the configuration for the repository created by Teegrce for Iran inside this repository with your own key and places it only with one command :)

Installation Guide

just need you to run this command

 bash -c "$(curl -L https://raw.githubusercontent.com/sajjaddg/xray-reality/master/install.sh)"

and it will do the rest for you.

Uninstallation guide

 bash -c "$(curl -L https://raw.githubusercontent.com/sajjaddg/xray-reality/master/uninstall.sh)"

Installation Guide with Docker

  1. install docker
curl -fsSL https://get.docker.com | sh
  1. clone this project
git clone https://github.com/sajjaddg/xray-reality && cd xray-reality
  1. build docker image
docker build -t xrayreality .
  1. run
 docker run -d --name xrayreality -p443:443 xrayreality
  1. get connection config :

get url

docker exec -it xrayreality cat /root/test.url

view qrcode

docker exec -it xrayreality sh -c 'qrencode -s 120 -t ANSIUTF8 $(cat /root/test.url)'

how to manage ?

status :

docker ps -a | grep xrayreality

stop :

docker stop xrayreality

start :

docker stop xrayreality

remove :

docker rm -f xrayreality

Note

  1. I have only tested it on Ubuntu 22 and wrote it for that system. Although I have the time and willingness to write it for other systems, I don't think I will need to do so unless I am forced to.
  2. I used ChatGPT to translate my words. Please pardon any mistakes in the translation.

ToDo

  • Add menu
  • test it on other OS and modify the script for them

xray-reality's People

Contributors

sajjaddg avatar samsesh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

xray-reality's Issues

چند سوال

سلام
بعد از نصب دو تا چیز رو مشخص نمی کنه
اول اینکه پورت چند باید باشه؟
دوم ای پی بدیم به جای آدرس؟
سوم چطوری یوزر جدید بسازیم
ممنونم
اماتورم اما ممنونم از کاری که کردی

Block ad and iranian domains

Thank you for developing this project. I have two recommendations.
First, block ad, tracker and phishing websites. Please consider (1) or (2) or both.

  1. Use adguard dns as first priority dns. It has both dns over https and dns over ipv4
    https://adguard-dns.io/en/public-dns.html
  2. Block "geosite:category-ads-all" and download iran.dat and block "ext:iran.dat:ads"
    https://github.com/bootmortis/iran-hosted-domains

Second, Iran geoip list is not accurate. You can increase its accuracy by adding iranian domain.
Please consider (3) or (4) or both.

  1. Block all .ir domains "domain:ir"
  2. Block all iranian domains in iran.dat - "ext:iran.dat:ir" and
    "ext:iran.dat:other"

Thank you

add support for user specified port

Hi.
I just ran the script. it looks like 443 is blocked by my isp but the config works on other ports.
consider using a random port or even better add support for user specified port.
other than that 👌

cdn

آیا امکان استفاده از cdn وحود دارد؟

Can the same config reused in multiple devices

Firstly, thanks for creating this automated script, it just works fine. The question I have is, can I use the same generated URL for all my devices at same time ? also how do I generate a new URL if I want to share it with others?

h2 or tcp ?

2rud,
I did test your config and it is working good.
I changed your config from "h2" to "tcp" in server's config file and also destination server from yahoo.com:443 to archive.debian.org:443, it is still working!
my question is what is the difference between h2 and tcp? does h2 help with undetectablity?
btw script also works on ubuntu 20.04

tnx

gRPC

Add gRPC to Reality. Thanks.

V2Ray

f7c20b85dcbd6c2e8acf2589dfaef8a448daf337

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.