By nroetert
For my job I give demo’s over http on equipment that is behind a Cisco VPN. Most locations were I’m at will have WiFi, but a lot don’t allow VPN.
I would like to be able to connect to an URL over port 80, let’s say demo.mydomain.com that is then routed over VPN to the actual address. Can I do this from a Linux droplet and how do I set this up. Probably two separate tutorials, the reverse proxy and VPN parts. If the VPN could dynamically be created when accessing the URL that would be great, but not mandatory.
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!
This is not a configuration I have ever set up but I have looked into a similar setup in the past. Nginx would likely be an easier to configure option to act as a proxy between your VPN network and the public. This thread shows a similar configuration using openvpn instead of cisco but the nginx portion should be the same.
So…
1.) Install nginx on your dorplet 2.) Connect your droplet to the VPN 3.) Configure the stream method or a proxy pass configuration to relay content from the IP address inside the VPN and share it via port 80.
I would strongly recommend working with your IT department, letting them know what you are setting up. Since the droplet will be connected to the VPN this may be considered a security risk. If the droplet were to be compromised it would allow an attacker a vector into your private network behind the VPN.
Ryan,
Thanks for your response, which other thread are you referring to?
Regards, Niels.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.