Help Me!! I need block download for extensions HTTP , FTP AND….

  • Hello everyone

    I doubt if it is possible to perform these questions using pfSense:

    1 -Control of what is being done on my network (using proxyweb, etc..) Report and by hostname, IP, MAC Address;

    2- Control of downloads and uploads (HTTP and FTP) by time, size and file extensions;

    3- Block Torrent (P2P) in the entire network;

    If someone how to resolve these questions could explain to me how to proceed?

  • I think that three packages do all your requirements with flying colors: Squid, Squidguard(or lightsquid) & Snort. Search these and you'll end up finding a lot of info

  • Thanks for the help friend

    and the control extension by ftp?

    I forbid you to download zip and exe extensions are made via FTP the rest is released

  • I think that you should wait answers from other ones. I can't tell how to configure this, but it might need l4 and l7 all together

  • ???

    There is the possibility of blocking the ftp squid? If you have to make these settings?

  • Netgate Administrator

    Squid is an http proxy it will not help you with ftp.
    You would need to use something like ftp-proxy, although I don't think that allows file type control.


    Edit: Looks like I'm wrong.  :-[
    Squid does have some ftp features.

  • Seeking information on the internet I see many people saying it's possible but have not found how.
    I found this site I tried the process but without success
    PfSense does not exist in a way to accomplish this process?

  • You cannot block ftp file extensions. Solutions 1: disable default port to any and just open ports 80/443/53. 2: Use traffic shaper to  slow down the download.

    Hope this help.


  • Netgate Administrator

    Which part of those instructions could you not do?
    Are you usign the squid 3 package?


  • Thanks for the replies

    Yes I have to block extension and it worked!
    I got through the layer 7
    I am now with the following difficulty
    How to Block UltraSurf program
    there is a PAT to include Layer 7 to block?
    To block success got to block port 443 but that brings me more trouble than I want

  • Netgate Administrator

    Just to confirm: you can block ftp download of specific file types with Squid 3?

    Ultrasurf is designed to bypass firewalls so it's very difficult to block. It presumably connects to a proxy server using port 443 since that is almost always unblocked for SSL. The connection is encrypted so it's very hard to use layer 7 filtering. Why are you blocking it?


    Edit: The first hit on Google throws up some useful info though.

  • @jigpe:

    Solutions 1: disable default port to any and just open ports 80/443/53. 2: Use traffic shaper to  slow down the download.

    Hope this help.


    Do not open any port, including 53.

    your network use your local dns and a proxy server.

    set access to 53  only from dns server

    Create a rule to allow traffic for proxy server port 3128 if you are using squid.
    Create a l7 rule to cathc p2p traffic with 1kbps
    if you block p2p, the client will try to use your squid. if you limit p2p the client will try to use it.

    And at squid.conf edit safe ports to allow only ports you know 80,443, etc exlcude the port range 1024-65535

  • Steve thanks for the help

    As you know the squid3 not confirmed! The lock so I could do for l7.

    About UltraSurf had already read that document but so far the only way I found to be successful in blocking was blocking all networks.

    Work but is not an efficient method because tomorrow there may be a new network.

Log in to reply