Currently we have one public IP and we are using a Mikrotik box as VPN server using SSTP protocol.
Now our users needs to reach one internal https server and I cannot redirect the 443 port to that server because SSTP will stop to work.
Is there a way to include some entries in the public DNS Server and to do a conditional forwarding based on the host name like:
Public IP is 22.214.171.124
Local Web Server IP is 192.168.0.1
Public DNS server has the following entries:
- vpnserver.mydomain.com with IP 126.96.36.199
- exchange.mydomain.com with IP 188.8.131.52
So when external traffic reach the Mikrotik box it checks the destination host:
- If destination host is exchange.mydomain.com forwards the packets to local Web Server at IP 192.168.0.1
- If destination host is vpnserver.mydomain.com sends the packets to internal Mikrotik SSTP Server.