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

 

서버 프록시 서버 운영할때

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

 

이대로 해도 안되네요..


 


번호 제목 글쓴이 조회 날짜
584 ext4 최대 디렉토리 수와 파일갯수가 궁금합니다.. 1 리눅스초보입니다 976 2023.11.01
583 오래만에 들어와서보니???? 1 울보 1525 2023.05.02
582 프로그램배워서 밥벌이하려는데 가능합니가?? 1 file 빅데이터-비트코인전문가 795 2023.02.20
581 초보입니다. 2 빅데이터-비트코인전문가 483 2023.02.20
580 카죠님 운영체체 업데이트 부탁드립니다 홍익인간 874 2021.10.20
579 리눅스 시스템 콜 설치 관련 오류입니다.. file 리눅스초보 305 2021.09.16
578 Ubuntu 21.04 질문 성철인 386 2021.05.28
577 듀얼 OS 부팅 오류(Nvidia 드라이버...) 1 gaap 416 2020.09.21
576 xshell xftp 가상머신 질문 auman 230 2020.03.20
575 vmware 오류 file 깡통로봇 330 2019.07.28
574 외장 HDD 인식불가 10 두둥실 1062 2019.02.04
573 can't choose hangul 1 Babel 594 2018.12.28
572 Wine dll 파일 관련 문제 1 dev2501 668 2018.11.26
571 만자로 리눅스 ibus 사용문제.. 2 먕선생 1229 2018.11.17
570 Red-hat 설치시 GUI 화면 접근 불가입니다. file 댈대뤼 519 2018.10.18
569 리눅스 설치시 패키지 보는법 질문드립니다. 1 noonccop 1212 2018.08.08
568 쉘 스크립트 질문 드립니다. 1 refkim 528 2018.03.13
567 Ubuntu 16.04 한글 입력 텍스트 창. 4 file noobLinux 855 2018.03.01
566 [grub] 윈도우7있던 ssd 밀고 우분투 16버전을 깔았는데요 1 netpi 532 2018.02.26
565 (linux mint)업데이트 어떻게 하세요? 4 구엘프 531 2018.02.13

 빠른 글쓰기




   Copyright 2013-2023 LinuxForum