[Xray] 新增Xray的配置
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user