Can't access Apache behind OpenVPN
Posted: Tue May 15, 2012 3:26 pm
Hello,
I've just set up an OpenVPN server so that I could access my Apache server (and later other services) with a secure authentication system. So my installation is the following:
- OpenVPN server (tun, 10.1.1.1:1194) with Apache listening on 10.1.1.1:60000.
- OpenVPN client (10.1.1.5) trying to access 10.1.1.1:60000.
- No iptable yet.
Everything should work smoothly..but doesn't. I can ping the server from the client, and I can ping the client from the server.
However, I can't reach Apache. Well, I can sometimes get a page, but it's extremely slow and random. Using telnet 10.1.1.1 60000 I can send a HEAD request which works, but a GET won't get through. I will see it in the Apache logs (GET /, 200), but the telnet will just be stuck displaying nothing, like it's stuck waiting for an answer. Sometimes however the GET will succeed (mostly with static pages). But obviously, I can't access 10.1.1.1:60000 in my browser (too slow, and will fail anyway 9 times out of 10). When Apache was reachable from the regular Internet, everything was working perfectly fine so it's not (only) an Apache issue.
Nothing appears in the logs (Apache or OpenVPN) and I'm quite confused about this. I know this is not strictly an OpenVPN problem but others might have encountered it.
Do you have any clue about what's going on and how to fix it?
Thanks!
I've just set up an OpenVPN server so that I could access my Apache server (and later other services) with a secure authentication system. So my installation is the following:
- OpenVPN server (tun, 10.1.1.1:1194) with Apache listening on 10.1.1.1:60000.
- OpenVPN client (10.1.1.5) trying to access 10.1.1.1:60000.
- No iptable yet.
Everything should work smoothly..but doesn't. I can ping the server from the client, and I can ping the client from the server.
However, I can't reach Apache. Well, I can sometimes get a page, but it's extremely slow and random. Using telnet 10.1.1.1 60000 I can send a HEAD request which works, but a GET won't get through. I will see it in the Apache logs (GET /, 200), but the telnet will just be stuck displaying nothing, like it's stuck waiting for an answer. Sometimes however the GET will succeed (mostly with static pages). But obviously, I can't access 10.1.1.1:60000 in my browser (too slow, and will fail anyway 9 times out of 10). When Apache was reachable from the regular Internet, everything was working perfectly fine so it's not (only) an Apache issue.
Nothing appears in the logs (Apache or OpenVPN) and I'm quite confused about this. I know this is not strictly an OpenVPN problem but others might have encountered it.
Do you have any clue about what's going on and how to fix it?
Thanks!