How to block file extension on pfsense



  • Hello Forum members,
    How to block file extension on pfsense, example .exe , .bat etc.

    Thanks for relation.



  • Perhaps the squidGuard package could do something like that? HAVP might be another one that you could tweak the filters on.

    db



  • 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 ?



  • @ozanus:

    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):

    
    \.bat$
    \.cmd$
    \.pif$
    \.scr$
    \.lnk$
    \.hta$
    \.mdb$
    \.reg$
    \.shs$
    \.sys$
    \.vbs$
    \.wsf$
    
    

    And place this line in your squid.conf:

    
    acl blockfiles urlpath_regex "/your/squid/path/blocks.files.acl"
    
    

    Hopefully this works for you. :)


Log in to reply