nekoray icon indicating copy to clipboard operation
nekoray copied to clipboard

[Linux] Vpn mode recovery after an unexpected exit

Open smaznet opened this issue 2 years ago • 36 comments

some time when i close or kill nekoray on next launch vpn mode is off but vpn mode is enabled somehow (i checked my ip)

and vpn mode checkbox cannot be toggled when i tested with -debug this error happend start service: initialize inbound/tun[0]: configure tun interface: device or resource busy

smaznet avatar Oct 30 '22 04:10 smaznet

Don't kill the program.

If the program exited accidentally, run sudo killall nekobox_core to disable VPN mode.

arm64v8a avatar Oct 30 '22 05:10 arm64v8a

Thanks but this is a bug

can you check on startup if that process is running mark vpn mode as checked? i hope this will fix this issue

smaznet avatar Oct 30 '22 06:10 smaznet

You can make PR my friend :)))))

SafaSafari avatar Oct 30 '22 13:10 SafaSafari

#92 and #111 happened to me, multiple times i think before starting VPN Mode should check if nekobox_core.exe process exist and kill its process before starting same process again it will solve them, but with custom core, should not do it as their filename maybe be something like svchost.exe (lol) Also your usage of Taskkill.exe in windows is not correct You need to add /t /f to Taskkill.exe command, because sometimes can't kill the process unless you add this parameters

APT-ZERO avatar Nov 08 '22 14:11 APT-ZERO

same problem here, with nekoray latest version on windows 11, see the picture below: image i tried killing the task nekobox_core.exe and turn on vpn mode again but no fix. also killing the process using cmd(Administrator) and restart the application or turn on vpn mode without restarting the application didn't help me solve the issue. also the application is running as the Administrator privileges.

m0x61h0x64i avatar Nov 13 '22 13:11 m0x61h0x64i

I realized this problem is because after closing the program, ‍‍‍‍nekobox_core.exe will automatically restart. But how can this problem be solved?

even if i restart the application after i killed the nekobox_core.exe task, it will run automatically again...

This makes the proxy not work.

m0x61h0x64i avatar Nov 13 '22 13:11 m0x61h0x64i

reinstalling nekoray didn't help me solve the issue.

m0x61h0x64i avatar Nov 13 '22 14:11 m0x61h0x64i

i tried using older versions of nekoray until 1.7 but no fix ... what is the problem can be from ?

m0x61h0x64i avatar Nov 13 '22 15:11 m0x61h0x64i

I have the same issue on mac using sudo killall nekobox_core did the trick and fixed it.

Akbar30Bill avatar Dec 13 '22 12:12 Akbar30Bill

You can make PR my friend :)))))

سلام.. داخل نکوری proxy کار میده، vpn mode کار نمیده... ارورر میده : https://8.8.8.8/dns-query: context deadline exceeded کسی میتونه دست مهربانی به سویم دراز کنه ؟

meyroon avatar Dec 18 '22 22:12 meyroon

You can make PR my friend :)))))

سلام.. داخل نکوری proxy کار میده، vpn mode کار نمیده... ارورر میده : https://8.8.8.8/dns-query: context deadline exceeded کسی میتونه دست مهربانی به سویم دراز کنه ؟

درود please speak English :)) you can set 'remote dns' option to 8.8.8.8 and enable enhanced domain name resolution go and check routing settings

SafaSafari avatar Dec 19 '22 04:12 SafaSafari

You can make PR my friend :)))))

سلام.. داخل نکوری proxy کار میده، vpn mode کار نمیده... ارورر میده : https://8.8.8.8/dns-query: context deadline exceeded کسی میتونه دست مهربانی به سویم دراز کنه ؟

درود please speak English :)) you can set 'remote dns' option to 8.8.8.8 and enable enhanced domain name resolution go and check routing settings

also, make sure your system time is correct

SafaSafari avatar Dec 19 '22 04:12 SafaSafari

Capture hi, tnQ for your dametgarm :D :)) Still not working.. is there any other setting to change or check ??

meyroon avatar Dec 19 '22 05:12 meyroon

Capture hi, tnQ for your dametgarm :D :)) Still not working.. is there any other setting to change or check ??

Make sure شو ke time system okeye :)) Badesh ham as proxy correct use kon

SafaSafari avatar Dec 19 '22 06:12 SafaSafari

Hi mojadad..

new error is : LookupManyDoH: ************* 28 LookupManyDoH: all tries failed

************* : my v2ray server

as soos as i hit the VPN Mode checkbox, internet(wifi) sign in taskbar changes to no inteernet sign !! :D

God kheyret bede pls help me :D

meyroon avatar Dec 19 '22 12:12 meyroon

oh doh? :thinking: i saw some dns bugs in windows @arm64v8a should take a view :))

SafaSafari avatar Dec 19 '22 12:12 SafaSafari

سلام من هم به خوبی داشتم باهاش کار میکردم و یهو کلا دیگه قط شد و نتونستم vpn mode را فعال کنم چند باری حذف کردم و دوباره گرفتم

ubuntu 20.04

uncoxali avatar Jan 04 '23 22:01 uncoxali

@uncoxali من برای کارِ دیگه ای دی ان اس رو ست کردم روی کلودفلر، بعدا دیدم اینم درست شده 😄 اما بنظرم این راه درستی نیس ! نمیدونم والا اگر کسی مشکل رو پیدا کرد بگه لطفاً

I changed DNS for another purpose and used Cloudflare DNS. Later, I found out that the problem of not connecting to Nekuri VPN was solved. I doubt that this is the right solution. If anyone finds a solution, please post it here 👍 😉

meyroon avatar Jan 05 '23 01:01 meyroon

@meyroon

Doesn't work for me (archlinux)

ANTISEC12 avatar Jan 05 '23 08:01 ANTISEC12

@uncoxali من برای کارِ دیگه ای دی ان اس رو ست کردم روی کلودفلر، بعدا دیدم اینم درست شده smile اما بنظرم این راه درستی نیس ! نمیدونم والا اگر کسی مشکل رو پیدا کرد بگه لطفاً

I changed DNS for another purpose and used Cloudflare DNS. Later, I found out that the problem of not connecting to Nekuri VPN was solved. I doubt that this is the right solution. If anyone finds a solution, please post it here +1 wink

راهشو میگید ما هم درست کنیم دمت گرم

uncoxali avatar Jan 05 '23 08:01 uncoxali

هعی سر ایشو من چه بحثی راهی انداختین

Hey in head of my issue what bahs is rah oftading...

smaznet avatar Jan 05 '23 09:01 smaznet

هعی سر ایشو من چه بحثی راهی انداختین

Hey in head of my issue what bahs is rah oftading...

خب همه این مشکل رو داریم! We all have this problem.

ANTISEC12 avatar Jan 08 '23 08:01 ANTISEC12

2023-01-08_13-29

اگه آدرس دامنه ای داخل نکوری تنظیم کردید که بای‌پس بشه حذفش کنید مشکل برطرف می‌شه.

Remove domain addr from Bypass CIDR & restart ProxyService/nekoray. solved the problem.

@Akbar30Bill @smaznet @SafaSafari @mozilla-firefox

ANTISEC12 avatar Jan 08 '23 10:01 ANTISEC12

if nekoray closed unexpectedly, enter this command on terminal and try to run nekoray VPN mode again sudo ip link delete nekoray-tun

SafaSafari avatar Jan 12 '23 13:01 SafaSafari

Hi I have an issue on my M1 Mac that's not work my internet after i disconnecting Nekoray, Chrome show me error to check my proxy setting but it's OK.

PLz Help me

pedramtehrani avatar Jan 23 '23 11:01 pedramtehrani

First, close nekoray, then, find "nekoray_core.exe" in task manager and close it.. it solved my problem..

in macOS its the same process,, just find the nekoray_core and force close it

banxter avatar Jan 23 '23 12:01 banxter

دوستان من nekory رو نصب کردم ترافیک همه ی سیستم از اون رد میشه جز ترمینال کسی راهی داره؟ (ubuntu 22.04) I installed Nekuri, the traffic of all the system passes through it, except the terminal Does anyone have a way?

AmirEbrahimHashemiDot avatar Feb 13 '23 01:02 AmirEbrahimHashemiDot

دوستان من nekory رو نصب کردم ترافیک همه ی سیستم از اون رد میشه جز ترمینال کسی راهی داره؟ (ubuntu 22.04) I installed Nekuri, the traffic of all the system passes through it, except the terminal Does anyone have a way?

export SOCKS5_PROXY=http://127.0.0.1:<Nekoray port>
export HTTPS_PROXY=http://127.0.0.1:<Nekoray port>
export HTTP_PROXY=http://127.0.0.1:<Nekoray port>

Akbar30Bill avatar Feb 13 '23 13:02 Akbar30Bill

دوستان من nekory رو نصب کردم ترافیک همه ی سیستم از اون رد میشه جز ترمینال کسی راهی داره؟ (ubuntu 22.04) I installed Nekuri, the traffic of all the system passes through it, except the terminal Does anyone have a way?

export SOCKS5_PROXY=http://127.0.0.1:<Nekoray port>
export HTTPS_PROXY=http://127.0.0.1:<Nekoray port>
export HTTP_PROXY=http://127.0.0.1:<Nekoray port>

how can i find nekoray port?

Mohammad-Khazaee avatar Feb 13 '23 19:02 Mohammad-Khazaee

this work for me

Screenshot 2023-02-16 021150 Screenshot 2023-02-16 021213 Screenshot 2023-02-16 021100

mrmoein avatar Feb 15 '23 22:02 mrmoein