Skip to main content
Ali84
New Member
Feb 11, 2023 9:49 PM UTC
Question

Application Control and Web Filtering not working together.

I want to keep Office apps open and also let the user browse to some specific URLs, but the web filtering works properly only if I apply alone, not with Application Control. 

Any advice on how I can do that? 

I have the 6.4.8 version

17 replies

srajeswaran
Staff
Staff
Feb 12, 2023 6:43 AM UTC

Can you share more details? When you apply WF+Application Control, is the URLs that is supposed to be blocked is getting allowed?

Is it proxy based or flow-based inspection and is there SSL inspection active?

 

Also, below discussion may give me you some more pointers.

https://community.fortinet.com/t5/Support-Forum/manage-application-control-and-web-filter/td-p/12241

 

Translate
Ali84
Ali84Author
New Member
Feb 13, 2023 1:48 PM UTC

I set up the office to be open in application control, and it's working fine; I also need to filter the internet and leave a few URLs open. 

I tested it several times and realized it was not working correctly. I disabled the AC and tried to use only WF, but it's not working. 

I set it like the picture, but it's not working. It leaves everything open like there is no filtering.  

Ali84_0-1676295855357.png

 

Translate
gfleming
Staff
Staff
Feb 13, 2023 5:13 PM UTC

Sounds like you need two policies:

 

1. One policy to allow access to Office.

2. Second policy to restrict Web traffic.

 

If the policy allowing Office is above the other policy then the only traffic that is going to match the Office policy is traffic destined to Office apps.

 

When a user tries to access a blocked web page it will completely bypass the office policy and go to the web filter policy.

 

Now, we can't really use application control to block access in this way because policies are matched on the network traffic and then we filter the application traffic. So in the scenario above if you are allowing Office using application control your policy must also be allowing HTTP traffic which means your also going to have to simultaneously block using web filters.

 

I would suggest leveraging the ISDB whenever you need to allow access to specific resources and services. In this case use ISDB (which is a network-level classification) to allow access to Office in a single policy.

 

Then use the web filter policy below it to filter out how your users web browsing should work.

 

https://docs.fortinet.com/document/fortigate/7.2.4/administration-guide/179236/using-internet-service-in-a-policy

 

https://www.fortiguard.com/encyclopedia/isdb/327782

 

Hope that helps.

Translate
Ali84
Ali84Author
New Member
Feb 27, 2023 3:40 PM UTC

Hi,  

Thanks for your reply, and sorry about the delay. 

 

It seems I'm not doing Web Filtering right. 

I tried to start with only a web filter for the first step, but it is not working. 

I'm trying to block all the URLs and then leave a couple of them accessible. But it's not working. Would you please guide me with that first? 

Please consider my Firewall config for the Web Filter. 

Ali84_0-1677512244236.png

Ali84_1-1677512401018.png

Regards

Translate
srajeswaran
Staff
Staff
Feb 13, 2023 1:55 PM UTC

Can you share your firewall policy configuration as well?

Translate
Ali84
Ali84Author
New Member
Feb 27, 2023 3:42 PM UTC

Hi, 

Sorry about the delay. It seems Web Filter is not working correctly. 

Please consider my firewall-config 

Ali84_2-1677512502485.png

Ali84_4-1677512643451.png

 

Regards

Translate
Ali84
Ali84Author
New Member
Apr 13, 2023 5:58 PM UTC

Thanks for all your support. 

I fixed this, but I want to share some experiences that sometimes confused me. 

 

1 - I have to have a separate policy for YouTube, the *.* didn't block it, and I made Application Control for that. 

2 - Sometimes policies are affected right away but sometimes takes 10 to 15 min. 

 

Thanks from everyone.

 

 

 

 

 

Translate
gfleming
Staff
Staff
Apr 13, 2023 8:29 PM UTC

If you're creating a new policy, existing sessions may still be allowed. The info here might help you:

 

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Dirty-session/ta-p/197748

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024