Force specific trafic to use squid



  • Hi, first of all, sorry for my bad english

    I will try to explain you my problem as I can.

    I'm working for a school atm, our computer are filtred using squid ( X.X.X.X:800 )
    but when students come with there laptop they usually don't have proxy set so squid become useles …

    I have try different way like NAT 80 -> 800 or cross the transparent mode but nothing works, so if you have an idea, please tell me :)

    Sincerly Jonathan :)

    EDIT : I use pfsense 2.1



  • Configure your firewall to block traffic and configure automatic proxy detect on your network.

    http://blog.ninjatek.co.za/2010/11/proxy-autodetection-using-pac-file-and.html

    squid with transparent proxy can catch http(not https) traffic too.



  • first of all thank you for your answer, but I don't think we can apply this atm.

    do you think this will work ? It should redirect all 80 port to 800



  • @chocoboss:

    first of all thank you for your answer, but I don't think we can apply this atm.

    do you think this will work ? It should redirect all 80 port to 800

    Why don`t you enable transparent squid proxy?

    when you enable it, squid create a rule on pf to forward http traffic to squid port.


Log in to reply