I have a Django application running on a droplet that collects data from several IoT devices on customer sites. These IoT devices are currently openly accessed but will soon be put behind a VPN. How do I connect my droplet to an external VPN to still be able to access the data?
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 @m4rkus
As Bobby mentioned you’ll need a VPN client in order to connect to the network. The
openvpn client
should do the job for you, but this may vary from the VPN configuration on the remote server as well.https://openvpn.net/vpn-server-resources/connecting-to-access-server-with-linux/
Regards
Hi there,
I believe that this might depend on the VPN setup on the customer side, but what you might be able to do is to use a VPN client to connect the server to the external VPN service.
Depending on the VPN server, you could use the OpenVPN client to do that.
If you are using Ubuntu, you can install OpenVPN using this command:
sudo apt install openvpn
. Once you’ve installed the package, can create a config file using your favourite text editor:sudo nano /etc/openvpn/client.conf
, in there add the configuration file (opvn) from your customer’s VPN service. Save the config file and then start the OpenVPN client:sudo openvpn --config /etc/openvpn/client.conf
.Hope that this helps!
Best,
Bobby