amnezia-vpn / amnezia-client

Amnezia VPN Client (Desktop+Mobile)
https://amnezia.org
GNU General Public License v3.0
4.51k stars 291 forks source link

Optional disabling of the Kill-Switch feature #742

Closed iriabaka closed 5 months ago

iriabaka commented 6 months ago

Before AmneziaVPN 4.3.0.0 I could use it with another VPN (for my work) and everything worked perfectly, but after that my second VPN stopped working properly when I connect to AmneziaVPN first. I assume it's because of the kill switch feature. Could you make this parameter optional with the ability to disable it if not needed?

iriabaka commented 6 months ago

If you manually remove pf rules, it starts working.

################
# List pf rules
################
sudo pfctl -a 'amn/*' -s rules

##################
# Remove pf rules
##################
sudo pfctl -a 'amn' -F all

test -f '/Applications/AmneziaVPN.app/Contents/MacOS/pf/pf.token' \
  && sudo pfctl -X `cat '/Applications/AmneziaVPN.app/Contents/MacOS/pf/pf.token'` \
  && sudo rm -rf '/Applications/AmneziaVPN.app/Contents/MacOS/pf/pf.token'

sudo test -f /etc/pf.conf \
  && sudo pfctl -F all -f /etc/pf.conf
JackBekket commented 5 months ago

Faced same issue

I am using tailscale as work VPN and if I connected (or simply launch AmneziaVPN app) -- it stopped working if Amnezia is active

Actually I cannot even use a normal connection when Amnezia VPN is not connected but app is launched

outspace commented 5 months ago

please check version with killSwitch toggle from #746 You can download AmneziaVPN installer from github actions and approve fix.

iriabaka commented 5 months ago

please check version with killSwitch toggle from #746 You can download AmneziaVPN installer from github actions and approve fix.

Everything works great on mac 👍 Thanks a lot.

iriabaka commented 5 months ago

I suppose the issue can be closed after merging PR.