Squid

http://www.squid-cache.org/

wget http://www.squid-cache.org/Versions/v2/2.5/squid-2.5.STABLE11.tar.gz
tar xzvf squid-2.5.STABLE11.tar.gz
cd squid-2.5.STABLE11
./configure --enable-err-language=Japanese
make 
make install
useradd squid  -s /bin/false
chmod -R squid:squid /usr/local/squid/var
http_port 8080
cache_effective_user squid
http_access allow all
/usr/local/squid/sbin/squid parse

/usr/local/squid/sbin/squid -z
/usr/local/squid/sbin/squid -D
nmap localhost
8080/tcp open  http-proxy

#!/bin/sh
#
# This starts and stops squid proxy chache
#
# chkconfig: 345 90 42
# description: squid is Proxy server.
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
# Check that smb.conf exists.
[ -f /usr/local/squid/etc/squid.conf ] || exit 0 # See how we were called.
case "$1" in
start)
echo "Squid Starting";
/usr/local/squid/sbin/squid -D -f /usr/local/squid/etc/squid.conf;
;;
stop)
if [ -f /usr/local/squid/var/logs/squid.pid ]; then
/usr/local/squid/sbin/squid -k kill;
#kill `cat /usr/local/squid/var/logs/squid.pid`;
echo "Squid Stopped";
else
echo "process squid not running!";
exit 1;
fi
;;
restart)
	$0 stop
$0 start
;; 
*)
	echo "Usage: squid {start|stop|restart}"
exit 1
esac
/etc/init.d/squid start
Cannot open HTTP Port
lsof -i:8080

http://squid.robata.org/squid2.0-conf.html http://homepage1.nifty.com/Que/plamo/squid/
http://www2.ocn.ne.jp/~virii/sol8/install/squid/
http://squid.robata.org/faq_top.html
http://squid.robata.org/ReverseProxy_top.html



トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS