*이 게시판의 게시물은 삭제할 수 없습니다.
  삭제 요청은 서비스-문의하기 이용 바랍니다.
  비공개/상용 자료 요청은 금지합니다.

 

서버 프록시 서버 운영할때

2016.06.24 10:22

코리안 조회 286

특정 아이피만 사용하게 만들고 싶은데요 어떻게 해야할까요???

 

centos7 사용중입니다.

 

vi /etc/squid/squid.conf

 

#
# Recommended minimum configuration:
#

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7       # RFC 4193 local private network range
acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines

acl SSL_ports port 443
acl Safe_ports port 80  # http
acl Safe_ports port 21  # ftp
acl Safe_ports port 443  # https
acl Safe_ports port 70  # gopher
acl Safe_ports port 210  # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280  # http-mgmt
acl Safe_ports port 488  # gss-http
acl Safe_ports port 591  # filemaker
acl Safe_ports port 777  # multiling http
acl CONNECT method CONNECT

# 추가내용
acl centos7 src 180.168.52.2/255.255.255.0
#
# Recommended minimum Access Permission configuration:
#
# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager

# 추가내용

http_access centos7

#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost

# And finally deny all other access to this proxy
http_access deny all
#http_access allow all

# Squid normally listens to port 3128
http_port 3128

# Uncomment and adjust the following to add a disk cache directory.
cache_dir ufs /var/spool/squid 1000 16 256

 

#추가

visible_hostname centos7

 

이대로 해도 안되네요..


 


번호 제목 글쓴이 조회 날짜
30 우분투 12.04LTS 영문버전 한글로바꾸기. 2 백트랙 14382 2014.01.14
29 putty 백스페이스키 설정방법 4 ds5nqq 8214 2014.06.24
28 Ubuntu 서버 Virtual Hostings www 인식관련 문의 드립니다 5 file 로얄테넌바움 6275 2014.07.19
27 우분투를 네임서버로 사용하고 싶습니다. 4 가자™ 3842 2014.07.10
26 squirrelmail(다람쥐메일) html 메일 회신, 전달시 글깨짐현상 2 file 리눅스초짜 3722 2014.06.29
25 우분투 업그레이드 방법 2 하이에나 3569 2014.04.22
24 MediaTomb 같은 원도용 프로그램? 모노스 3557 2014.06.28
23 트렌스미션 데몬 같은 윈도우프로그램? 2 모노스 3219 2014.06.26
22 오피스에서 사용할 파일공유 서버를 만들고 싶은데요... 10 소피 3162 2013.12.11
21 Samba 설치 및 환경 설정 도움 요청 2 무한대 2632 2013.12.02
20 KVM가상화 벤치마크.. 1 부들부들 2611 2014.08.28
19 CentOS7 버전 본딩, 클러스터 관련 질문 2 부들부들 2358 2014.08.25
18 centos에서 메일서버 를 아웃룩에 연결문제 file ic동글 1709 2014.12.29
17 리눅스 그래픽 카드 교체 후 kernal panic 2 file 쩌비ㅋ 1313 2015.04.30
16 시스템 루트경로 읽기모드 1 레이키스 1289 2015.03.18
15 해외DNS 사용 시 도메인 정보 조회가 안 됩니다 조씨 1269 2015.03.12
14 virtualbox 질문합니다 1 김탁구 1129 2015.01.20
13 DHCP 서버 끊김 현상 꼬꼬 936 2017.09.12
12 삭제 안됨 진이s 729 2015.07.28
11 리눅스 웹서버를 돌리는데 2 file 코리안 582 2017.02.18

 빠른 글쓰기




   Copyright 2013-2023 LinuxForum