Block Local Networks
The BlockLocalNetwork
feature allows you to block all local network connections during a VPN session. This is particularly useful in scenarios where you want to prevent potential attackers on the same local network from accessing your device or intercepting your network traffic.
Use Cases
Blocking local network connections is recommended in situations where you want to ensure that all network traffic is routed through the VPN tunnel and prevent any potential leaks. This is especially important when dealing with sensitive data or when operating in untrusted network environments.
Below are some examples:
Remote Workers
When employees are working remotely and accessing company resources through a VPN, blocking local network connections can prevent inadvertent data leaks through non-VPN channels.
Public Wi-Fi
When connecting to public Wi-Fi networks, such as those in coffee shops or airports, blocking local network connections ensures that all traffic is securely routed through the VPN tunnel, protecting against potential eavesdropping or man-in-the-middle attacks.
Healthcare Industry
In healthcare environments, where sensitive patient data is handled, blocking local network connections can help maintain compliance with privacy regulations and prevent unauthorized access to medical records.
Enabling Protection
You can enable the blocking of local networks only on starting VPN session. Unlike Killswitch and Prevent IP Leaks modules, you cannot enable or disable Block Local Networks module during the active VPN session. This ensures that all network traffic is forced through the VPN tunnel, preventing any potential leaks or unauthorized access.
In the code snippet provided, the BlockLocalNetworks
property of the StartVpnRequest
object is set to true
. This instructs the VPN client to block all local network connections while the VPN is active.
Last updated
Was this helpful?