Skip to main content
Arnold
New Member
August 12, 2013
Question

forward WAN to LAN by FQND

  • August 12, 2013
  • 7 replies
  • 9250 views
Hi, I wnted to know those 60C with firmware 5.0 support such a feature as forward specific request to different ip' s but to the same port depending on the FQDN as in Forefront Threat Management Gateway for example if they enter adress1.company.com port forward to host 10.0.1.10:3389 and if they enter adress2.company.com port forward to host 10.0.1.11:3389

    7 replies

    rwpatterson
    New Member
    August 12, 2013
    Welcome to the forums. What you are asking for is called Virtual IP with Port Forwarding. It' s available to all Fortigate platforms and versions at the current time.
    Arnold
    ArnoldAuthor
    New Member
    August 12, 2013
    yes Virtual IP can forward IP/WAN to IP/LAN, but can' t forward it by FQDN/WAN to IP/LAN
    rwpatterson
    New Member
    August 12, 2013
    FQDN to IP is a DNS function. This is not directly done by the FGT unit on the Internet level.
    Dave_Hall
    New Member
    August 12, 2013
    Perhaps DNS translation is what you want, assuming there is no internal DNS server on your network and you want your internal computers remote connecting to those two " servers" by hostname.
    Arnold
    ArnoldAuthor
    New Member
    August 12, 2013
    We have an external and an internal DNS' s servers I think DNS translation is the thing we are looking for, still not sure how those this part work thou: " the reply is translated on the FortiGate unit into 10.73.1.37, which is the private IP address of the same resource, " server1" ."
    Arnold
    ArnoldAuthor
    New Member
    August 12, 2013
    emm, as I understand this is just for the internal users, externally it will still get the public IP...
    Dave_Hall
    New Member
    August 12, 2013
    Pretty much. Still not exactly sure what you are requesting here -- it seems you are requesting something that is akin to setting up two VIPs, but want some sort of DNS translation in the mix. As Bob pointed out this is not how the fgt works. Ideally, and assuming your company has more than one public IP address, you can set up pc1.company.com and pc2.company.com to resolve to two public IPs (one could be the fgt' s WAN IP) that are routed to the fgt' s WAN interface then set up two VIPs from there to point to the real machines. (Maybe someone has a better solution.)
     remote.company.com:5000 witch forwards the request to 10.0.1.5:3389  remote.company.com:5001 witch forwards the request to 10.0.1.6:3389 
    The above is pretty much how we set up remote desktop connections on our fgt boxes.
    Arnold
    ArnoldAuthor
    New Member
    August 14, 2013
    our current situation
    Arnold
    ArnoldAuthor
    New Member
    August 14, 2013
    and this is what we want to achieve
    Dave_Hall
    New Member
    August 14, 2013
    What you want is referred to is a split DNS configuration, which can be set up on 60C models and higher. See page 576 for 4.0 MR3, page 435 for 5.0 Once setup, you can create/setup DNS records for your remotes. But if your company is running a Windows Active Directory (which requires DNS be set up on it) with DHCP service running on it then the PCs in your company should already be registering themselves in AD and DNS. (The DHCP service should be registering the computer hostnames in DNS when their IP leases are renewed.)
    ScottV
    New Member
    August 14, 2013
    I know exactly what you are trying to do from using a lot of ISA/TMG box' s in the past which support host header inspection where you can have multiple internal services published via one external IP and port via certificates or the like, typically though I have only used this for web services bound to certificates. I have looked into this in the past and found the FG unit cant do it as rwpatterson mentioned.
    ScottV
    New Member
    August 14, 2013
    Just as a side note you can use http host headers for HTTP/SSL connections under the Load Balance Virtual Server section to allow you to setup many my.server.com names and then direct them to different internal servers using the same web port via the HOST HEADER method. I thought I might be able to make it work for your scenario using TCP as the transport but it doesn' t support Host headers in that mode, which i guess makes sense as they are native to HTTP/S requests.
    Dave_Hall
    New Member
    August 14, 2013
    Scott deleted his original post regarding Load Balance Virtual Server, but he is on to something...providing all of the remotes (in the DMZ) are part of a server farm (all identical RDP servers) and it doesn' t matter which remote is used in a connect. Server Load Balancing with Port Forwarding can be set up to map an ext IP to a range (pool) of IP addresses (in the DMZ). Unfortunately (if I read the 5.0 CLI ref manual correctly) you are limited to a pool of something like 8 real servers.
    ScottV
    New Member
    August 15, 2013
    Yeah I posted thinking I had it working but it was just doing a round Robin to my RDP test box' s so I then removed the post. With the Pool setup like you say how can you distinguish which sever you want to connect to from the external source.