Linux Transparant Proxy

9 July 2007

Fast Way to Linux Transparant Proxy 

By. Efriel Elyasa, efriel_e@yahoo.co.id

Distro Debian (squid, iptables)

1. edit file /etc/squid.conf

    a. add / edit (for squid < / = ver 2.5 )

        httpd_accel_host virtual #(squid as httpd accelerator)

        httpd_accel_port 80 # (port used as proxy)

        httpd_accel_with_proxy on # (squid as httpd acellrator and as proxy)

        httpd_accel_uses_host_header on # Status Header on hostname from URL

    b. add/ edit (for squid < / = ver 2.6 )

        http_port 3128 transparent

2. add IPTABLE configuration for forwarding

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

3. add :

   echo 1 > /proc/sys/net/ipv4/conf/all/forwarding

1 Comment »

The URI to TrackBack this entry is: http://gagoo.blogsome.com/2007/07/09/linux-transparant-proxy/trackback/

  1. Kok setelah aku jalanin :
    iptables -t nat -A PREROUTING -i eth0 -p tcp –dport 80 -j REDIRECT –to-port 3128
    muncul :
    Bad argument `80′
    Kenapa yah?

    Comment by Hermann — 14 August 2007 @ 3:27 am

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.

Get free blog up and running in minutes with Blogsome | Theme designs available here