Skip to content

Instantly share code, notes, and snippets.

@1nikolas
Last active February 4, 2024 16:53
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save 1nikolas/4efbfb6b0d37eba8c9ab471c55f5e892 to your computer and use it in GitHub Desktop.
Save 1nikolas/4efbfb6b0d37eba8c9ab471c55f5e892 to your computer and use it in GitHub Desktop.
#!/bin/sh
OS=`uname -m`;
sudo wget -O /usr/bin/badvpn-udpgw "https://raw.githubusercontent.com/daybreakersx/premscript/master/badvpn-udpgw"
if [ "$OS" == "x86_64" ]; then
sudo wget -O /usr/bin/badvpn-udpgw "https://raw.githubusercontent.com/daybreakersx/premscript/master/badvpn-udpgw64"
fi
sudo touch /etc/rc.local
echo "\nscreen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300" | sudo tee -a /etc/rc.local
sudo chmod +x /usr/bin/badvpn-udpgw
sudo screen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300
@prxpostern
Copy link

hi . i have this error.
ERROR(udpgw): maximum number of clients reached
ERROR(BConnection): discarding connection

after 3 connection accepted.

please help me

@m0hammadhossein
Copy link

hi . i have this error. ERROR(udpgw): maximum number of clients reached ERROR(BConnection): discarding connection

after 3 connection accepted.

please help me

use this parameter --max-clients

@prxpostern
Copy link

prxpostern commented Feb 20, 2023 via email

@m0hammadhossein
Copy link

خیلی ممنون. تست میکنم

On Mon, Feb 20, 2023, 18:36 mohammadhossein @.> wrote: @.* commented on this gist. ------------------------------ hi . i have this error. ERROR(udpgw): maximum number of clients reached ERROR(BConnection): discarding connection after 3 connection accepted. please help me use this parameter --max-clients — Reply to this email directly, view it on GitHub https://gist.github.com/4efbfb6b0d37eba8c9ab471c55f5e892#gistcomment-4477175 or unsubscribe https://github.com/notifications/unsubscribe-auth/AKQWQV6SRKSQV55M4NHUCNTWYOCALBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFQKSXMYLMOVS2I5DSOVS2I3TBNVS3W5DIOJSWCZC7OBQXE5DJMNUXAYLOORPWCY3UNF3GS5DZVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVA4TIOJVGM4TMMNHORZGSZ3HMVZKMY3SMVQXIZI . You are receiving this email because you commented on the thread. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

عدد بزار جلوش مثلا ۲۰ کلاینت یادت نره

@prxpostern
Copy link

prxpostern commented Feb 24, 2023 via email

@miladkomasi
Copy link

سلام من مشکل لیمیت دارم میشه راهنمایی کنید لطفا

@miladkomasi
Copy link

نمیزاره بیشتر از دونفر وصل بشه لطفا راهنمایی کنید

@mobagheri
Copy link

با سلام... این اسکریپت برای اتصال با ipv6 هم اکی هستش؟

@alibehzadi2
Copy link

سلام دوستان من مشکل لیمیتد برای اتصال دارم .ماکسیموس ۳ نفر وصل میتونن بشن .نگاه کردم کامنت ها رو دوستان گفتن paramet --max -client 20باشه .ولی این کجا باید زده بشه

@alibehzadi2
Copy link

خیلی ممنون. تست میکنم

On Mon, Feb 20, 2023, 18:36 mohammadhossein @.> wrote: _@**.**_* commented on this gist. ------------------------------ hi . i have this error. ERROR(udpgw): maximum number of clients reached ERROR(BConnection): discarding connection after 3 connection accepted. please help me use this parameter --max-clients — Reply to this email directly, view it on GitHub https://gist.github.com/4efbfb6b0d37eba8c9ab471c55f5e892#gistcomment-4477175 or unsubscribe https://github.com/notifications/unsubscribe-auth/AKQWQV6SRKSQV55M4NHUCNTWYOCALBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFQKSXMYLMOVS2I5DSOVS2I3TBNVS3W5DIOJSWCZC7OBQXE5DJMNUXAYLOORPWCY3UNF3GS5DZVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVA4TIOJVGM4TMMNHORZGSZ3HMVZKMY3SMVQXIZI . You are receiving this email because you commented on the thread. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

عدد بزار جلوش مثلا ۲۰ کلاینت یادت نره

سلام این کجا بادید زده بشه مهندس parameter --max-client ?
ممنون میشم راهنمایی کنید

@alibehzadi2
Copy link

hi . i have this error. ERROR(udpgw): maximum number of clients reached ERROR(BConnection): discarding connection
after 3 connection accepted.
please help me

use this parameter --max-clients
سلام مهندس این parametrs رو کجا بزنیم؟
خیلی سرج کردم .منظور این هست که udp باید دسترسی بیشتر به به کلاینت ها .
اگر راهنمایی بکنید ممنون میشم.

@alishahidi
Copy link

for apped text into file as sudo you cant echo it by "sudo echo" command you must using tee

echo "\nscreen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300" | sudo tee -a /etc/rc.local

@illmanner
Copy link

hi, I get the following error on ubuntu server 22.4:
./install-udpgw.sh: 4: [: x86_64: unexpected operator
sudo: screen: command not found

@1nikolas
Copy link
Author

1nikolas commented Feb 4, 2024

@illmanner sudo apt install screen

@1nikolas
Copy link
Author

1nikolas commented Feb 4, 2024

@alishahidi fixed thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment