본문 바로가기

탐구생활/컴퓨터

윈도우 squid 프록시 설정

윈도우용 squid는 http://squid.acmeconsulting.it/ 여기서 다운받는다.

현재 스테이블 버전은 2.7


설치 디렉토리 내의 etc/squid.conf를 열어

http_access deny all

을 

http_access allow all 로 바꾸면 공용 프록시 서버가 된다.

며칠 지켜보니 러시아에서 트래픽이....


+

인증 추가.


http_access allow authenticated_user로 수정한다.

이것만 넣고 squid -c 해보면 authenticated_user가 없다고 한다.

변수를 선언하는 식이다.

htttp_access....... 윗부분에 

다음과 같이 넣는다.


auth_param basic program C:/squid/libexec/ncsa_auth.exe C:/squid/squid_passwd

auth_param basic children 5

auth_param basic realm Squid proxy-caching web server

auth_param basic credentialsttl 2 hours

auth_param basic casesensitive off

acl authenticated_user proxy_auth REQUIRED


basic program 인증프로그램 인증용파일 이런식이다.

패스워드 파일은 htpasswd로 생성한다.


이렇게 하면 최소한의 인증을 갖는 프록시로 설정할 수 있다.

이정도면 귀찮은 트래픽은 어느정도 막아주겠다.