OpenVPN issue

Hi,

I don't quite know how to explain my issue, but ill try my best.

So I set up the openvpn server, all connects via Tunnelblick on OSX, and when I navigate to a page to display my current ip address, it shows the one of my linode. great.

Now what im trying to acomplish, is to only allow the access of apache on my linode through OpenVPN. I have tried adding the local ip addresses of 10.0.8 etc to the apache conf, and even putting the linodes IP address in there to just allow the linode to see the page, but none of that works when connected via openVPN

When i check the error log from apache, it shows the client as my actual ip address, not the linode, so it appears that any local requests made by the openvpn client to the linodes ip address isnt pushed through the tunnel.

Can anyone help?

I hope this explains the issue im having.

Thanks,

Ben

1 Reply

You can't route traffic to the IP address of the OpenVPN server through the OpenVPN tunnel because then it'd route the OpenVPN traffic through the OpenVPN and the universe would explode.

Easiest fix would be to access your web server on another IP address: either the other side of the OpenVPN tunnel itself, or perhaps the Linode intra-datacenter IP address. (Or use IPv6 and put OpenVPN on its own IP address……. but I'm assuming that's not going to work at Starbucks.)

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct