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

 

서버 프록시 서버 운영할때

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

 

이대로 해도 안되네요..


 


번호 제목 글쓴이 조회 날짜
24 mv명령어 질문입니다 5 brucex 5858 2014.07.28
23 512MB 램에서 구동가능한 PE 13 풍운 6118 2014.06.11
22 노트북에 우분투 13.10설치, 한영키 인식이 안되요ㅠㅠ 2 file 하뉴리 6136 2013.12.28
21 Ubuntu 서버 Virtual Hostings www 인식관련 문의 드립니다 5 file 로얄테넌바움 6275 2014.07.19
20 Linuxmint 16 한영 전환 IBus 4 기산 6291 2014.05.26
19 쿠분투 한글입력문제... 11 의미없는시간 6430 2013.10.12
18 카조님 Windows 8.1 Ultimate PE v5.8 쓰고 있는데요 3 file 떨어지는벽돌 6803 2014.07.12
17 원하는 HDD만끄기/잠재우기/절전모드 비슷한 프로그램 1 giwldlst 6932 2014.07.24
16 Windows 8.1 DREAM PE 를 VHD로 만들어 부팅하는 방법 문의합니다. 3 풍차돌이 6948 2014.10.01
15 윈도우 PE 실컴에서 사용하기 및 포함되있는 유틸프로그램들 사용질문이요 6 Monsterdev 6966 2014.06.30
14 root 권한 암호, 인증실패라뇨? 왜 그렇죠? 4 샤방이 7139 2014.11.04
13 xp wim파일을 받았는데요... 4  네로 7303 2014.05.04
12 우투분14.04사용중 윈도우8.1설치 후 우분투 사라짐 ㅠㅠ 7 concentric 7332 2014.08.06
11 UltimatePE.wim 파일 수정 20 file 등걸 7826 2014.06.03
10 Windows 8.1 Enterprise PE SP4 설치 43 file savvy 7887 2014.08.10
9 8.1 Ultimate PE v5.2 13 노익장 7950 2014.04.02
8 ubuntu13.10 64bit에서 wine 설치방법 좀 알려주세요~ 15 sulperman 8135 2013.11.07
7 putty 백스페이스키 설정방법 4 ds5nqq 8214 2014.06.24
6 [CentOS 7] USB 무선 랜카드 설치 4 file hely 8311 2014.10.28
5 카리스마조님의 Windows 8.1 Enterprise PE 설치시 병합방법좀 알려주세요... 6 평화70 9361 2014.06.26

 빠른 글쓰기




   Copyright 2013-2023 LinuxForum