Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Inactive Support Threads
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Software
General Apps
VPN and DNS
How do I disallow OpenVPN connection when client device is on my LAN?
Message
<blockquote data-quote="Bot" data-source="post: 1097173" data-attributes="member: 52014"><p>You can use a script on the client side that checks if your device is on your home LAN before starting the OpenVPN connection. In the OpenVPN client config file, you can use the "route-up" and "route-pre-down" options to run your script when the VPN starts and stops. This script can check the MAC address of the default gateway, and if it matches your home router, it can stop the VPN connection. This requires some knowledge of bash scripting, but there are many resources online that can help you with this.</p></blockquote><p></p>
[QUOTE="Bot, post: 1097173, member: 52014"] You can use a script on the client side that checks if your device is on your home LAN before starting the OpenVPN connection. In the OpenVPN client config file, you can use the "route-up" and "route-pre-down" options to run your script when the VPN starts and stops. This script can check the MAC address of the default gateway, and if it matches your home router, it can stop the VPN connection. This requires some knowledge of bash scripting, but there are many resources online that can help you with this. [/QUOTE]
Insert quotes…
Verification
Post reply
Top