삭제 요청은 서비스-문의하기 이용 바랍니다.
비공개/상용 자료 요청은 금지합니다.
서버 프록시 서버 운영할때
2016.06.24 10:22
특정 아이피만 사용하게 만들고 싶은데요 어떻게 해야할까요???
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 | 리눅스 질문요!! | Qu1k51lv3r | 367 | 2016.03.05 |
543 | 개인 PC에서 트래픽 조절 | chohy01 | 373 | 2015.11.09 |
542 | iptime 공유기 설정페이지 1 | Lemon | 373 | 2016.08.25 |
541 | 리눅스 서버에서 | 코리안 | 374 | 2016.01.27 |
540 | tar 이용해서 압축 풀때.. 2 | Nye | 381 | 2015.11.13 |
539 | 윈도우 설치시 질문입니다. 2 | 고감맨 | 381 | 2016.02.07 |
538 | 리눅스 tar 압축 종료 시간.. | Nye | 382 | 2015.11.10 |
537 | Raid 구성 , Cent OS 설치 1 | 차니차니 | 383 | 2017.07.11 |
536 | 제가 윈도우 7에서 리눅스를 깔았는데 | 김쥰내 | 387 | 2016.02.03 |
535 | windows 0.0 setup bios mode 질문드립니다. 1 | 속남 | 393 | 2016.01.10 |
534 | 제가 원하는데로 세팅한 리눅스를 만들수 있는 방법은 없나요? 4 | OS | 398 | 2016.04.29 |
533 | 윈도우 8.0 영문판 정품 시리얼키로 윈도우 8.0 한글판 설치에 사용할 수 있나요? 2 | Kobe24 | 399 | 2016.05.06 |
532 | 조린os 12 소프트웨어 저장소 변경하고 싶습니다. 1 | 루팅걸 | 406 | 2017.05.12 |
531 | Raspbian 1 | Qu1k51lv3r | 411 | 2016.03.06 |
530 | 리눅스 iso 다운로드 관련 질문 | psw9255439 | 412 | 2016.12.25 |
529 | Ubuntu 21.04 질문 | 성철인 | 416 | 2021.05.28 |
528 | elementary OS Freya 0.3.2 에서 skype 사용중 한글입력문제 문의 1 | 모란앵두 | 429 | 2016.01.06 |
527 | 바이두 끌어놓기가 안되요. 2 | 또깡 | 431 | 2015.12.15 |
526 | RHEL6.5 시스템 불안정 질문 1 | 닉네임하 | 433 | 2016.03.09 |
525 | qemu 오류 2 | Lemon | 433 | 2016.10.28 |
해결
#추가
#visible_hostname centos7 //이눔 추가하면 안되는군요