Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to block file extension on pfsense

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 3 Posters 9.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      ozanus
      last edited by

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

      Thanks for relation.

      1 Reply Last reply Reply Quote 0
      • C
        clarknova
        last edited by

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

        db

        db

        1 Reply Last reply Reply Quote 0
        • O
          ozanus
          last edited by

          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 ?

          1 Reply Last reply Reply Quote 0
          • G
            geeknik
            last edited by

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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.