Skip to main content
generaltab
New Member
February 20, 2015
Question

Need an internal -> internal policy for LAN access to internal servers??

  • February 20, 2015
  • 21 replies
  • 29673 views

Hello

 

I just replaced my old FortiGate 100 with a new FortiGate 90D and there are still a few things that behave differently than before.

 

When I’m connected to my FortiAP with a phone I’m unable to retrieve mail from my internal mail server, or any other internal servers by name, but I can access external sites. My phone is on “wireless” interface 10.10.10.10/255.255.255.0 and my servers are on “internal” interface 192.168.1.254/255.255.255.0

 

Perhaps related to this, or not, the desktops on my LAN are able to reach external websites, but are unable to reach sites on internal servers by FQDN (eg: [link]http://apps.domain.com/bigtime).[/link] They can reach sites on internal servers by UNC (//whitney/bigtime)

 

I have a feeling I need some additional policies. Any ideas?

 

Thanks

    21 replies

    generaltab
    New Member
    March 19, 2015

    Thanks, Ede & Dave.

    None of the servers are on the DMZ. All are on one internal interface. The only difference I found between the old and new FortiGate was the "Enable DNS forwarding from" option in the old one. My LAN’s clients can find the server by “diablo” and “diablo.domain.local”, but not “diablo.domain.com” (even though it resolves to the correct external IP). I’d like them to be able to reach that machine by any of those names or IP (internal & external) as they could with the old FortiGate. If VIP is required, I’ll try adding policies according to this KB. It still seems like more than should be necessary, as if I'm missing something fundamental.

     

    Thanks again.

    ede_pfau
    SuperUser
    SuperUser
    March 20, 2015

    generaltab, if you look at the old config you'll notice you were using VIPs:

    config firewall vip
        edit "diablo"
            set extip 64.145.110.91
            set extintf "external"
            set mappedip 192.168.1.11
        next
        edit "langley"
            set extip 64.145.110.92
            set extintf "external"
            set mappedip 192.168.1.7
        next
        edit "whitney"
            set extip 64.145.110.93
            set extintf "external"
            set mappedip 192.168.1.9
        next
    end
    What's the deal with VIPs on your side? Just configure them, put them into policies as destination addresses and go for it. It's that simple.

    I already posted that you need to employ VIPs to access internal servers from the WAN. That's a fact and won't change disregarding how many more posts we will put in here.

    If you had followed the advice given here previously and had compared the old and new configs you  would have saved yourself (and us) a lot of time.

    generaltab
    New Member
    March 20, 2015

    Answer: Yes, internal -> internal policies are now required for internal access to internal servers by external IP. Thanks again.

     

    Thanks, Ede. I've had VIPs set up on the new FortiGate from the beginning. They're configured identically to the old FortiGate. What's changed is the device's behavior, not the configuration. Internal servers can be accessed from the WAN just fine. However, internal servers can't be accessed by their external IPs by internal users, as demonstrated by the following attempts to reach the internal mail server by internal and external IP:

     

    H:\>ping -n 1 mail

    Pinging mail.aliquot.local [192.168.1.7] with 32 bytes of data:

    Reply from 192.168.1.7: bytes=32 time<1ms TTL=128

    Ping statistics for 192.168.1.7: Packets: Sent = 1, Received = 1, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms

     

    H:\>ping -n 1 mail.aliquot.local

    Pinging mail.aliquot.local [192.168.1.7] with 32 bytes of data:

    Reply from 192.168.1.7: bytes=32 time<1ms TTL=128

    Ping statistics for 192.168.1.7: Packets: Sent = 1, Received = 1, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms

     

    H:\>ping -n 1 mail.aliquot.com

    Pinging mail.aliquot.com [64.145.110.92] with 32 bytes of data:

    Request timed out.

    Ping statistics for 64.145.110.92: Packets: Sent = 1, Received = 0, Lost = 1 (100% loss),

     

    That's the behavior that changed between the old and new FortiGates.

     

    Thanks again

    Dave_Hall
    New Member
    March 21, 2015

    Just curious to know what your methodology for determining what has changed between the old and new configs?  (I use WinMerge myself.)

     

    If you follow KB# FD33976, it indicates setting up the ext interface to "any" on the VIPs, then setting up two fw policies to the same VIP from different interfaces. The code may look similar to this...

     

    config firewall vip
        edit "diablo"
            set extip 64.145.110.91
            set extintf "any"
            set mappedip 192.168.1.11
        next
        edit "langley"
            set extip 64.145.110.92
            set extintf "any"
            set mappedip 192.168.1.7
        next
        edit "whitney"
            set extip 64.145.110.93
            set extintf "any"
            set mappedip 192.168.1.9
        next
    end
    config firewall policy
        edit 0
            set srcintf "external"
            set dstintf "internal"
                set srcaddr "all"
                set dstaddr "diablo"
            set action accept
            set schedule "always"
                set service "FTP" "HTTP" "HTTPS" "Minecraft"
        next
           edit 0
            set srcintf "internal"
            set dstintf "internal"
                set srcaddr "all"
                set dstaddr "diablo"
            set action accept
            set schedule "always"
                set service "FTP" "HTTP" "HTTPS" "Minecraft"
        next
        edit 0
            set srcintf "external"
            set dstintf "internal"
                set srcaddr "all"
                set dstaddr "langley"
            set action accept
            set schedule "always"
            set service "HTTPS" "SMTP" "IMAP" "HTTP"
        next
           edit 0
            set srcintf "internal"
            set dstintf "internal"
                set srcaddr "all"
                set dstaddr "langley"
            set action accept
            set schedule "always"
                set service "HTTPS" "SMTP" "IMAP" "HTTP"
        next
        edit 0
            set srcintf "external"
            set dstintf "internal"
                set srcaddr "all"
                set dstaddr "whitney"
            set action accept
            set schedule "always"
                set service "HTTPS"
        next
           edit 0
            set srcintf "internal"
            set dstintf "internal"
                set srcaddr "all"
                set dstaddr "whitney"
            set action accept
            set schedule "always"
                set service "HTTPS"
        next
    end

     

    Personally, I'd would want my users to use the internal IP address for "public" servers if I can -- without the need to talk to those servers via the Fortigate: in which case I'd probably set up local cname records for diablo.domain.com, pointing to diablo.domain.local, etc. This is assuming I was accessing these servers by FQDN or hostname.  Alternately, dnstranslation maybe an option if I had no control over the DNS servers.

    config firewall dnstranslation
    edit 0
    set dst 64.145.110.91
    set netmask 255.255.255.255
    set src 192.168.1.11
    edit 0
    set dst 64.145.110.92
    set netmask 255.255.255.255
    set src 192.168.1.7
    edit 0
    set dst 64.145.110.93
    set netmask 255.255.255.255
    set src 192.168.1.9
    end

    ede_pfau
    SuperUser
    SuperUser
    March 21, 2015

    Thanks for clarifying, now I get it. Without the new config I was misled that VIPs weren't in use. Sorry.

     

    The old FortiOS version was v3.00 MR something...so that's been quite a while.

    How then did you set up the 'internal->internal' policy - I assume you are not using the VIP as destination address? If you would you'd have to define it on the 'any' interface or else it wouldn't be allowed.

    ede_pfau
    SuperUser
    SuperUser
    March 21, 2015

    (man do I wish I could delete my own posts!!)

    generaltab
    New Member
    March 23, 2015

    Thanks Ede, Dave

     

    I'm using the VIP as the destination address as this article advises. I wanted to avoid using external IPs from the LAN, but even with a local record for mail that resolves to the server's internal IP, things on the LAN seem to insist on using the external IP. So until that's resolved I needed at least a temporary solution.

     

    Now, similarly, my wireless users can't sync mail (unable to reach our server's external IPs) while connected to our FortiAP, but I'll post that to the wireless forum.

     

    Thanks again

    generaltab
    New Member
    March 23, 2015

    The wireless problem was resolved by switching to bridge from tunnel mode so the wifi users are on the internal subnet. I thought it would work the other way with my wireless -> internal and wireless -> external policies.

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!