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

 

서버 프록시 서버 운영할때

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 hrtimer 오차 발생 질문 로미니 257 2016.11.18
543 소프트웨어 업데이트 에러 문제 1 u2shalom 258 2016.11.17
542 qemu 오류 2 Lemon 425 2016.10.28
541 리눅스 x86 응용프로그램 관련 Lemon 213 2016.10.28
540 gcc 설치 관련 입니다. 안성인 346 2016.10.25
539 오픈 수세에서 fcitx에 대한 질문입니다. 구엘프 229 2016.10.13
538 우분투 종료 질문입니다. Daniel 217 2016.10.06
537 usb 쓰기금지에 관해.. 3 풍운 487 2016.09.21
536 iptime 공유기 설정페이지 1 Lemon 368 2016.08.25
535 리눅스 cpu 온도에 따른 클럭 조절 방법 로미니 438 2016.08.18
534 안녕하세요.. linux kernel에서 bio structure를 공부중인데.. rhguddnr 201 2016.08.15
533 리눅스 커널에서 디바이스 드라이버(sata interface)에 대해 좀 아시는분 계신가요? rhguddnr 227 2016.08.11
532 연결이 왜안될까요? 192.168.1.* 와 192.168.2.* 후즈츠 239 2016.08.10
531 32비트 컴에 OS 등 설치가능한 PE 버전은 어떻게 되나요? 폰타나 259 2016.08.06
530 리눅스 커널간 호환성 질문입니다. 오블레임 216 2016.08.01
529 리눅스 설치중 오류... 10 abcd4653 349 2016.07.23
528 wine이 지워진 채 설치도 불가능하다고 뜨네요 2 file 사라테 337 2016.06.28
» 프록시 서버 운영할때 1 코리안 286 2016.06.24
526 Kodi Media Center에서 한글 지원되는 스킨 성민컴퓨터 493 2016.06.22
525 우분투 제로보드설치시 cjuny 189 2016.06.14

 빠른 글쓰기




   Copyright 2013-2023 LinuxForum