Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SHADOWSOCKS + v2ray plugin
- server config (VPS SIDE)
- /etc/shadowsocks-libev/config.json
- ---------------------------------
- {
- "server": "0.0.0.0",
- "server_port": 443,
- "password": "YOUR_RANDOM_PASSWORD_HERE",
- "timeout": 300,
- "method": "chacha20-ietf-poly1305",
- "plugin": "v2ray-plugin",
- "plugin_opts": "server;tls;host=YOUR_DOMAIN_HERE;cert=/etc/letsencrypt/live/YOUR_DOMAIN_HERE/fullchain.pem;key=/etc/letsencrypt/live/YOUR_DOMAIN_HERE/privkey.pem"
- }
- -------------------------------------------------------------------------
- CLIENT CONFIG (HOST SIDE)
- (store-anywhere)
- ----------------------
- {
- "server": "YOUR_DOMAIN_HERE",
- "server_port": 443,
- "local_address": "127.0.0.1",
- "local_port": 1080,
- "password": "YOUR_RANDOM_PASSWORD_HERE",
- "timeout": 300,
- "method": "chacha20-ietf-poly1305",
- "plugin": "v2ray-plugin",
- "plugin_opts": "tls;host=YOUR_DOMAIN_HERE"
- }
- --------------------------------------------------------------------------
- turning it into systemd service:
- /etc/systemd/system/ss-local.service
- -------------------
- [Unit]
- Description=Shadowsocks local client with v2ray-plugin
- After=network-online.target
- Wants=network-online.target
- [Service]
- ExecStart=/usr/bin/ss-local -c /home/YOUR_LOCAL_USERNAME/ss-client.json
- Restart=on-failure
- User=YOUR_LOCAL_USERNAME
- [Install]
- WantedBy=multi-user.target
- -------------------------------------------------------------------------------
- VLESS + REALITY + XTLS VISION + uTLS Fingerprinting
- XRAY CONFIG (VPS SIDE)
- /usr/local/etc/xray/config.json
- ----------------------------------
- {
- "log": {
- "access": "none",
- "error": "/var/log/xray/error.log",
- "loglevel": "warning",
- "maskAddress": "half"
- },
- "inbounds": [
- {
- "tag": "vless-reality-443",
- "listen": "0.0.0.0",
- "port": 443,
- "protocol": "vless",
- "settings": {
- "clients": [
- {
- "id": "[YOUR-UUID]",
- "flow": "xtls-rprx-vision",
- "email": "client1"
- }
- ],
- "decryption": "none"
- },
- "streamSettings": {
- "network": "tcp",
- "security": "reality",
- "realitySettings": {
- "show": false,
- "dest": "[YOUR-SNI]:443",
- "xver": 0,
- "serverNames": [
- "[YOUR-SNI]"
- ],
- "privateKey": "[YOUR-REALITY-PRIVATE-KEY]",
- "shortIds": [
- "[YOUR-SHORT-ID]"
- ]
- }
- },
- "sniffing": {
- "enabled": true,
- "destOverride": [
- "http",
- "tls",
- "quic"
- ],
- "routeOnly": true
- }
- }
- ],
- "outbounds": [
- {
- "tag": "direct",
- "protocol": "freedom"
- },
- {
- "tag": "block",
- "protocol": "blackhole"
- }
- ],
- "routing": {
- "domainStrategy": "AsIs",
- "rules": [
- {
- "type": "field",
- "ip": [
- "geoip:private"
- ],
- "outboundTag": "block"
- }
- ]
- }
- }
- ------------------------------------------------------------------------------------
- MANUAL sing-box CONFIG FOR YOUR HOST MACHINE
- /etc/sing-box/config.json
- ----------------------------
- {
- "log": {
- "level": "warn",
- "timestamp": true
- },
- "dns": {
- "servers": [
- {
- "type": "https",
- "tag": "cloudflare-doh",
- "server": "1.1.1.1",
- "server_port": 443,
- "path": "/dns-query",
- "detour": "proxy"
- }
- ],
- "final": "cloudflare-doh",
- "strategy": "ipv4_only"
- },
- "inbounds": [
- {
- "type": "tun",
- "tag": "tun-in",
- "interface_name": "singtun0",
- "address": [
- "172.19.0.1/30"
- ],
- "mtu": 1500,
- "auto_route": true,
- "strict_route": true
- }
- ],
- "outbounds": [
- {
- "type": "vless",
- "tag": "proxy",
- "server": "[YOUR-VPS-IP]",
- "server_port": 443,
- "uuid": "[YOUR-UUID]",
- "flow": "xtls-rprx-vision",
- "network": "tcp",
- "tls": {
- "enabled": true,
- "server_name": "[YOUR-SNI]",
- "utls": {
- "enabled": true,
- "fingerprint": "chrome"
- },
- "reality": {
- "enabled": true,
- "public_key": "[YOUR-REALITY-PUBLIC-KEY]",
- "short_id": "[YOUR-SHORT-ID]"
- }
- },
- "packet_encoding": "xudp"
- },
- {
- "type": "direct",
- "tag": "direct"
- }
- ],
- "route": {
- "auto_detect_interface": true,
- "rules": [
- {
- "action": "sniff"
- },
- {
- "protocol": "dns",
- "action": "hijack-dns"
- }
- ],
- "final": "proxy"
- }
- }
- ---------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment