삭제 요청은 서비스-문의하기 이용 바랍니다.
비공개/상용 자료 요청은 금지합니다.
서버 프록시 서버 운영할때
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
이대로 해도 안되네요..
번호 | 제목 | 글쓴이 | 조회 | 날짜 |
---|---|---|---|---|
24 | 리눅스에서 돌아가는 소프트웨어를 찾습니다. 6 | Lr라 | 2715 | 2013.10.17 |
23 | 멀티 리눅스 설치법?? 12 | 지나다가 | 2411 | 2013.10.17 |
22 | 답을 알려주실 분 있으신가요? 3 | tofinder | 2226 | 2013.10.16 |
21 | 우분투 매뉴 질문 2 | 거지왕초 | 2226 | 2013.10.16 |
20 | 초록색 화면 4 | 하하허허 | 2668 | 2013.10.16 |
19 | 리눅스 민트... 4 | consolation | 2963 | 2013.10.15 |
18 | 한글2010 한글문서의 속성 연결하여 주는 방법에 관하여~ 2 | 마니또우 | 3444 | 2013.10.14 |
17 | 브라우저에서 한글입력이안될때 4 | 승진 | 3150 | 2013.10.13 |
16 | 어떤 서버 도메인이 가장 빠른가요? 2 | 지나다가 | 2501 | 2013.10.13 |
15 | 윈도우8 때문에 리눅스 부팅을 못하고 있습니다. 도와주세요 5 | 은빛서쪽 | 4393 | 2013.10.13 |
14 | wine 1.6으로 업데이트하는방법... 3 | Sh | 3510 | 2013.10.13 |
13 | 팬이 미친듯이 돌아가네요. 6 | 쌩초보 | 5343 | 2013.10.13 |
12 | 왕초보 입니다,리눅스를 배우고 싶습니다 7 | kjds7 | 4662 | 2013.10.13 |
11 | 리눅스 에서 TV보시는분 ?? | 거지왕초 | 2523 | 2013.10.13 |
10 | 쿠분투 한글입력문제... 11 | 의미없는시간 | 6468 | 2013.10.12 |
9 | 메모리에 관한 질문? 1 | 거지왕초 | 2557 | 2013.10.12 |
8 | 바탕 화면 2 | 무한대 | 2691 | 2013.10.12 |
7 | 리눅스로 뭘 할 수 있나요? 14 | 양군 | 4008 | 2013.10.12 |
6 | 파티션 나누는 방법 좀? 5 | csoo | 3492 | 2013.10.12 |
5 | 그래픽 드라이버 11 | 기회 | 3445 | 2013.10.11 |
해결
#추가
#visible_hostname centos7 //이눔 추가하면 안되는군요