Thursday, April 7, 2011

Create Squid Proxy Command

# sudo find -(name "program*")
# sudo apt-get --purge remove squid
# sudo apt-get install squid
# sudo squid -z
# sudo nano /etc/squid/squid.conf
# sudo apt-get update
# sudo squid -d l -D
# sudo chmod -R 644 /etc/var/spool/squid
# sudo chmod -R 755 /etc/var/spool/squid
# sudo chmod -R 444 /etc/var/spool/squid/access.
# log

# sudo rm -rf /var/spool/squid
# sudo mkdir /var/spool/squid
# sudo chmod -R 777 /etc/var/spool/squid
# sudo ifconfig
# cd /etc/squid
# ls /
# vi squid.conf
# chown -R proxy.proxy /cache/
# /etc/init.d/squid restart
# netstat tapn
# netstat -tapnigrep 3120
# echo 1 > proc/sys/net/ipv4/ip forward
# iptables -A PREROUTING -t nat -p tcp -dport 80 -j REDIRECT -to-port 3128
# tail /var/log/squid/access.log
# squid start
# squid -sYD

No comments:

Post a Comment