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 184.108.40.206
Local Web Server IP is 192.168.0.1
Public DNS server has the following entries:
- vpnserver.mydomain.com with IP 220.127.116.11
- exchange.mydomain.com with IP 18.104.22.168
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.