Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] autoreconnect when PIA connection drops #133

Open
sifr01 opened this issue Sep 18, 2021 · 4 comments
Open

[feature request] autoreconnect when PIA connection drops #133

sifr01 opened this issue Sep 18, 2021 · 4 comments

Comments

@sifr01
Copy link

sifr01 commented Sep 18, 2021

It would be very handy if there was an autoREconnect feature. In other words, when the VPN connection drops, a daemon would be running to detect this VPN connection dropping and then automate reconnection attempts.

#while there is internet on the VPN interface, just keep pinging! 
while ping -I tun06 -c 1 -W 1 1.1.1.1; do
        sleep 1
done

#If theres no internet from the VPN interface, carry out connect command
sudo VPN_PROTOCOL=openvpn DISABLE_IPV6="no" AUTOCONNECT=true PIA_PF=false PIA_USER=p0123456 PIA_PASS=xxxxxxxx ./run_setup.sh

sleep 1s;
@belzebud
Copy link

This would be great. I'm moving my server functions to containers and need an easy way to make sure the VPN auto connects at startup and reconnects if it drops, and allows LAN traffic. These options are present in the GUI but I can't use the GUI in the container.

@g00nix
Copy link
Contributor

g00nix commented Feb 19, 2022

It would be very handy if there was an autoREconnect feature

I think this issue is actually a duplicate of #48. We should provide a folder with service files for systemd and also make sure they include a script that triggers a reconnect incase the VPN drops.

These options are present in the GUI but I can't use the GUI in the container.

These scripts do not plan to replace the GUI, or to offer all the functionality that is present within the Desktop app.

@proteanx
Copy link

proteanx commented Mar 29, 2022

honestly kind of dumbfounded this isn't already part of the scripts... why would anyone want their vpn to be able to drop and have virtually no clue its happened? with no killswitch setting at that... i know this is possible to do through openvpn without PIA or PIA's scripts, so why wouldn't this be included with the scripts?

i wonder how many people wrongfully think their devices connections are tunneled right now because they used these scripts..

@triffid
Copy link
Contributor

triffid commented Apr 20, 2022

killswitch should be implemented with iptables or iproute2 separately, it's not in these scripts' scope.

Alternatively, you could use wireguard instead of openvpn which implicitly gives killswitch because the protocol is fundamentally connectionless - ironically, PIA's GUI clients (at least the Android one) don't seem to understand this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants