码迷,mamicode.com
首页 > 其他好文 > 详细

Centos7.5透明代理报错[squid] kid1| ERROR: No forward-pro

时间:2018-12-09 21:06:07      阅读:243      评论:0      收藏:0      [点我收藏+]

标签:name   snmp   data   track   透明   and   代理   localhost   sha   

[root@localhost 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-strict-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,LDAP,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,-z,relro -Wl,-z,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

标签:name   snmp   data   track   透明   and   代理   localhost   sha   

原文地址:http://blog.51cto.com/jxwpx/2328143

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!