FranzKafkaYu / x-ui

Lightweight Xray panel with multi-protocol and multi-user on the same port,supports English language and Telegram bot. Easy to use and easy to manage.
GNU General Public License v3.0
7.84k stars 1.57k forks source link

允许范围监听端口 #439

Open Fangliding opened 1 year ago

Fangliding commented 1 year ago

rt xray本身是允许"1000-2000,443,444"这种监听多个端口的 在遇到时不时端口被墙时这个功能很有用 换个端口就复活了 但是xui却只能监听一个

YttriumC commented 11 months ago

用 iptables可以实现, 以下命令会将1000-2000端口的数据转发到443上,相当于范围监听了

iptables -t nat -A PREROUTING -p tcp --dport 1000:2000 -j REDIRECT --to-port 443