Skip to main content
Arnold
New Member
Aug 12, 2013 8:50 AM UTC
Question

forward WAN to LAN by FQND

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

    16 replies

    rwpatterson
    New Member
    Aug 12, 2013 11:52 AM UTC
    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.
    Translate
    Arnold
    ArnoldAuthor
    New Member
    Aug 12, 2013 12:42 PM UTC
    yes Virtual IP can forward IP/WAN to IP/LAN, but can' t forward it by FQDN/WAN to IP/LAN
    Translate
    rwpatterson
    New Member
    Aug 12, 2013 12:47 PM UTC
    FQDN to IP is a DNS function. This is not directly done by the FGT unit on the Internet level.
    Translate
    Dave_Hall
    New Member
    Aug 12, 2013 1:56 PM UTC
    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.
    Translate
    Arnold
    ArnoldAuthor
    New Member
    Aug 12, 2013 2:38 PM UTC
    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" ."
    Translate
    Arnold
    ArnoldAuthor
    New Member
    Aug 12, 2013 2:41 PM UTC
    emm, as I understand this is just for the internal users, externally it will still get the public IP...
    Translate
    Dave_Hall
    New Member
    Aug 12, 2013 3:33 PM UTC
    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.
    Translate
    Arnold
    ArnoldAuthor
    New Member
    Aug 14, 2013 9:51 AM UTC
    our current situation
    Translate
    Arnold
    ArnoldAuthor
    New Member
    Aug 14, 2013 9:52 AM UTC
    and this is what we want to achieve
    Translate
    Dave_Hall
    New Member
    Aug 14, 2013 1:28 PM UTC
    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.)
    Translate
    ScottV
    New Member
    Aug 14, 2013 2:16 PM UTC
    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.
    Translate
    ScottV
    New Member
    Aug 14, 2013 4:25 PM UTC
    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.
    Translate
    Dave_Hall
    New Member
    Aug 14, 2013 4:36 PM UTC
    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.
    Translate
    ScottV
    New Member
    Aug 15, 2013 12:49 AM UTC
    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.
    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024