Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Server
- ```json
- {
- "log": {
- "disabled": false,
- "level": "warn",
- "timestamp": true
- },
- "outbounds": [
- {
- "tag": "direct-out",
- "type": "direct"
- },
- {
- "tag": "block",
- "type": "block"
- },
- {
- "tag": "dns-out",
- "type": "dns"
- }
- ],
- "inbounds": [
- {
- "type": "vless",
- "tag": "vless-in",
- "listen": "::",
- "listen_port": 443,
- "users": [
- {
- "uuid": "", // uuidgen
- "flow": "xtls-rprx-vision"
- }
- ],
- "tls": {
- "enabled": true,
- "server_name": "apple.com", // Must support TLS v1.3 and HTTP/2
- "reality": {
- "enabled": true,
- "handshake": {
- "server": "apple.com", // Must support TLS v1.3 and HTTP/2
- "server_port": 443
- },
- "private_key": "", // docker run -it --rm ghcr.io/sagernet/sing-box generate reality-keypair
- "short_id": [
- "" // openssl rand -hex 8
- ]
- }
- }
- }
- ]
- }
- ```
- ## Client
- ```json
- {
- "log": {
- "level": "info",
- "timestamp": true
- },
- "dns": {
- "servers": [
- {
- "tag": "doh",
- "address": "https://dns.quad9.net/dns-query",
- "address_resolver": "noenc",
- // "address_strategy": ""
- },
- {
- "tag": "noenc",
- "address": "9.9.9.9"
- }
- ]
- },
- "inbounds": [
- {
- "type": "tun",
- "tag": "tun-in",
- "interface_name": "utun128",
- "inet4_address": [
- "172.19.0.1/30"
- ],
- "inet6_address": [
- "fd17:1ef8:426a:4632::/64"
- ],
- "mtu": 1500,
- "auto_route": true,
- "strict_route": true,
- "sniff": true
- }
- ],
- "outbounds": [
- {
- "type": "vless",
- "tag": "vless-out",
- "detour": "direct-out",
- "server": "<yourserverip>",
- "server_port": 443,
- "uuid": "",
- "flow": "xtls-rprx-vision",
- "tls": {
- "enabled": true,
- "server_name": "apple.com",
- "utls": {
- "enabled": true,
- "fingerprint": "firefox"
- },
- "reality": {
- "enabled": true,
- "public_key": "",
- "short_id": ""
- }
- }
- },
- {
- "type": "direct",
- "tag": "direct-out"
- },
- {
- "type": "block",
- "tag": "block"
- },
- {
- "type": "dns",
- "tag": "dns-out"
- }
- ],
- "route": {
- "rules": [
- {
- "inbound": "tun-in",
- "outbound": "vless-out"
- },
- {
- "protocol": "dns",
- "outbound": "dns-out"
- }
- ],
- "auto_detect_interface": true
- }
- }
- ```
Advertisement
Add Comment
Please, Sign In to add comment