삭제 요청은 서비스-문의하기 이용 바랍니다.
비공개/상용 자료 요청은 금지합니다.
서버 프록시 서버 운영할때
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
이대로 해도 안되네요..
번호 | 제목 | 글쓴이 | 조회 | 날짜 |
---|---|---|---|---|
10 | 개인 PC에서 트래픽 조절 | chohy01 | 373 | 2015.11.09 |
9 | 우분투 개발 서버 구축 (안드로이드 컴파일) 질문드립니다. | 추츤 | 336 | 2015.11.20 |
8 | RHEL6.5 시스템 불안정 질문 1 | 닉네임하 | 433 | 2016.03.09 |
7 | Centos make에 대해서,, 1 | 정수리 | 554 | 2016.04.11 |
» | 프록시 서버 운영할때 1 | 코리안 | 290 | 2016.06.24 |
5 | 리눅스 웹서버를 돌리는데 2 | 코리안 | 585 | 2017.02.18 |
4 | oracle vm virtualbox 질문드립니다..!! 1 | 파워슈짱 | 302 | 2017.05.11 |
3 | 레드햇 7.3 질문 드립니다 1 | 힘들어요 | 359 | 2017.08.01 |
2 | DHCP 서버 끊김 현상 | 꼬꼬 | 940 | 2017.09.12 |
1 | 쉘 스크립트 질문 드립니다. 1 | refkim | 556 | 2018.03.13 |
해결
#추가
#visible_hostname centos7 //이눔 추가하면 안되는군요