[Xray] 新增Xray的配置

This commit is contained in:
zeaslity
2023-09-15 09:36:40 +08:00
parent 5bc64ffead
commit 1646ae1c3d
5 changed files with 238 additions and 445 deletions

View File

@@ -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
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

View File

@@ -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