"Enter"a basıp içeriğe geçin

Kaynak kodundan Squid 4 kurulumu- Centos 7

Gerekli önyüklemeleri yapıyoruz. En yeni sürümü bu adresten bulabilirsiniz:

http://www.squid-cache.org/Versions/v4/

yum install perl gcc autoconf automake make sudo wget libxml2-devel libcap-devel libtool-ltdl-devel gcc-c++

mkdir /squid

cd /squid

wget http://www.squid-cache.org/Versions/v4/squid-4.8-20190909-r5a3de98ee.tar.gz

tar zxvf squid*

cd squid*

./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --exec_prefix=/usr --libexecdir=/usr/lib64/squid --localstatedir=/var --datadir=/usr/share/squid --sysconfdir=/etc/squid --with-logdir=/var/log/squid --with-pidfile=/var/run/squid.pid --disable-dependency-tracking --enable-follow-x-forwarded-for --enable-auth --enable-auth-basic="DB,LDAP,NCSA,NIS,POP3,RADIUS,SASL,SMB,getpwnam,fake" --enable-auth-ntlm=fake --enable-auth-digest=file,LDAP,eDirectory --enable-auth-negotiate=kerberos,wrapper --enable-external-acl-helpers=wbinfo_group,kerberos_ldap_group,LDAP_group,delayer,file_userip,SQL_session,unix_group,session,time_quota --enable-cache-digests --enable-cachemgr-hostname=localhost --enable-delay-pools --enable-epoll --enable-icap-client --enable-ident-lookups --enable-linux-netfilter --enable-removal-policies=heap,lru --enable-snmp --enable-storeio=aufs,diskd,ufs,rock --enable-wccpv2 --enable-esi --enable-security-cert-generators --enable-security-cert-validators --enable-icmp --with-aio --with-default-user=squid --with-filedescriptors=16384 --with-dl --with-openssl --enable-ssl-crtd --with-pthreads --with-included-ltdl --disable-arch-native --without-nettle build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic" LDFLAGS="-Wl,-z,relro" CXXFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -fPIC" PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig --enable-ltdl-convenience --enable-http-violation

make

make install

gerekli dosyaları kopyalıyoruz

cp /squid/squid*/tools/systemd/squid.service /usr/lib/systemd/system

systemctl daemon-reload

firewall ve squid config ayarlarını aşağıdaki linkten yapabilirsiniz.

Squid proxy server en son sürümünü kurma ve çalıştırma (Centos 5 6 7)