CentOS   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Centos7.5透明代理报错[squid] kid1| ERROR: No forward-pro大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

[ [email protected] squid]# squid -v Squid Cache: Version 3.5.20 service Name: squid configure options: ‘--build=x86_64-redhat-linux-gnu‘ ‘--host=x86_64-redhat-linux-gnu‘ ‘--program-prefix=‘ ‘--prefix
[ [email protected] squid]# squid -v
Squid Cache: Version 3.5.20
service Name: squid
configure options: ‘--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‘ ‘--disable-@R_673_10495@ct-error-checking‘ ‘--exec_prefix=/usr‘ ‘--libexecdir=/usr/lib64/squid‘ ‘--localstatedir=/var‘ ‘--datadir=/usr/share/squid‘ ‘--sysconfdir=/etc/squid‘ ‘--with-logdir=$(localstatedir)/log/squid‘ ‘--with-pidfile=$(localstatedir)/run/squid.pid‘ ‘--disable-dependency-tracking‘ ‘--enable-eui‘ ‘--enable-follow-x-forWARDed-for‘ ‘--enable-auth‘ ‘--enable-auth-basic=DB,LDAP,MSNT-multi-domain,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB,SMB_LM,getpwnam‘ ‘--enable-auth-ntlm=smb_lm,fake‘ ‘--enable-auth-digest=file,eDirectory‘ ‘--enable-auth-negotiate=kerberos‘ ‘--enable-external-acl-Helpers=file_userip,LDAP_group,time_quota,session,unix_group,wbinfo_group,kerberos_ldap_group‘ ‘--enable-cache-digests‘ ‘--enable-cachemgr-hostname=localhost‘ ‘--enable-delay-pools‘ ‘--enable-epoll‘ ‘--enable-ident-lookups‘ ‘--enable-linux-netfilter‘ ‘--enable-removal-policies=heap,lru‘ ‘--enable-snmp‘ ‘--enable-ssl-crtd‘ ‘--enable-storeio=aufs,diskd,rock,ufs‘ ‘--enable-wccpv2‘ ‘--enable-esi‘ ‘--enable-ecap‘ ‘--with-aio‘ ‘--with-default-user=squid‘ ‘--with-dl‘ ‘--with-openssl‘ ‘--with-pthreads‘ ‘--disable-arch-native‘ ‘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 -fpie‘ ‘LDFLAGS=-Wl,-z,relro -pie -Wl,relro -Wl,Now‘ ‘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 -fpie‘ ‘PKG_CONfig_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig

防火墙配置
firewall-cmd --zone=trusted --direct --add-rule ipv4 nat PRERoutING 1 -i eth1 -p tcp --dport 80 -j REDIRECT --to 3129 --peRMANent

是由于配置参数不正确:
http_port 3128 transparent

需要将其改成:
http_port 3128
http_port 3129 intercept

透明代理在3.1版以后使用 transparent 参数,但是3.4.5还需要另外占用一个端口,将透明代理和http代理分开使用,3128可以继续http代理用,3219可以做透明代理用。

大佬总结

以上是大佬教程为你收集整理的Centos7.5透明代理报错[squid] kid1| ERROR: No forward-pro全部内容,希望文章能够帮你解决Centos7.5透明代理报错[squid] kid1| ERROR: No forward-pro所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。