Skip to main content
mhdganji
Explorer III
July 11, 2022
Solved

DNS Filtering not available in proxy policy rules

  • July 11, 2022
  • 20 replies
  • 8317 views

Hi,

In a VDOM used to proxy clients request (acts as a proxy server on 8080), although DNS filter is enabled in feature visibility, but is not displayed (everything is there, WAF, IPS, Web, ...) but DNS filter is not present

 

In the other VDOMs, such as a VDOM linked to the one mentioned above which has direct Internet access, DNS filter is present but as I said in Proxy polices in our Proxy VDOM serving clients request it is not present.

 

Thanks in advance for your help

 

Regards

Best answer by pminarik

It is not that FortiOS explicit proxy doesn't support it, it is that proxy clients do not pass their DNS requests through the proxy. They don't resolve the FQDNs of websites requested through the proxy at all.

 

When a proxy client wants to connect to www.example.com through the proxy, it does not do any DNS lookup, it directly sends a request to the proxy:
GET http://www.example.com
or
CONNECT https://www.example.com

 

DNS lookup is then handled by the proxy itself. (so the proxy itself can connect to the desired server to facilitate the connection)

 

Feel free to install Wireshark on some test client of yours to verify this client behaviour yourself. Focus on DNS traffic (UDP/53) and proxy traffic (by default TCP/8080 in FortiOS, but maybe you changed it).

 

As such, try using webfilter profile in the proxy policy, making sure you're blocking the Malicious Websites category. I'm not sure if this is 100% the case, but I have checked a handful of FQDNs from the botnet list, and they were all categorized as "Malicious Websites" by the FortiGuard webfilter rating.

20 replies

Richie_C
Staff
Staff
July 11, 2022

Hi

 

DNS filter is not supported with Explicit Proxy. We can see the supported features in the following documentation.

 

https://docs.fortinet.com/document/fortigate/7.0.6/administration-guide/149927/proxy-policy-security-profiles

 

Thanks

Richard 

mhdganji
mhdganjiAuthor
Explorer III
July 11, 2022

Hi,

 

 I cannot figure out why this is not supported. The device is working as a proxy and does the query DNS task do it can do the filtering. Am I wrong here?

Richie_C
Staff
Staff
July 11, 2022

With explicit proxy, the FortiGate would be doing the DNS lookup and not the client. So a policy to scan DNS requests traversing the firewall wouldnt make sense.

AEK
SuperUser
SuperUser
July 12, 2022

Hi Mhdganji

I think DNS filtering is old world technique and is not suitable for today's web anymore. Nowadays Web Filtering is the right way to do.

AEK
mhdganji
mhdganjiAuthor
Explorer III
July 14, 2022

Hi,

 

With DNS filtering, the blocking botnet and c&c ip's is my main goal. Anyway to do that via web filtering?

Richie_C
Staff
Staff
July 14, 2022

Hi

 

You could check out IPS for the that. See the following article:

 

https://community.fortinet.com/t5/FortiGate/Technical-Tip-configure-Botnet-C-C-IP-blocking/ta-p/197914?externalID=FD49610

 

Thanks

 

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
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