This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SFOS v18.0.379 - Hairpin Nat / Loopback rule can't get to work

Good day guys

i have a Sophos Firewall XG 310, i upgraded form version 17.5 MR9 to  version 18.0.379 due to security vulnerability..
in my time with version v17.5 i have no problem regarding all my config.. i have 2 DNAT rules 1 rule is for incoming WAN interface which doesn't have any masq, the other on above it is from incoming LAN interface which i put a masq..

there rules are for accessing public ip of the the hosted internal server..

bbackground: we do have blocks of public ip that that is natted on different local ip of servers

problem: in version 18.0.379 i've made 2 firewall rules, 1 is for LAN to public ip of out internal server..

SOURCE ZONE: any ,

SOURCE NETWORKS: the local subnet

DESTINATION ZONE: my local zone made

DESTINATION NETWORKS: the public ip of the server

then i made a DNAT which is working in when outside the network connecting to our server public ip,here is another DNAT for the internal trying to connect to out server public ip in the same network

Original source: the local network subnet
Translated source (SNAT) : MASQ

Original destination: the public ip of the server
 Translated destination (DNAT): Local ip of the server
 
 
 
 
 
 
 


This thread was automatically locked due to age.
Parents Reply Children
  • Hi Keyur,

    of course I did this like explained. On multiple boxes. All with the same result: externally reachable, internally not.

    I even created a test setup. It only works with an "allow all" firewall rule on the bottom added after running the assistant.

    Best regards

  • Hi  

    Please allow me some time to check and I will update this thread further.

  • if you only have 1 public ip which is the current ip address used by the WAN that is working using the assistant, but if you have a subnet of public ip and the DNATted public ip is not the ip of of your wan interface then this is our current problem..

     

    i've read everything that concerns hairpin nat and i know how to use it since i have this working on version 17.5 sfos.. i also have other fortigates that can do this, only in version 18.0+ i have encountered this, and i've already triend every single bit of combination of firewall rules, nat rules and routing rules.. but no avail..

    i manage to have 3 hops to get but

    1 hop is the local gateway

    2 hops are the public ip

    then everything stops here by the reply of network

  • Hi  

    I would recommend you to open a support request to investigate the issue further.

  • Hi Keyur,

    just a short update. Did a factory reset on my test-box, deleted all default rules and started from scratch. On my test-box it´s working now. It must have something to do with rules existing before migration from older version. All my production boxes have those issues.
    But at least I know it works.

    Best regards,
    Christopher

  • i've also tried deleting all the rules on my box, but not factory reset, but if this is only the solution well that sucks for me having 400 server and tons of vpn tunnel.. i'll just downgrade to the latest version 17.5 for now

  • Hello All, 

    Thank you for reporting this issue to our attention. We have identified an issue as a BUG ID NC-59809.

    We have targeted the fix in V18Mr3. 

    Workaround: Open the loopback rule and click on  Save to make it working again.