The pfSense Store

Author Topic: How to block file extension on pfsense  (Read 5480 times)

0 Members and 1 Guest are viewing this topic.

Offline ozanus

  • Full Member
  • ***
  • Posts: 113
  • Karma: +0/-0
    • View Profile
How to block file extension on pfsense
« on: June 13, 2009, 09:32:06 am »
Hello Forum members,
How to block file extension on pfsense, example .exe , .bat etc.

Thanks for relation.

Offline clarknova

  • Hero Member
  • *****
  • Posts: 920
  • Karma: +0/-0
    • View Profile
Re: How to block file extension on pfsense
« Reply #1 on: June 13, 2009, 12:41:20 pm »
Perhaps the squidGuard package could do something like that? HAVP might be another one that you could tweak the filters on.

db
db

Offline ozanus

  • Full Member
  • ***
  • Posts: 113
  • Karma: +0/-0
    • View Profile
Re: How to block file extension on pfsense
« Reply #2 on: June 13, 2009, 12:59:18 pm »
I install squid and squidguard but not installed HAVP packet. I can not run havp  ::)

Do you know block mime type (.exe, .bat etc.) on pfsense or manuel canfigure squid or squidguard ?


Offline geeknik

  • Jr. Member
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Re: How to block file extension on pfsense
« Reply #3 on: June 14, 2009, 03:06:12 pm »
I install squid and squidguard but not installed HAVP packet. I can not run havp  ::)

Do you know block mime type (.exe, .bat etc.) on pfsense or manuel canfigure squid or squidguard ?

You can create a file called blocks.files.acl that contains the following (and more):
Code: [Select]
\.bat$
\.cmd$
\.pif$
\.scr$
\.lnk$
\.hta$
\.mdb$
\.reg$
\.shs$
\.sys$
\.vbs$
\.wsf$

And place this line in your squid.conf:
Code: [Select]
acl blockfiles urlpath_regex "/your/squid/path/blocks.files.acl"

Hopefully this works for you. :)