Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Client Config:
- trojan://trojanpassword=@x.x.x.x:4436?security=reality&sni=example.com&allowInsecure=1&fp=chrome&pbk=o7X3l4HUar_V59iL4T-VItzwMZUSLN_H0beSHJ9kVXw&type=tcp#trojan_conf
- Server Config:
- {
- "log": {
- "loglevel": "debug",
- "access": "/logs/xray-access.log",
- "error": "/logs/xray-error.log",
- "dnsLog": false
- },
- "stats": {},
- "api": {
- "tag": "api",
- "services": [
- "StatsService"
- ]
- },
- "policy": {
- "levels": {
- "0": {
- "statsUserUplink": true,
- "statsUserDownlink": true
- }
- }
- },
- "dns": {
- "servers": [
- "1.1.1.1"
- ]
- },
- "inbounds": [
- {
- "listen": "0.0.0.0",
- "port": 4436,
- "protocol": "trojan",
- "settings": {
- "clients": [
- {
- "password": "<xray generated password>=",
- "email": "exampleuser"
- }
- ]
- },
- "streamSettings": {
- "network": "tcp",
- "security": "reality",
- "realitySettings": {
- "show": false,
- "dest": "example.com:443",
- "serverNames": [
- "example.com",
- "www.example.com"
- ],
- "xver": 0,
- "privateKey": "<xray generated private key>",
- "maxTimeDiff": 0,
- "shortIds": [""]
- }
- }
- },
- {
- "listen": "0.0.0.0",
- "port": 4437,
- "protocol": "vless",
- "settings": {
- "decryption": "none",
- "clients": [
- {
- "flow": "xtls-rprx-vision",
- "email": "exampleuser",
- "id": "<xray generated id>"
- }
- ]
- },
- "streamSettings": {
- "network": "tcp",
- "security": "reality",
- "realitySettings": {
- "show": false,
- "dest": "example.com:443",
- "serverNames": [
- "example.com",
- "www.example.com"
- ],
- "xver": 0,
- "privateKey": "<xray generated privkey>",
- "maxTimeDiff": 0,
- "shortIds": [""]
- }
- }
- },
- {
- "listen": "0.0.0.0",
- "port": 4438,
- "protocol": "vmess",
- "settings": {
- "clients": [
- {
- "flow": "xtls-rprx-vision",
- "email": "exampleuser",
- "id": "<generated id>",
- "level": 0
- }
- ]
- },
- "streamSettings": {
- "network": "tcp",
- "security": "reality",
- "realitySettings": {
- "show": false,
- "dest": "example.com:443",
- "serverNames": [
- "example.com",
- "www.example.com"
- ],
- "xver": 0,
- "privateKey": "<xray generated privkey>",
- "maxTimeDiff": 0,
- "shortIds": [""]
- }
- }
- },
- {
- "listen": "127.0.0.1",
- "port": 10085,
- "protocol": "dokodemo-door",
- "settings": {
- "address": "127.0.0.1"
- },
- "tag": "api"
- }
- ],
- "outbounds": [
- {
- "protocol": "freedom",
- "tag": "direct"
- }
- ],
- "routing": {
- "rules": [
- {
- "inboundTag": [
- "api"
- ],
- "outboundTag": "api",
- "type": "field"
- }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement