본문 바로가기
  • Vetheuil in Summer
Tech/Public Cloud & 오픈소스

스퀴드 프록시 (Squid Proxy) 설정하기

by 눈꽃산행 2024. 11. 29.

 

https://www.squid-cache.org/

 

squid : Optimising Web Delivery

Squid: Optimising Web Delivery Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes

www.squid-cache.org

 

 

* AWS EC2 타임존 변경 ( 별도 프로세스 재기동 없이 바로 적용하기 )

[ec2-user@ip-172-31-13-134]$ sudo cp -p /usr/share/zoneinfo/Asia/Seoul /etc/localtime

* 유닉스 타임을 Date 타임으로 출력하기

[ec2-user@ip-172-31-13-134]$ sudo cat /var/log/squid/access.log | perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e'

로그 포맷

[ec2-user@ip-172-31-13-134 squid]$ sudo tail -f /var/log/squid/access.log | perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e'
[Fri Nov 29 12:34:40 2024].802    494 211.32.198.11 TCP_TUNNEL/200 4251 CONNECT client.wns.windows.com:443 - HIER_DIRECT/20.198.119.143 -
[Fri Nov 29 12:38:42 2024].148  59767 211.32.198.50 TCP_TUNNEL/200 30470 CONNECT www.ecar.go.kr:443 - HIER_DIRECT/211.236.84.165 -
[Fri Nov 29 12:41:09 2024].791    506 211.32.198.50 TCP_TUNNEL/200 4251 CONNECT client.wns.windows.com:443 - HIER_DIRECT/20.198.119.143 -
[Fri Nov 29 12:41:15 2024].408    509 211.32.198.11 TCP_TUNNEL/200 4251 CONNECT client.wns.windows.com:443 - HIER_DIRECT/20.198.119.143 -
[Fri Nov 29 12:41:15 2024].420    521 211.32.198.11 TCP_TUNNEL/200 4251 CONNECT client.wns.windows.com:443 - HIER_DIRECT/20.198.119.143 -

'Tech > Public Cloud & 오픈소스' 카테고리의 다른 글

MSA (MicroService Architecture)  (0) 2024.12.18
Docker 구성하기  (0) 2024.05.31
AWS Data Transfer Costs  (0) 2023.09.06
ELK(ElasticSearch, Logstash, Kibana) ELK Stack  (0) 2022.08.08
클라우드 보안 가이드  (0) 2020.12.02