Hi I am accessing the internet from home through an openvpn server running on a digital ocean droplet. I also set up a web server on the same droplet.
Now if I try and ssh to the IP address or access the IP address through the VPN the various commands/accesses just hang.
If I turn off the VPN I can access everything just fine.
I appreciate this is probably something to do with routing on the droplet site. I’d be grateful if someone could give me a pointer as to what I need to do to enable access through the vpn and from another machine without the vpn. Thanks Andrew
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.
Hi,
I think your issue may be related to firewall’s NAT settings on VPN server side. I changed my VPN configuration to simulate yours. Now it looks like in the diagram below.
I can ssh Droplet 1 and get a website served by its from my home office network. VPN channel is up, of course, and I use droplet’s public IP address.
I have installed and configured nftables on Droplet 1. My NAT settings for the traffic outgoing from VPN network to the Internet looks like that:
I hope it will get you closer to solving your issue. I probably could help you more if I knew more details of your configuration.