Skip to content

Instantly share code, notes, and snippets.

@Topper-crypto
Forked from loskiq/3x-ui.md
Created August 12, 2024 06:46
Show Gist options
  • Save Topper-crypto/7aab17b89250b545272d9a45e0c38c76 to your computer and use it in GitHub Desktop.
Save Topper-crypto/7aab17b89250b545272d9a45e0c38c76 to your computer and use it in GitHub Desktop.
xray

Check TLS 1.3

openssl s_client -brief -state -connect 188.165.1.3:443 -servername www.checkyourorders24-7.com

Generate uuid, private/public keys and shortid

xray uuid
xray x25519
openssl rand -hex 8

String for mobile clients (v2rayng, foxray, hiddify)

vless://[email protected]:443?flow=xtls-rprx-vision&type=tcp&security=reality&sni=www.checkyourorders24-7.com&fp=chrome&pbk=seBxvk7WKB1qw4YGQTWtqwfgvLPCGD-CB0zjY7lbF3o&sid=032e0ae968dca962#xtls
inbounds:
- listen: 127.0.0.1
port: 1082
protocol: socks
settings:
udp: true
outbounds:
- protocol: vless
settings:
vnext:
- address: domain.com
port: 443
users:
- id: 71f84a4b-6b0c-4b84-b003-10f6ed1b6714
flow: xtls-rprx-vision
encryption: none
streamSettings:
network: tcp
security: reality
realitySettings:
fingerprint: chrome
serverName: www.checkyourorders24-7.com
publicKey: seBxvk7WKB1qw4YGQTWtqwfgvLPCGD-CB0zjY7lbF3o
shortId: 032e0ae968dca962
inbounds:
- listen: 0.0.0.0
port: 443
protocol: vless
settings:
clients:
- id: 71f84a4b-6b0c-4b84-b003-10f6ed1b6714 # loskiq
flow: xtls-rprx-vision
decryption: none
streamSettings:
network: tcp
security: reality
realitySettings:
dest: 188.165.1.3:443
serverNames:
- www.checkyourorders24-7.com
privateKey: 2G1jQB0yxEczmCIbfDkwND_07e4kskjZjlYFaAu5pEU
shortIds:
- 032e0ae968dca962
outbounds:
- protocol: freedom
[Unit]
Description=xray
After=network.target
[Service]
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
ExecStart=/usr/local/bin/xray run -c /etc/xray.yaml
User=xray
Group=xray
Restart=on-failure
SyslogIdentifier=xray
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment