Report this

What is the reason for this report?

How to setup VPN only for downloads on Droplet

Posted on July 12, 2021

I have deployed a node app on droplet I want to use VPN for downloads and bypass VPN when uploading to spaces cause I think VPN will slow down the uploads.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

What is the VPN service that you are using?

With OpenVPN for example you could use the allow-pull-fqdn option to exclude specific FQDNs from the VPN routing. That way when you access a specific domain via the VPN it would go through the net rather than VPN:

https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage

Regards, Bobby

Heya,

As per Bobby’s reply the setup will be rather custom depending from each VPN client of your choice.

On a further notice be mindful of security when implementing split tunneling. Ensure that you are not inadvertently exposing sensitive traffic when bypassing the VPN. It’s essential to understand the implications of routing specific traffic through the VPN and leaving other traffic unprotected.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.