squid란? http/1.0 proxy
http://www.squid-cache.org/Intro/
squid CentOS 7에 셋팅!
sudo yum install squid
Loaded plugins: fastestmirror, langpacks, versionlock
Determining fastest mirrors
EPEL7 | 4.7 kB 00:00:00
base | 3.6 kB 00:00:00
centosplus | 2.9 kB 00:00:00
extras | 2.9 kB 00:00:00
update | 2.9 kB 00:00:00
(1/5): extras/7/x86_64/primary_db | 243 kB 00:00:00
(2/5): EPEL7/7/x86_64/updateinfo | 1.0 MB 00:00:00
(3/5): update/7/x86_64/primary_db | 11 MB 00:00:00
(4/5): centosplus/7/x86_64/primary_db | 4.8 MB 00:00:00
(5/5): EPEL7/7/x86_64/primary_db | 7.0 MB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package squid.x86_64 7:3.5.20-17.el7_9.6 will be installed
--> Processing Dependency: squid-migration-script for package: 7:squid-3.5.20-17.el7_9.6.x86_64
--> Processing Dependency: perl(DBI) for package: 7:squid-3.5.20-17.el7_9.6.x86_64
--> Processing Dependency: libltdl.so.7()(64bit) for package: 7:squid-3.5.20-17.el7_9.6.x86_64
--> Processing Dependency: libecap.so.3()(64bit) for package: 7:squid-3.5.20-17.el7_9.6.x86_64
--> Running transaction check
---> Package libecap.x86_64 0:1.0.0-1.el7 will be installed
---> Package libtool-ltdl.x86_64 0:2.4.2-22.el7_3 will be installed
---> Package perl-DBI.x86_64 0:1.627-4.el7 will be installed
--> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI-1.627-4.el7.x86_64
--> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI-1.627-4.el7.x86_64
---> Package squid-migration-script.x86_64 7:3.5.20-17.el7_9.6 will be installed
--> Running transaction check
---> Package perl-PlRPC.noarch 0:0.2020-14.el7 will be installed
--> Processing Dependency: perl(Net::Daemon) >= 0.13 for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Running transaction check
---> Package perl-Net-Daemon.noarch 0:0.48-5.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===========================================================================================================================================================================================================================================================================================
Package Arch Version Repository Size
===========================================================================================================================================================================================================================================================================================
Installing:
squid x86_64 7:3.5.20-17.el7_9.6 update 3.1 M
Installing for dependencies:
libecap x86_64 1.0.0-1.el7 base 21 k
libtool-ltdl x86_64 2.4.2-22.el7_3 base 49 k
perl-DBI x86_64 1.627-4.el7 base 802 k
perl-Net-Daemon noarch 0.48-5.el7 base 51 k
perl-PlRPC noarch 0.2020-14.el7 base 36 k
squid-migration-script x86_64 7:3.5.20-17.el7_9.6 update 51 k
Transaction Summary
===========================================================================================================================================================================================================================================================================================
Install 1 Package (+6 Dependent packages)
Total download size: 4.1 M
Installed size: 13 M
Is this ok [y/d/N]: y
Downloading packages:
(1/7): libecap-1.0.0-1.el7.x86_64.rpm | 21 kB 00:00:00
(2/7): libtool-ltdl-2.4.2-22.el7_3.x86_64.rpm | 49 kB 00:00:00
(3/7): perl-Net-Daemon-0.48-5.el7.noarch.rpm | 51 kB 00:00:00
(4/7): perl-PlRPC-0.2020-14.el7.noarch.rpm | 36 kB 00:00:00
(5/7): perl-DBI-1.627-4.el7.x86_64.rpm | 802 kB 00:00:00
(6/7): squid-migration-script-3.5.20-17.el7_9.6.x86_64.rpm | 51 kB 00:00:00
(7/7): squid-3.5.20-17.el7_9.6.x86_64.rpm | 3.1 MB 00:00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 12 MB/s | 4.1 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 7:squid-migration-script-3.5.20-17.el7_9.6.x86_64 1/7
Installing : libtool-ltdl-2.4.2-22.el7_3.x86_64 2/7
Installing : libecap-1.0.0-1.el7.x86_64 3/7
Installing : perl-Net-Daemon-0.48-5.el7.noarch 4/7
Installing : perl-PlRPC-0.2020-14.el7.noarch 5/7
Installing : perl-DBI-1.627-4.el7.x86_64 6/7
Installing : 7:squid-3.5.20-17.el7_9.6.x86_64 7/7
Verifying : perl-Net-Daemon-0.48-5.el7.noarch 1/7
Verifying : 7:squid-3.5.20-17.el7_9.6.x86_64 2/7
Verifying : libecap-1.0.0-1.el7.x86_64 3/7
Verifying : libtool-ltdl-2.4.2-22.el7_3.x86_64 4/7
Verifying : perl-DBI-1.627-4.el7.x86_64 5/7
Verifying : 7:squid-migration-script-3.5.20-17.el7_9.6.x86_64 6/7
Verifying : perl-PlRPC-0.2020-14.el7.noarch 7/7
Installed:
squid.x86_64 7:3.5.20-17.el7_9.6
Dependency Installed:
libecap.x86_64 0:1.0.0-1.el7 libtool-ltdl.x86_64 0:2.4.2-22.el7_3 perl-DBI.x86_64 0:1.627-4.el7 perl-Net-Daemon.noarch 0:0.48-5.el7 perl-PlRPC.noarch 0:0.2020-14.el7 squid-migration-script.x86_64 7:3.5.20-17.el7_9.6
Complete!
/etc/squid에 가보면 아래와 같이 설치가 되어있다.
-rw-r--r-- 1 root squid 692 4월 16 03:47 cachemgr.conf
-rw-r--r-- 1 root root 692 4월 16 03:47 cachemgr.conf.default
-rw-r--r-- 1 root root 1817 4월 16 03:47 errorpage.css
-rw-r--r-- 1 root root 1817 4월 16 03:47 errorpage.css.default
-rw-r--r-- 1 root root 12077 4월 16 03:47 mime.conf
-rw-r--r-- 1 root root 12077 4월 16 03:47 mime.conf.default
-rw-r----- 1 root squid 2315 4월 16 03:47 squid.conf
-rw-r--r-- 1 root root 2315 4월 16 03:47 squid.conf.default
squid.conf를 수정!
sudo service squid status
Redirecting to /bin/systemctl status squid.service
● squid.service - Squid caching proxy
Loaded: loaded (/usr/lib/systemd/system/squid.service; disabled; vendor preset: disabled)
Active: active (running) since 목 2021-09-09 17:36:18 KST; 7s ago
Process: 19755 ExecStart=/usr/sbin/squid $SQUID_OPTS -f $SQUID_CONF (code=exited, status=0/SUCCESS)
Process: 19749 ExecStartPre=/usr/libexec/squid/cache_swap.sh (code=exited, status=0/SUCCESS)
Main PID: 19757 (squid)
CGroup: /system.slice/squid.service
├─19757 /usr/sbin/squid -f /etc/squid/squid.conf
└─19759 (squid-1) -f /etc/squid/squid.conf
'network' 카테고리의 다른 글
DigiCert SSL 인증서 (0) | 2019.02.25 |
---|---|
패킷 분석을 위한 툴 - wireshark (0) | 2017.04.18 |