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

 

서버 프록시 서버 운영할때

2016.06.24 10:22

코리안 조회 289

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

 

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

 

이대로 해도 안되네요..


 


번호 제목 글쓴이 조회 날짜
64 윈도우에서 리눅스 파일 보는 프로그램 6 코리안 459 2016.01.18
63 리눅스 cpu 온도에 따른 클럭 조절 방법 로미니 444 2016.08.18
62 듀얼 OS 부팅 오류(Nvidia 드라이버...) 1 gaap 439 2020.09.21
61 우분투 manpage 한글화 후 한글 깨짐 발생 1 팀후드 437 2016.02.13
60 RHEL6.5 시스템 불안정 질문 1 닉네임하 433 2016.03.09
59 qemu 오류 2 Lemon 431 2016.10.28
58 바이두 끌어놓기가 안되요. 2 또깡 430 2015.12.15
57 elementary OS Freya 0.3.2 에서 skype 사용중 한글입력문제 문의 1 모란앵두 428 2016.01.06
56 리눅스 iso 다운로드 관련 질문 psw9255439 412 2016.12.25
55 Ubuntu 21.04 질문 성철인 412 2021.05.28
54 Raspbian 1 file Qu1k51lv3r 411 2016.03.06
53 조린os 12 소프트웨어 저장소 변경하고 싶습니다. 1 루팅걸 406 2017.05.12
52 윈도우 8.0 영문판 정품 시리얼키로 윈도우 8.0 한글판 설치에 사용할 수 있나요? 2 Kobe24 398 2016.05.06
51 제가 원하는데로 세팅한 리눅스를 만들수 있는 방법은 없나요? 4 OS 397 2016.04.29
50 windows 0.0 setup bios mode 질문드립니다. 1 속남 392 2016.01.10
49 제가 윈도우 7에서 리눅스를 깔았는데 김쥰내 385 2016.02.03
48 리눅스 tar 압축 종료 시간.. Nye 382 2015.11.10
47 Raid 구성 , Cent OS 설치 1 차니차니 382 2017.07.11
46 tar 이용해서 압축 풀때.. 2 Nye 380 2015.11.13
45 윈도우 설치시 질문입니다. 2 고감맨 379 2016.02.07

 빠른 글쓰기




   Copyright 2013-2023 LinuxForum