I'm currently having a very restrictive internet access, basicly, anything that doesn't use port 22, 443 or 80 are routed through a different network who has a 1 seconde ping and 60% packet loss. Since I need to use a lot of software that use different port, I've setup an OpenVPN server wich use tcp on port 443.
Everything works fine except for one thing : The server who host the OpenVPN server also host my web server, and, has a client, I need to access it via it's domain name on port 8080 (so http://domain.com:8080 for example). For some reason, when I do that, instead of being routed through my VPN like every other request, I get routed via the very slow network.
So, is there a way to specify to my OpenVPN client that domain.com is on 10.8.0.1 (virtual ip of the OpenVPN/WebServer) instead of requesting the "true" ip to a DNS ?