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

 

서버 프록시 서버 운영할때

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

 

이대로 해도 안되네요..


 


번호 제목 글쓴이 조회 날짜
544 어떤걸 다운 받아야하나요..? 2 소담 2944 2013.10.25
543 xubuntu 13.10 원도우 원격제어 방법 ? 10 ppakyong 3810 2013.10.25
542 백신에 대해 궁금합니다.. 9 거지왕초 3526 2013.10.25
541 루분투 한/영 전환키 문제 18 린군 3644 2013.10.25
540 우분투에서는 이런 문제를 어떻게 풀수 있나요? 5 마니또우 2239 2013.10.26
539 MegaRAID Storage Manager 설치방법 3 거지왕초 3889 2013.10.26
538 모니터 이상. 8 야밤 2573 2013.10.27
537 CANON (4780W) 프린터 잡기. 1 기회 3725 2013.10.28
536 우분투 마우스 우측매뉴 질문 거지왕초 2141 2013.10.29
535 코모도 안티바이러스 for 리눅스 10 리눅스이뻐 4122 2013.10.30
534 우분투 지포스 드라이버설치시.... 8 file 몽땅연필 5159 2013.10.31
533 리눅스 최적화를 하려면 무엇을 해야 할런지요? 9 마니또우 3108 2013.10.31
532 아직 겁이 나네요. 설치할려니 ㅠㅠ;;; 8 tofinder 2658 2013.11.02
531 리눅스도 pe로 부팅해서 wim이나 만고처럼 설치할수 있나요? 8 willbe 4674 2013.11.02
530 usb없이 설치 가능할까요? 6 라칸 4409 2013.11.02
529 리룩스도 내에서 은행권 사용 가능한지 ? 6 대마불사 3216 2013.11.03
528 옛날 노트북에 무슨 운영체제를 깔아야 하나요(Celeron 800MHz/512MB) 5 ineg4 3340 2013.11.04
527 리눅스에서 한컴오피스 2014 잘 되나요? 그리고 3 닉네임無 3066 2013.11.04
526 한컴 2014 업데이트 4 Bossnoone 4671 2013.11.04
525 리눅스 암호 묻지않게 가능하나요? 1 sulmo 2516 2013.11.05

 빠른 글쓰기




   Copyright 2013-2023 LinuxForum