squid anonymizer

Discussion in 'Installation/Configuration' started by globalvpn, Feb 9, 2008.

  1. globalvpn

    globalvpn New Member

    Hello;
    some sites describe how to anonymize the squid the web browsing by inserting the following cods to “http.c” file that located on “src” directory.(when we install squid manually)
    but I have installed putty via “yum” command ,
    and the files and directories are not similar the manually
    there isn’t “Src” directory and also “http.c”
    so please help me to find the related file that can I insert that anonymizer cods to it .



    My VPS info :
    Centos 5 default
    The installed squid via “yum” is squid-2.6.STABLE6-5.el5_1
    Its installed on etc/squid/
    the file on this directory is :
    cachemgr.conf
    mib.txt
    msntauth.conf
    squid.conf.default
    errors
    mime.conf
    msntauth.conf.default
    icons
    mime.conf.default
    squid.conf


    the codes :
    httpHeaderDelById(hdr_out, HDR_USER_AGENT);
    httpHeaderDelById(hdr_out, HDR_REFERER);
    httpHeaderDelById(hdr_out, HDR_X_REQUEST_URI);
    httpHeaderDelById(hdr_out, HDR_X_FORWARDED_FOR);
    httpHeaderDelById(hdr_out, HDR_X_CACHE_LOOKUP);
    httpHeaderDelById(hdr_out, HDR_X_CACHE);
    httpHeaderDelById(hdr_out, HDR_VIA);

    thanks in advance
    Tom
     
  2. falko

    falko Super Moderator Howtoforge Staff

  3. globalvpn

    globalvpn New Member

    Hello,
    Many thanks for your kind attention,
    I have install it manually by following commands,
    it works fine, I can able to connect to it by SSH tunnel .
    but I have a problem :
    when I check IP with http://ip2location.com and also http://ipchicken.com all of things is ok,
    but when I want to create a Gmail account it simply detect my original country,
    so I think the cods that I used in http.c file (httpHeaderDelById) don’t completely del all Ids.
    Can help me to solve this problem to become completely anonymous?

    This is my installation details :
    cache.org/Versions/v2/2.5/squid-2.5.STABLE14.tar.gz
    tar -zxvf squid-2.5.STABLE14.tar.gz

    cd squid-2.5.STABLE14
    I edited hhtp.c and inserted these cods:
    httpHeaderDelById(hdr_out, HDR_USER_AGENT);
    httpHeaderDelById(hdr_out, HDR_REFERER);
    httpHeaderDelById(hdr_out, HDR_X_REQUEST_URI);
    httpHeaderDelById(hdr_out, HDR_X_FORWARDED_FOR);
    httpHeaderDelById(hdr_out, HDR_X_CACHE_LOOKUP);
    httpHeaderDelById(hdr_out, HDR_X_CACHE);
    httpHeaderDelById(hdr_out, HDR_VIA);
    ./configure --prefix=/usr/local/squid --disable-ident-lookups
    make all
    make install
    useradd -d /usr/local/squid/cache/ -r -s /dev/null squid >/dev/null 2>&1
    mkdir /usr/local/squid/cache
    chown -R squid:squid /usr/local/squid/cache
    chown -R squid:squid /usr/local/squid
    chmod -R 755 /usr/local/squid/cache
    sudo -u squid /usr/local/squid/sbin/squid –z
    /usr/local/squid/sbin/squid

    Best regards
    Tom
     
  4. sjau

    sjau Local Meanie Moderator

    what do you mean by anonymizing? Just to prevent squid from giving out the forwarded-from IP address?
     
  5. globalvpn

    globalvpn New Member

    Hello dear Sjau;
    I want to be completely anonymous.
    Please kindly note, when go to GMAIL create account page, it automatically select my country.
    But when I use a VPN it show another country (country of VPN ip)
    I want to change the squid to completely hide me.

    I'm a amateur and don’t familiar with advanced programming
     

Share This Page