Skip to main content
starking9b
New Member
July 13, 2018
Question

Block websites using Fortinet-Webfilter-Category-Block attribute freeradius

  • July 13, 2018
  • 8 replies
  • 10044 views

hello 

I integrated freeradius server with fortigate , but when I reading about fortinet radius server I found this attribute 

Fortinet-Webfilter-Category-Block  which mean I can block websites from freeradius using that attribute in reply section .

but when I  applied this attribute it give me error  and deny user from access internet 

the definition of this attribute tell us that we must using octets value 

Fortinet-Webfilter-Category-Block 17 octets

but if I want to block facebook for example what should I using as value of that attribute ? please help me 

 

8 replies

Toshi_Esumi
SuperUser
SuperUser
July 13, 2018

I didn't know it's supported. Can you share where you read it? Only attributes I know were in below:

http://kb.fortinet.com/kb....do?externalID=FD30830

But if supported, likely it's expecting one of numbers (or multiple) from below:

http://kb.fortinet.com/kb/viewContent.do?externalId=FD30715

Facebook is not a category. It's a part of Social Networking.

https://fortiguard.com/webfilter?q=facebook.com&version=8

So if the category attribute worked, I would define it and include in one of local categories, which you can see the ID in CLI, then specify it with the attribute. Again, I didn't know it was supported so I never tested it.

 

starking9b
New Member
July 13, 2018

thank you for reply 

in this web page there are new attributes which shared from fortinet 

http://kb.fortinet.com/kb/viewContent.do?externalId=FD36919&sliceId=1

 

 

Toshi_Esumi
SuperUser
SuperUser
July 13, 2018

Thanks!

starking9b
New Member
July 14, 2018

I don't tried it yet because now I at holiday but I will try it when I can , thank you very much for your help 

but I have another problem and I don't know if you have any solution for it, my boss asked me to control user's bandwidth but I don't find any attribute belong to fortinet to limit bandwidth, do you know how can I do that ?

Toshi_Esumi
SuperUser
SuperUser
July 15, 2018

Probably you're lookin for "Per-IP shaper". Go to online help below and choose your version, like 5.4, 5.6, 6.0. Then search "traffic shaping methods". It would tell you how to set up a shaper and a shaping-policy. You might need to set separate IP ranges for different levels of allowed bandwidths. I don't think you can directly specify a shaper from RADIUS. You need to use either IP or group.

http://help.fortinet.com/fos50hlp/56/Content/FortiOS/fortiOS-HTML5-v2/Home.htm

 

 

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!