Mahdi-zarei / nekoray

Qt based cross-platform GUI proxy configuration manager (backend: sing-box)
GNU General Public License v3.0
412 stars 25 forks source link

Kill-switch like feature #74

Closed amirhakimnejad closed 1 month ago

amirhakimnejad commented 3 months ago

With Nekoray, I have experienced a lot of scenarios where, after an unsuccessful connection, my real IP is exposed. Is there a way to kill the internet(Like the killswitch feature in other softwares) to minimize IP exposure?

Mahdi-zarei commented 3 months ago

By kill the internet, do you mean to shut down nekoray, or to disconnect the whole device's connectivity?

amirhakimnejad commented 3 months ago

The latter, just like this in expressvpn

Screenshot 2024-07-03 at 11 59 57 AM
Mahdi-zarei commented 3 months ago

Given how nekoray works, this might be rather difficult to implement. For the time being I'm focusing on improving current features and fixing bugs and don't want to add new functionalities, so it will have to wait until some time. by the way, as long as the core is running, you can achieve the effect using tun mode, but to fully disconnect a device when nekoray stops or crashes requires some effort.

APT-ZERO commented 3 months ago

For Windows use NSSM For Linux just make a service For proxy, just check every 1-2 sec and reset the proxy if it's removed/changed unexpectedly