Easy and step by step guide to install and configure a transparent squid proxy server on a linux machine[/color]
Start with the transparent proxy server configurations:
First of all download the latest squid package .
Rpm Package : Download Rpm Package For Squid
Rpm Package : Download Rpm Package For Squid
or
TarBall : Download Squid Tarball
Installation For Rpm Package :
* Go to the directory where rpm package is and issue the following command :
#rpm -ivh squid-x.x.x
Installation for Tarball Package :
* Go to directory where tarball is and issue the following commands :
#tar -zxvf squid-x.x.x.tar.gz
#cd squid-x.x.x.
# ./configure#make check
#make && make install
Now the squid is installed and we need to modify some parameters to make the proxy transparent.
The main configuration file for squid is located at /etc/squid/squid.conf#vi /etc/squid/squid.conf
make sure the following parameters are not commented.
httpd_accel_host virtual
The main configuration file for squid is located at /etc/squid/squid.conf#vi /etc/squid/squid.conf
make sure the following parameters are not commented.
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
Now you need to configure Iptables i.e. Firewall for Transparent
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 \
-j REDIRECT --to-port 3128
iptables -A INPUT -j ACCEPT -m state \
--state NEW,ESTABLISHED,RELATED -i eth1 -p tcp \ --dport 3128
iptables -A OUTPUT -j ACCEPT -m state \
--state NEW,ESTABLISHED,RELATED -o eth0 -p tcp \ --dport 80
iptables -A INPUT -j ACCEPT -m state \
--state ESTABLISHED,RELATED -i eth0 -p tcp \ --sport 80
iptables -A OUTPUT -j ACCEPT -m state \
--state ESTABLISHED,RELATED -o eth1 -p tcp \ --sport 80
2 comments:
this is nice..can u tell me how we configure transparent proxy in rhel 5.
i need help on it.
After getting more than 10000 visitors/day to my website I thought your tutorialshelp.blogspot.com website also need unstoppable flow of traffic...
Use this BRAND NEW software and get all the traffic for your website you will ever need ...
= = > > http://get-massive-autopilot-traffic.com
In testing phase it generated 867,981 visitors and $540,340.
Then another $86,299.13 in 90 days to be exact. That's $958.88 a
day!!
And all it took was 10 minutes to set up and run.
But how does it work??
You just configure the system, click the mouse button a few
times, activate the software, copy and paste a few links and
you're done!!
Click the link BELOW as you're about to witness a software that
could be a MAJOR turning point to your success.
= = > > http://get-massive-autopilot-traffic.com
Post a Comment