diff --git a/Hysteria/hysteria证书申请.sh b/Hysteria/hysteria证书申请.sh index 993f3e3..e6ef8c6 100644 --- a/Hysteria/hysteria证书申请.sh +++ b/Hysteria/hysteria证书申请.sh @@ -21,4 +21,7 @@ openssl x509 -noout -fingerprint -sha256 -in /root/.acme.sh/super-idol.107421.xy cp /root/.acme.sh/super-idol.107421.xyz_ecc/super-idol.107421.xyz.cer /etc/hysteria/super-idol.107421.xyz.cert cp /root/.acme.sh/super-idol.107421.xyz_ecc/super-idol.107421.xyz.key /etc/hysteria/super-idol.107421.xyz.key -cp /root/.acme.sh/super-idol.107421.xyz_ecc/fullchain.cer /etc/hysteria/super-idol.107421.xyz.cert \ No newline at end of file +cp /root/.acme.sh/super-idol.107421.xyz_ecc/fullchain.cer /etc/hysteria/super-idol.107421.xyz.cert + +cp /root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/fullchain.cer /etc/trojan-go/xx.s4.cc.hh.107421.xyz.cert +cp /root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/xx.s4.cc.hh.107421.xyz.key /etc/trojan-go/xx.s4.cc.hh.107421.xyz.key diff --git a/Hysteria/需要配合iptables使用.txt b/Hysteria/需要配合iptables使用.txt index 772b82c..81fb844 100644 --- a/Hysteria/需要配合iptables使用.txt +++ b/Hysteria/需要配合iptables使用.txt @@ -1,8 +1,8 @@ Hysteria 服务端并不能同时监听多个端口,因此不能在服务器端使用上面的格式作为监听地址。建议配合 iptables 的 DNAT 将端口转发到服务器的监听端口。 # IPv4 -iptables -t nat -A PREROUTING -i ens3 -p udp --dport 29100:30000 -j DNAT --to-destination :29100 -iptables -t nat -A PREROUTING -i ens3 -p tcp --dport 29100:30000 -j DNAT --to-destination :29100 +iptables -t nat -A PREROUTING -i ens3 -p udp --dport 29101:30000 -j DNAT --to-destination :29100 +iptables -t nat -A PREROUTING -i ens3 -p tcp --dport 29101:30000 -j DNAT --to-destination :29100 # IPv6 ip6tables -t nat -A PREROUTING -i ens3 -p udp --dport 19100:19300 -j DNAT --to-destination :19100 diff --git a/v2ray示例/XRay-外网服务器/Seoul4实际使用的Xray配置.json b/v2ray示例/XRay-外网服务器/Seoul4实际使用的Xray配置.json deleted file mode 100644 index 5c59d81..0000000 --- a/v2ray示例/XRay-外网服务器/Seoul4实际使用的Xray配置.json +++ /dev/null @@ -1,442 +0,0 @@ -{ - "log": { - "access": "/var/log/xray/access.log", - "error": "/var/log/xray/error.log", - "loglevel": "warning" - }, - "inbounds": [ - { - "protocol": "vmess", - "listen": "0.0.0.0", - "port": 19999, - "streamSettings": { - "tcpSettings": { - "header": { - "type": "http", - "response": { - "version": "1.1", - "status": "200", - "reason": "Accept", - "headers": { - "Content-Type": [ - "application/octet-stream", - "video/mpeg" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Connection": [ - "keep-alive" - ], - "Pragma": "no-cache" - } - } - } - } - }, - "tag": "Seoul-amd64-04", - "settings": { - "clients": [ - { - "id": "6aa7cdeb-ba46-4264-8e02-5131bca27729", - "email": "Seoul-amd64-04@octopus.io", - "level": 0, - "alterId": 0 - } - ], - "disableInsecureEncryption": false - } - }, - { - "protocol": "vmess", - "listen": "0.0.0.0", - "port": 19997, - "streamSettings": { - "tcpSettings": { - "header": { - "type": "http", - "response": { - "version": "1.1", - "status": "200", - "reason": "Accept", - "headers": { - "Content-Type": [ - "application/octet-stream", - "video/mpeg" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Connection": [ - "keep-alive" - ], - "Pragma": "no-cache" - } - } - } - } - }, - "tag": "Shanghai-amd64-01->Seoul-amd64-04", - "settings": { - "clients": [ - { - "id": "3835293a-35a7-4c96-8595-d52e5a2754a9", - "email": "Shanghai-amd64-01->Seoul-amd64-04@octopus.io", - "level": 0, - "alterId": 0 - } - ], - "disableInsecureEncryption": false - } - }, - { - "protocol": "vmess", - "listen": "0.0.0.0", - "port": 19996, - "streamSettings": { - "tcpSettings": { - "header": { - "type": "http", - "response": { - "version": "1.1", - "status": "200", - "reason": "Accept", - "headers": { - "Content-Type": [ - "application/octet-stream", - "video/mpeg" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Connection": [ - "keep-alive" - ], - "Pragma": "no-cache" - } - } - } - } - }, - "tag": "Shanghai-amd64-01->Seoul-amd64-04->Tokyo-amd64-02", - "settings": { - "clients": [ - { - "id": "89cce8ba-0b2c-4cde-8a67-07a6508b55bc", - "email": "Shanghai-amd64-01->Seoul-amd64-04->Tokyo-amd64-02@octopus.io", - "level": 0, - "alterId": 0 - } - ], - "disableInsecureEncryption": false - } - }, - { - "protocol": "vmess", - "listen": "0.0.0.0", - "port": 19995, - "streamSettings": { - "tcpSettings": { - "header": { - "type": "http", - "response": { - "version": "1.1", - "status": "200", - "reason": "Accept", - "headers": { - "Content-Type": [ - "application/octet-stream", - "video/mpeg" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Connection": [ - "keep-alive" - ], - "Pragma": "no-cache" - } - } - } - } - }, - "tag": "Shanghai-amd64-01->Seoul-amd64-04->Phoenix-amd64-02", - "settings": { - "clients": [ - { - "id": "534528a0-dd12-4fc5-b367-f081d6e717cc", - "email": "Shanghai-amd64-01->Seoul-amd64-04->Phoenix-amd64-02@octopus.io", - "level": 0, - "alterId": 0 - } - ], - "disableInsecureEncryption": false - } - }, - { - "protocol": "vmess", - "listen": "0.0.0.0", - "port": 19994, - "streamSettings": { - "tcpSettings": { - "header": { - "type": "http", - "response": { - "version": "1.1", - "status": "200", - "reason": "Accept", - "headers": { - "Content-Type": [ - "application/octet-stream", - "video/mpeg" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Connection": [ - "keep-alive" - ], - "Pragma": "no-cache" - } - } - } - } - }, - "tag": "Shanghai-amd64-01->Seoul-amd64-04->London-amd64-01", - "settings": { - "clients": [ - { - "id": "d5b67da8-ea65-4ba1-a586-0189c968ba85", - "email": "Shanghai-amd64-01->Seoul-amd64-04->London-amd64-01@octopus.io", - "level": 0, - "alterId": 0 - } - ], - "disableInsecureEncryption": false - } - } - ], - "outbounds": [ - { - "protocol": "freedom" - }, - { - "protocol": "blackhole", - "tag": "block" - }, - { - "protocol": "vmess", - "settings": { - "vnext": [ - { - "address": "140.238.52.228", - "port": 19996, - "users": [ - { - "id": "89cce8ba-0b2c-4cde-8a67-07a6508b55bc", - "email": "Shanghai-amd64-01->Seoul-amd64-04->Tokyo-amd64-02@octopus.io", - "level": 0, - "alterId": 0 - } - ] - } - ] - }, - "tag": "Shanghai-amd64-01->Seoul-amd64-04->Tokyo-amd64-02", - "streamSettings": { - "tcpSettings": { - "header": { - "type": "http", - "request": { - "version": "1.1", - "method": "GET", - "path": [ - "/" - ], - "headers": { - "Host": [ - "www.baidu.com", - "www.google.com", - "www.bing.com", - "www.github.com" - ], - "User-Agent": [ - "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36", - "Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/53.0.2785.109 Mobile/14A456 Safari/601.1.46" - ], - "Accept-Encoding": [ - "gzip", - "deflate" - ], - "Connection": [ - "keep-alive" - ], - "Pragma": "no-cache" - } - } - } - } - }, - "mux": { - "enabled": false, - "concurrency": -1 - } - }, - { - "protocol": "vmess", - "settings": { - "vnext": [ - { - "address": "129.146.171.163", - "port": 19995, - "users": [ - { - "id": "534528a0-dd12-4fc5-b367-f081d6e717cc", - "email": "Shanghai-amd64-01->Seoul-amd64-04->Phoenix-amd64-02@octopus.io", - "level": 0, - "alterId": 0 - } - ] - } - ] - }, - "tag": "Shanghai-amd64-01->Seoul-amd64-04->Phoenix-amd64-02", - "streamSettings": { - "tcpSettings": { - "header": { - "type": "http", - "request": { - "version": "1.1", - "method": "GET", - "path": [ - "/" - ], - "headers": { - "Host": [ - "www.baidu.com", - "www.google.com", - "www.bing.com", - "www.github.com" - ], - "User-Agent": [ - "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36", - "Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/53.0.2785.109 Mobile/14A456 Safari/601.1.46" - ], - "Accept-Encoding": [ - "gzip", - "deflate" - ], - "Connection": [ - "keep-alive" - ], - "Pragma": "no-cache" - } - } - } - } - }, - "mux": { - "enabled": false, - "concurrency": -1 - } - }, - { - "protocol": "vmess", - "settings": { - "vnext": [ - { - "address": "141.147.99.91", - "port": 19994, - "users": [ - { - "id": "d5b67da8-ea65-4ba1-a586-0189c968ba85", - "email": "Shanghai-amd64-01->Seoul-amd64-04->London-amd64-01@octopus.io", - "level": 0, - "alterId": 0 - } - ] - } - ] - }, - "tag": "Shanghai-amd64-01->Seoul-amd64-04->London-amd64-01", - "streamSettings": { - "tcpSettings": { - "header": { - "type": "http", - "request": { - "version": "1.1", - "method": "GET", - "path": [ - "/" - ], - "headers": { - "Host": [ - "www.baidu.com", - "www.google.com", - "www.bing.com", - "www.github.com" - ], - "User-Agent": [ - "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36", - "Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/53.0.2785.109 Mobile/14A456 Safari/601.1.46" - ], - "Accept-Encoding": [ - "gzip", - "deflate" - ], - "Connection": [ - "keep-alive" - ], - "Pragma": "no-cache" - } - } - } - } - }, - "mux": { - "enabled": false, - "concurrency": -1 - } - } - ], - "routing": { - "domainStrategy": "IPIfNonMatch", - "rules": [ - { - "type": "field", - "inboundTag": [ - "Seoul-amd64-04" - ], - "outboundTag": "Seoul-amd64-04" - }, - { - "type": "field", - "inboundTag": [ - "Shanghai-amd64-01->Seoul-amd64-04" - ], - "outboundTag": "Shanghai-amd64-01->Seoul-amd64-04" - }, - { - "type": "field", - "inboundTag": [ - "Shanghai-amd64-01->Seoul-amd64-04->Tokyo-amd64-02" - ], - "outboundTag": "Shanghai-amd64-01->Seoul-amd64-04->Tokyo-amd64-02" - }, - { - "type": "field", - "inboundTag": [ - "Shanghai-amd64-01->Seoul-amd64-04->Phoenix-amd64-02" - ], - "outboundTag": "Shanghai-amd64-01->Seoul-amd64-04->Phoenix-amd64-02" - }, - { - "type": "field", - "inboundTag": [ - "Shanghai-amd64-01->Seoul-amd64-04->London-amd64-01" - ], - "outboundTag": "Shanghai-amd64-01->Seoul-amd64-04->London-amd64-01" - } - ] - } -} \ No newline at end of file diff --git a/v2ray示例/Xray-中级方案/Seoul4-实际使用的Xray配置.json b/v2ray示例/Xray-中级方案/Seoul4-实际使用的Xray配置.json new file mode 100644 index 0000000..9be8511 --- /dev/null +++ b/v2ray示例/Xray-中级方案/Seoul4-实际使用的Xray配置.json @@ -0,0 +1,207 @@ +{ + "log": { + "access": "/var/log/xray/access.log", + "error": "/var/log/xray/error.log", + "loglevel": "warning" + }, + "inbounds": [ + { + "protocol": "trojan", + "listen": "0.0.0.0", + "port": 443, + "settings": { + "clients": [ + { + "password": "V2ryStr0ngP0ss", + "email": "love@v2fly.org" + } + ] + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "alpn": [ + "http/1.1" + ], + "certificates": [ + { + "certificateFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/fullchain.cer", + "keyFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/xx.s4.cc.hh.107421.xyz.key" + } + ] + } + }, + "tag": "Seoul-amd64-04" + }, + { + "protocol": "trojan", + "listen": "0.0.0.0", + "port": 19999, + "settings": { + "clients": [ + { + "password": "V2ryStr0ngP0ss", + "email": "love@v2fly.org" + } + ] + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "alpn": [ + "http/1.1" + ], + "certificates": [ + { + "certificateFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/fullchain.cer", + "keyFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/xx.s4.cc.hh.107421.xyz.key" + } + ] + } + }, + "tag": "Seoul-amd64-04->Tokyo-amd64-02" + }, + { + "protocol": "trojan", + "listen": "0.0.0.0", + "port": 19998, + "settings": { + "clients": [ + { + "password": "V2ryStr0ngP0ss", + "email": "love@v2fly.org" + } + ] + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "alpn": [ + "http/1.1" + ], + "certificates": [ + { + "certificateFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/fullchain.cer", + "keyFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/xx.s4.cc.hh.107421.xyz.key" + } + ] + } + }, + "tag": "Seoul-amd64-04->Phoenix-amd64-02" + }, + { + "protocol": "trojan", + "listen": "0.0.0.0", + "port": 19997, + "settings": { + "clients": [ + { + "password": "V2ryStr0ngP0ss", + "email": "love@v2fly.org" + } + ] + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "alpn": [ + "http/1.1" + ], + "certificates": [ + { + "certificateFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/fullchain.cer", + "keyFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/xx.s4.cc.hh.107421.xyz.key" + } + ] + } + }, + "tag": "Seoul-amd64-04->London-amd64-01" + } + ], + "outbounds": [ + { + "protocol": "freedom" + }, + { + "protocol": "freedom", + "tag": "Seoul-amd64-04" + }, + { + "protocol": "blackhole", + "tag": "block" + }, + { + "tag": "Seoul-amd64-04->Tokyo-amd64-02", + "protocol": "socks", + "settings": { + "servers": [ + { + "address": "140.238.52.228", + "port": 1234 + } + ] + } + }, + { + "tag": "Seoul-amd64-04->Phoenix-amd64-02", + "protocol": "socks", + "settings": { + "servers": [ + { + "address": "129.146.171.163", + "port": 1234 + } + ] + } + }, + { + "tag": "Seoul-amd64-04->London-amd64-01", + "protocol": "socks", + "settings": { + "servers": [ + { + "address": "141.147.99.91", + "port": 1234 + } + ] + } + } + ], + "routing": { + "domainStrategy": "IPIfNonMatch", + "rules": [ + { + "type": "field", + "inboundTag": [ + "Seoul-amd64-04" + ], + "outboundTag": "Seoul-amd64-04" + }, + { + "type": "field", + "inboundTag": [ + "Seoul-amd64-04->Tokyo-amd64-02" + ], + "outboundTag": "Seoul-amd64-04->Tokyo-amd64-02" + }, + { + "type": "field", + "inboundTag": [ + "Seoul-amd64-04->Phoenix-amd64-02" + ], + "outboundTag": "Seoul-amd64-04->Phoenix-amd64-02" + }, + { + "type": "field", + "inboundTag": [ + "Seoul-amd64-04->London-amd64-01" + ], + "outboundTag": "Seoul-amd64-04->London-amd64-01" + } + ] + } +} \ No newline at end of file diff --git a/v2ray示例/Xray-中级方案/Tokyo2-实际使用的Xray配置.json b/v2ray示例/Xray-中级方案/Tokyo2-实际使用的Xray配置.json new file mode 100644 index 0000000..4c1c405 --- /dev/null +++ b/v2ray示例/Xray-中级方案/Tokyo2-实际使用的Xray配置.json @@ -0,0 +1,25 @@ +{ + "log": { + "access": "/var/log/xray/access.log", + "error": "/var/log/xray/error.log", + "loglevel": "warning" + }, + "inbounds": [ + { + "protocol": "socks", + "listen": "0.0.0.0", + "port": 1234, + "settings": { + "auth": "noauth", + "udp": true, + "ip": "127.0.0.1", + "userLevel": 0 + } + } + ], + "outbounds": [ + { + "protocol": "freedom" + } + ] +} \ No newline at end of file