Important note about SSL VPN compatibility for 20.0 MR1 with EoL SFOS versions and UTM9 OS. Learn more in the release notes.

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

Sophos Firewall - WAF response 403 Forbidden for Internal requests

Hello Sophos Community,

We are migrating from a UTM 9 unit to a new Sophos Firewall unit and I've setup a WAF rule for two internal web servers.  When setting up the firewall rule, I chose the Action dropdown option of "Protect with web server protection".  I have added both "real" web servers and copied the configuration from what we have setup in the UTM 9 unit. (ie. listening port, Redirect HTTP, Pass host header, etc., etc.)... everything was copied to be the same as we have setup in the UTM 9 system.

I'll use the domain www.example.com as the sample domain name here; from my LAN (internal network) computer, this domain name resolves to the same public IP address as defined in DNS on the WAN side (ie. "nslookup" from both external WAN clients and my internal LAN client return the same public IP address).  I am able to access the virtual host WAF domain name from a WAN (external) client without any problems; the web page loads and it would appear that the WAF is working correctly.  However, when I try accessing the domain from a LAN client I get a "403 Forbidden" response in the browser.  Looking at the Sophos Firewall Logs page for "Web server protection", I'm seeing the firewall is returning valid 200 responses for requests from an external Source IP/name request, but returning 403 responses for requests from our internal LAN subnets.  

Below is a screenshot of the "Web server protection" logs; the red circled responses are the 403 Forbidden responses I'm getting from my internal LAN computer.  Why would the WAF be returning 403 for internal client requests?  I can't figure out what I've done wrong with the configuration in the new Sophos Firewall unit.

Thanks in advance for any help!



This thread was automatically locked due to age.
Parents
  • Please post a coy of your WAF rule. Do the users access the external interface using a firewall to allow them out and so do you have a hairpin NAT setup to allow users to access your external interface?

    Ian

    XG115W - v20.0.2 MR-2 - Home

    XG on VM 8 - v20.0.2 MR-2

    If a post solves your question please use the 'Verify Answer' button.

  • Thank you for the reply!

    Below is a screenshot of the Edit page for the WAF Firewall Rule.

  • Thank you for the screenshot of the WAF rule. I still think the issue is with the internal addressing not being translated to an acceptable external address or not in the allowed access address range.

    Ian

    XG115W - v20.0.2 MR-2 - Home

    XG on VM 8 - v20.0.2 MR-2

    If a post solves your question please use the 'Verify Answer' button.

  • Are you meaning the Allowed client networks area under "Access permission" on the WAF rule page? 

    I have entered "Any IPv4" value here; so I'm expecting that this is allowing access from any IPv4 address, including all that may come from WAN requests and all subnet IPs from our internal LAN networks.

Reply
  • Are you meaning the Allowed client networks area under "Access permission" on the WAF rule page? 

    I have entered "Any IPv4" value here; so I'm expecting that this is allowing access from any IPv4 address, including all that may come from WAN requests and all subnet IPs from our internal LAN networks.

Children
  • Hi,

    if you run an nslookup and tracert to the web server url, what are the results?

    I saw that entry, but I am not sure how XG treats none routable addresses?

    Ian

    XG115W - v20.0.2 MR-2 - Home

    XG on VM 8 - v20.0.2 MR-2

    If a post solves your question please use the 'Verify Answer' button.