Squid - Proxy server 설치
설치 OS: CentOS
설치버전: squid-3.1.10-20110130 (설치시점 가장 최신버전으로 생각되어 설치)
-
Squid 사이트에서 최신버전 다운로드
(http://www.squid-cache.org/)wget http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.10-20110130.tar.gz -
압축해제
tar -xzvf squid-3.1.10-20110130.tar.gz -
설치
./configure –prefix=/usr/local/squid –localstatedir=/var/squid make make install -
초기화
/usr/local/squid/sbin/squid -z- 다음과 같은 오류 발생
WARNING: Cannot write log file: /var/squid/logs/cache.log /var/squid/logs/cache.log: Permission denied messages will be sent to ‘stderr’. 2011/01/31 11:05:16| Creating Swap Directories -
오류해결 - logs 폴더 권한변경
chown nobody /var/squid/logs/ -
실행 및 확인
/usr/local/squid/sbin/squid -NCd1 -
설정파일 수정
- 설정파일 위치:
/usr/local/squid/etc/squid.conf - 접속포트 변경
# Squid normally listens to port 3128 http_port 3128- 외부 네트워크에서 Proxy Server 사용 가능하게 하기
(참조 : http://wiki.squid-cache.org/SquidFaq/SquidAcl#How_do_I_allow_my_clients_to_use_the_cache.3F)
acl myclients src [아이피 & 아이피/24] http_access allow myclients- 그외 설정내용은
/usr/local/squid/etc/squid.conf.documented파일 참고
- 설정파일 위치:
참고 문서
이 저작물은 크리에이티브 커먼즈 저작자표시-비영리-동일조건변경허락 4.0 국제 라이선스 에 따라 이용할 수 있습니다.
Comments
Related Posts
CentOS 6.5에서 GitLab rpm 설치 하기
을 통하여 설치하게 되면 자동적으로 서버와 데이터베이스를 사용하게 된다. 기존에 가 설치되어 있을 경우 도 설치됨과 동시에 80포트를 사용하기 때문에 반드시 기존 의 사용 포트를…
AWS에서 NFS 서버 세팅
서버로 사용할 인스턴스 생성 Security Group 설정에서 Type을 All traffic 선택 Source를 172.31.0.0/16 입력 172.31.0.0/16 은 서버…
php, css, js 파일 압축해서 보내기 (htaccess 이용)
웹사이트의 트래픽을 줄이기 위해 전송할 문서를 으로 압축해서 보내는 방법이다. , , 파일만 압축해서 보내는 것을 예제로 첨부한다. 이미지 파일은 이미 이미지 자체가 압축되어 있…