ambrop72 / badvpn

NCD scripting language, tun2socks proxifier, P2P VPN
Other
1.86k stars 603 forks source link

ERROR(udpgw): BConnection_Init failed #114

Open initux opened 3 years ago

initux commented 3 years ago

image

ambrop72 commented 3 years ago

Apparently udpgw is failing to accept connections. This may be normal sometimes if a connection is aborted before it could be accepted. But anyway you can run with strace to see the error code.

initux commented 3 years ago

Apparently udpgw is failing to accept connections. This may be normal sometimes if a connection is aborted before it could be accepted. But anyway you can run with strace to see the error code.

when 100+ user connected in my server then face this issue....... if 20 / 30 user connected then can't face this issue.... my server is 32 GB RAM, 16 CPU, 1 GB LAN

ambrop72 commented 3 years ago

My guess would be that you need to increase the maximum number of file descriptors (ulimit -n).

initux commented 3 years ago

please tell me whose file i need change..... just give me example please

ambrop72 commented 3 years ago

Depends on how you run the program. Generally the limit is raise using ulimit -n (e.g. 10000) but you may need to change system policy if you get "operation not permited". If running from a systemd service, then LimitNOFILE= in the service config file.

initux commented 3 years ago

/bin/badvpn-udpgw --listen-addr 127.0.0.1:7300 --max-clients 1000 --max-connections-for-client 1

i will run from this command ......... if you need any change please give me.... i need minimum 1000+ user connected in my vpn server.... badvpn service every time run...... but whatsapp call not working when show like this error..... if exit badvpn & again open then work some time good.... after some time again same issue....

initux commented 3 years ago

Please brother, please give me any solution for me

initux commented 3 years ago

image