Thursday, March 06, 2014

centos 6.3 and squid 3.1.10 : url could not be retrieved, connection to ipv6 address failed

installed squid 3.1.10 through yum on my centos 6.3 and placed my simple custom configuration. then i got this when i tested the newly set up proxy...


weird connection 2404:6800:4004:803::100e looked like an ipv6 address. and it is. i read in a thread about this and that this issue is solved in higher version of squid. but i'm having trouble setting up the new squid because i couldn't find its start up script! hahaha

solution? i disabled my box's ipv6 for now. i don't have ipv6 connectivity anyway.

to disable ipv6 on centos, add this to your /etc/sysctl.conf :
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1


(src. http://wiki.centos.org/FAQ/CentOS6#head-d47139912868bcb9d754441ecb6a8a10d41781df)

found out that forcing your squid to use ipv4 works too. add this to your squid.conf:
tcp_outgoing_address <public ipv4 ip>

(src. http://dev-tricks.net/squid-101-network-is-unreachable-when-dns-returns-ipv6)

No comments:

Post a Comment

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...