Proxy Server Configuration

  1. edit squid.conf after install squid >> apt-get install squid >> nano /etc/squid/squid.conf
    visible hostname
    http_access allow all [firstly it's deny all]
    http_port 3128 [add] transparent
  2. make transparent >> iptables -t nat -A PREROUTING -p tcp --dport80 -j REDIRECT --to -ports 3128
  3. restart squid >> /etc/init.d/squid restart
  4. if you wanna make untransparent use this >> -t nat -A PREROUTING -p tcp --dport80 -j REDIRECT -to
  5. edit squid.conf to add some blocked sites >> nano /etc/squid/squid.conf
    acl blocked src
    acl class src
    acl blocked url regex-i "etc/blocksite.txt"
    http_access allow blocked
    http_access deny class blocked
    http_access allow class
    http_access deny all

related post into


Post a Comment

Thank you for visiting my blog, kindly leave your comment below :)

In a moment, I can't reply your comments due to error in my account when replying. But I make sure that I read every single comment you leave here :)