Skip to main content
peanut
New Member
Sep 10, 2015 9:19 AM UTC
Solved

Source Address after NAT wrong

Hi

 

I migrated over to my HA Fortigate 100D setup from my Cisco Router.

 

What I have noticed is that with external requests going to my internal NAT server, is it is showing that the external connection is made from the VLAN interface IP address instead of the original external Source IP.

 

this is a bit frustrating because some Linux machines behind the fortigates are blacklisting the interface address due to failed hack attempts because it all seems to come from one address -- hope this makes sense.

 

so an external requests looks like its coming from the interface address 192.168.30.254 and not the original source public address of 41.xxx.xxx.xxx etc.

 

hope this is just me making a noob mistake on the new toys...

 

    gschmitt
    gschmittAnswer
    New Member
    Sep 10, 2015 9:31 AM UTC

    Go to Policy&Objects > IPv4 > Policies and look for your wan to VLAN/internal policy

    Double click it

    Set NAT to OFF

     

    NAT or Network Address Translation literally takes the TCP/UDP package, changes the Source Address with a set (or the interfaces) IP address.

    This is useful when going into external networks, i.e. when I access a website I want my NAT device to exchange my 192.168.1.1 IP with my external 88.77.66.55 IP or the webserver will ignore my request since 192.168.1.1 is a private IP and the package (martian package) literally can't find it's way back to me and will be discarded.

    But on external > Internal policies it's best to leave it off, so the original IP will be transmitted.

    2 replies

    gschmitt
    gschmittAnswer
    New Member
    Sep 10, 2015 9:31 AM UTC

    Go to Policy&Objects > IPv4 > Policies and look for your wan to VLAN/internal policy

    Double click it

    Set NAT to OFF

     

    NAT or Network Address Translation literally takes the TCP/UDP package, changes the Source Address with a set (or the interfaces) IP address.

    This is useful when going into external networks, i.e. when I access a website I want my NAT device to exchange my 192.168.1.1 IP with my external 88.77.66.55 IP or the webserver will ignore my request since 192.168.1.1 is a private IP and the package (martian package) literally can't find it's way back to me and will be discarded.

    But on external > Internal policies it's best to leave it off, so the original IP will be transmitted.

    peanut
    peanutAuthor
    New Member
    Sep 10, 2015 10:01 AM UTC

    thank you!!

     

    knew it was something easy.

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT