Report this

What is the reason for this report?

How to setup DO VPN server floating IP port routing to VPN client

Posted on February 12, 2020

Not sure what this is called or how to do it…

  • I have an DO Droplet running Ubuntu 18.
  • Droplet has its public IP and [static] DO floating IP <fIP>.
  • Droplet has ufw installed but disabled.
  • Droplet has Algo (WireGuard) server installed and VPN running fine.
  • I have three VPN clients all on my home LAN: “Pi”, “Mobile” and “Laptop”.
  • I edited <fIP> /etc/hosts to define VPN IPs for the three clients.
  • I can ssh to sshd running in the cloud <fIP>.
  • From WWW I can ssh into my LAN sshd running on VPN client “Pi” (10.19.45.5) via DO <fIP> using JuiceSSH app on VPN client “Mobile” which is running WireGuard client and successfully connected to <fIP>.

Now, heres the question: From WWW and via my VPN I want to be able to connect to httpd on VPN client 10.19.45.5:80. How do i do this?



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, Just to understand your question better, are you trying to access a webpage on 10.19.45.5? if so, have you tried accessing http://10.19.45.5 on your browser after you are connected to the VPN? Do you have a firewall on 10.19.45.5? If so have you opened up access to port 80? Are you able to successfully ping 10.19.45.5 after connecting to the VPN? If the ping is successful, and port 80 on the firewall is open on the web machine, my guess is you should be able to access webpages… cheers!

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.