Proxy Server Configuration

  1. edit squid.conf after install squid >> apt-get install squid >> nano /etc/squid/squid.conf
    visible hostname proxy.domain.com
    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 192.168.1.0/24
    acl class src 192.168.2.0/24
    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

Comments

Post a Comment

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