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

"Any" vs "Internet" in "For Traffic From" in DNAT

 Hi All:

 

Our Sophos is a UTM-330 running 9.605-1 in a HA active/passive configuration. 

We have a /28 block of IP's from our two ISP's, one primary on fiber, secondary on adsl.

On one of the static IP's has a DNAT set up to access an internal IIS server using a non-standard port. Have one URL for the primary and another for the secondary ISP connection. There is a second DNAT for the secondary URL. They both have a "using service" with the appropriate ports in it. Then both have a "change to" the internal IP of the IIS server. There is no "and change the service to", as the IIS is set to work directly with the non-standard ports. 

In the DNAT, should the "For Traffic From" in the DNAT be "any" or "internet". It was set for "any", but was doing some testing, and set it to "internet" to test.

Worked fine, then started doing some strange things. 

When, from the outside world, tried connecting to the URL for both the primary & secondary ISP connections, would first ask about running java, then come up with the sophos logon screen, rather than the IIS server's application logon. Changed the DNAT back to "any" and it immediately resolved. Then to test, changed it back to "Internet", and it still worked. 

There is an accompanying firewall rule (don't have the NAT doing automatic firewall rules), set for "Internet" using the appropriate ports, to go to the internal address of the IIS server. 

That, I guess brings up a question with NAT and the meaning of "Internet" vs "any". And why did it work fine, then start acting strange?

First, within the context of NAT-ing, should the "coming from" be "Any" or "Internet"? 

And any idea as to why it would work for a while, then start acting strange - popping up with the Sophos logon screen rather than the IIS server logon?

Could any of this have to do with the HA?

 

Thanks!

John S. 



This thread was automatically locked due to age.
  • Hi John,

    for the beginning i want to clarify the difference between the build-in objects any and internet:

    Any resolves to Any IP Address (0.0.0.0/0) (any address regardless if it is inside or outside your network)

    Internet is nearly the same: Any IP (0.0.0.0/0) bound to Interfaces with default gateways. (not only public IP Adresses, Any IP reacheable over the WAN Ports of the utm)

    If you are testing from LAN with "Internet" as source your DNAT won't hit and will show whatever service runs on the UTM on that port.

    Which of the above is the one to chose depends on your needs.

     

    Is the 'non-standard' Port in the DNAT the same port on which the webadmin or userportal runs?

    - is the seen logon screen the one of the webadmin or userportal?

     

    HA could be the issue with active-active, not with active-passive.

     

    yours Lukas

    lna@cema

    SCA (utm+xg), SCSE, SCT

    Sophos Platinum Partner

  • Hallo Lukas,

    I apologize if I've misunderstood your post.

    I always recommend using the "Internet IPv4" object in DNATs.  A server receiving a DNAT'd request from a PC in its subnet will reply directly to the PC instead of sending it to its default gateway, so the requestor will ignore the response.  The only time I recommend "Any" is when there are multiple subnets connected via the UTM and then a FullNAT rule above the DNAT is needed for the subnet of the DNAT's target.

    There's more about this, John, in #2 in Rulz (last updated 2019-04-17) and Accessing Internal or DMZ Webserver from Internal Network.

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA