How could my privacy be compromized in the time between me connecting to a public/work wifi hotspot and the time my vpn is connected.
Is there any use in 1. turning on my mobile data, 2. Connect to vpn, 3. Switch to wifi? Or it is just unnecessary and convoluted.
If you’re using WireGuard, then have a look for an ‘on-demand’ setting where you can define which networks require VPN.
Thanks. But hypothetically even in that scenario if I’m offline and I want to turn VPN on, first I need toconnect to internet and then trought that initial connection communicate with the vpn server to turn VPan on. Right? So I’ll still be volnurable for a moment especially if a lot of app are programmed to sent data onlne the moment they find internet access.
To avoid this leak, you should use a firewall rule to forbid the outbound internet traffic to anything except the VPN IP address.
There is a good post about doing this using UFW on Linux: https://www.linode.com/docs/guides/vpn-firewall-killswitch-for-linux-and-macos-clients/#vpn-firewall-using-ufw