Kcptun: 可以监听多个端口吗

Created on 14 Aug 2017  ·  4Comments  ·  Source: xtaci/kcptun

可以监听多个端口吗

Most helpful comment

貌似不能通过配置。

可以开多个服务。或者用iptables把多个端口转发到真实端口。

iptables -t nat -A PREROUTING -p udp -m multiport --dport 4000:5000 -j REDIRECT --to-ports <your_kcp_server_port>

All 4 comments

作者你好 服务端能通过配置文件监听多个端口吗 还是每增加一个监听端口就要创建一个守护进程?

貌似不能通过配置。

可以开多个服务。或者用iptables把多个端口转发到真实端口。

iptables -t nat -A PREROUTING -p udp -m multiport --dport 4000:5000 -j REDIRECT --to-ports <your_kcp_server_port>

希望能增加这个功能,这样一来就可以试试能不能加速IKEv2的VPN了,需要同时监听500和4500

@testcaoy7 端口不多的话直接创建几个守护进程应该也可以

Was this page helpful?
0 / 5 - 0 ratings

Related issues

flyer5200 picture flyer5200  ·  5Comments

ghost picture ghost  ·  7Comments

raszzh picture raszzh  ·  5Comments

becapital picture becapital  ·  8Comments

caicy1991 picture caicy1991  ·  10Comments