Página 2 de 2 PrimeiroPrimeiro 12
+ Responder ao Tópico

  1. Me passa as suas configuraçoes do squid.conf , pra podermos ajudar mais rapido e facilmente !!!

    Valeu galera ate mais !!!

  2.    Publicidade

  3. #7
    esta conforme acima citado:

    http_port 3128
    cahe_mem 8mb
    http_access allow all

    outra... peguei um tutor na net q deu +/- certo....
    so q agora ta dando um erro q eu acho q é do iptables , ele nao da acesso pras maq navegar ., segue tutor pra quem tiver com o mesmo problema:

    $ wget http://www.squid-cache.org/Versions/...TABLE1.tar.bz2

    Make sure this is the current stable by visiting www.squid-cache.org

    Now we need to extract the tarball we just downloaded.

    $ tar -xvzf squid-2.5.STABLE1.tar.bz2

    Next step will be to configure and compile Squid

    $ ./configure --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc/squid--enable-arp-acl --enable-err-language=English --enable-snmp --enable-linux-netfilter --enable-pf-transparent --disable-ident-lookups

    $ make

    $ sudo make install

    We now want to add a user and group for Squid to run as.

    groupadd squid
    useradd squid -u 23 -g squid -d /usr/local/squid

    Next download my squid.conf for easy editing. Open the file
    and edit the top half as seen fit.

    $ wget http://gregf.ath.cx/dotfiles/squid.conf

    Now lets make a cache dir for squid and fix permissions on the directory

    $mkdir /var/spool/squid
    $chown squid.squid /var/spool/squid

    Make a directory for squid to log too.

    $mkdir /var/log/squid

    Now we want to make a directory for Ad Zapper. This will be the program that
    will filter banners and popups we do not want.

    ///////////////// nao fiz pois nao tinha o arquifvo pra download
    $ mkdir /usr/local/squid/zapper

    Then change to the new directory and download the script

    $ wget http://adzapper.sourceforge.net/scripts/squid_redirect

    Now set the file's attributes so squid can execute it.

    $ chmod a+rx /usr/local/squid/zapper/squid_redirect

    Then change the owner ship of the file to squid

    $ chown squid.squid /usr/local/squid/zapper/squid_redirect

    Two things to check are:

    1. The path to PERL in squid_redirect is correct for my system. If not point it to the correct
    location. You can find the correct location by typing "which perl" with out the quotes of course.

    2. Check to see if you have the following line in /etc/squid/squid.conf

    redirect_program /usr/local/squid/zapper/squid_redirect

    /////////////// nao fiz pois nao tinha o arquifvo pra download

    Next we want to test squid to make sure its working correctly. The first step
    to doing this will be to create the cache directorys that squid will use.

    $ /usr/bin/squid -z

    criar os 3 arquivos

    no diretorio

    e dar permisao chmod 777 para os 3

    Now, we can start Squid

    $ /usr/bin/squid -N -d 1 -D

    Now using Squid's client we will test connectivity. Just enter the following.

    $ /usr/bin/client -h -p 3128 http://www.freshmeat.net/

    If everything is installed correctly you will see the HTML scroll up the

    If your using IPChains you can use the following to create a transparent proxy.

    $ /sbin/ipchains -A input -p TCP -s -d 0/0 www -j REDIRECT 3128

    For IPTables use the following

    $ /sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

    For PF use this, assuming is the IP Squid is running on.

    rdr on $int_if proto tcp from any to any port 80 -> port 3128

    Confgrads! Now we should have squid startup at boottime. Please add the
    following to your startup scripts. On BSD it should be /etc/rc.local and on
    Linux /etc/rc.d/rc.local

    if [ -f /usr/bin/squid ]; then
    echo -n ' Squid'; /usr/bin/squid -N -d 1 -D &

  4.    Publicidade

Usuários que leram este tópico: 0

Nenhum usuário nesta lista
Visite: BR-Linux ·  VivaOLinux ·  Dicas-L