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 설치 하기

을 통하여 설치하게 되면 자동적으로 서버와 데이터베이스를 사용하게 된다. 기존에 가 설치되어 있을 경우 도 설치됨과 동시에 80포트를 사용하기 때문에 반드시 기존 의 사용 포트를…

munilive munilive ·
AWS에서 NFS 서버 세팅

AWS에서 NFS 서버 세팅

서버로 사용할 인스턴스 생성 Security Group 설정에서 Type을 All traffic 선택 Source를 172.31.0.0/16 입력 172.31.0.0/16 은 서버…

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

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

웹사이트의 트래픽을 줄이기 위해 전송할 문서를 으로 압축해서 보내는 방법이다. , , 파일만 압축해서 보내는 것을 예제로 첨부한다. 이미지 파일은 이미 이미지 자체가 압축되어 있…

munilive munilive ·