Your commit message
This commit is contained in:
12
Hysteria/需要配合iptables使用.txt
Normal file
12
Hysteria/需要配合iptables使用.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
Hysteria 服务端并不能同时监听多个端口,因此不能在服务器端使用上面的格式作为监听地址。建议配合 iptables 的 DNAT 将端口转发到服务器的监听端口。
|
||||
|
||||
# IPv4
|
||||
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
|
||||
|
||||
|
||||
iptables -t nat -L
|
||||
iptables -t nat -D PREROUTING 1
|
||||
iptables -t nat -nL --line-number
|
||||
Reference in New Issue
Block a user