hamal
Hello, I want to hide VNC server behind VPN server which is running on the same machine, but I don't know how and I didn't saw any similar question anywhere which is confusing me.
I have VPN Server running on server with IP - let's say 1.2.3.4, and client on IP 40.2.3.4
When the clients connects to VPN server, it gets 10.0.8.2 address.
Server's tun0 interface have IP 10.8.0.1
I have VNC server blocked from everywhere, but accesible from VPN's 10.8.0.0 network.
Of course I can connect to VNC using 10.8.0.1 IP,
but when I am trying to connect using domain server.example.eu (1.2.3.4) it fails, because it is blocked in iptables.
Is there way how to achive succesfull connecting using domain name?
It would be great to achieve this without need of DNS overriding, but it's getting to my mind that it can't simply done, when it is connecting to server's eth0 interface (1.2.3.4).
I tried to override DNS server by server running on server, but it fails often on OS X clients to properly flush DNS records which is unusable by other less technical clients in company.