Squid - Proxy server 설치

munilive
munilive

설치 OS: CentOS
설치버전: squid-3.1.10-20110130 (설치시점 가장 최신버전으로 생각되어 설치)

  1. Squid 사이트에서 최신버전 다운로드
    (http://www.squid-cache.org/)

    wget http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.10-20110130.tar.gz
  2. 압축해제

    tar -xzvf squid-3.1.10-20110130.tar.gz
  3. 설치

    ./configure –prefix=/usr/local/squid –localstatedir=/var/squid
    make
    make install
  4. 초기화

    /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
  5. 오류해결 - logs 폴더 권한변경

    chown nobody /var/squid/logs/
  6. 실행 및 확인

    /usr/local/squid/sbin/squid -NCd1
  7. 설정파일 수정

    • 설정파일 위치: /usr/local/squid/etc/squid.conf
    • 접속포트 변경
    # Squid normally listens to port 3128
    http_port 3128
    acl myclients src [아이피 & 아이피/24]
    http_access allow myclients
    • 그외 설정내용은 /usr/local/squid/etc/squid.conf.documented 파일 참고

참고 문서

munilive

munilive

Backend Application Developer

Share

Comments

Related Posts

CentOS 6.5에서 GitLab rpm 설치 하기

CentOS 6.5에서 GitLab rpm 설치 하기

CentOS 6.5에서 GitLab을 RPM으로 설치하는 방법에 관한 글

munilive munilive ·
php, css, js 파일 압축해서 보내기 (htaccess 이용)

php, css, js 파일 압축해서 보내기 (htaccess 이용)

.htaccess 설정과 PHP ob_gzhandler를 이용하여 gzip 압축 전달에 대한 글이다.

munilive munilive ·
AWS에서 NFS 서버 세팅

AWS에서 NFS 서버 세팅

AWS EC2에서 NFS(Network File System)서버를 구축하는 방법에 대한 글이다.

munilive munilive ·