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

How to limit the number of connections a client can have in x-ui? #410

Closed lostsoul6 closed 1 year ago

lostsoul6 commented 1 year ago

Hello Friends ,

Sorry if the question sounds stupid but I see a problem with x-ui . When I create an inbound and use the config on only one device , I see the number of connections rising to like 200-250 connection for a single client usage . Don't you think this number of connections can flag the server and GFW would ban it ?

I also use openconnect ( ocserv ) but each vpn client creates only a single connection . Can I modify x-ray config file and limit the number of connection that each client can have ?

I remember when I was using Trojan-GO , before it was flagged by GFW , there was a MUX option for this purpose :

"mux": {
        "enabled": true,
        "concurrency": 8,
        "idle_timeout": 60
    }

Does x-ray have such option ? if yes , how do I implement it ? what is the syntax ?

will this reduce the quality of the user's connections ?

Thanks .