Sometime I noticed that google is not working in my network. After checking logs it was noticed that squid is forwarding the requests to IPV6 address of google
1437666658.051 60298 172.XXX.XXX.XX TCP_MISS/503 0 CONNECT clients4.google.com:443 - DIRECT/2a00:1450:4001:805::1003
1437666660.121 60292 172.XXX.XXX.XX TCP_MISS/503 0 CONNECT clients2.google.com:443 - DIRECT/2a00:1450:4001:805::1004
To fix this issue first disable IPV6 from your linux machine with below commands
In /etc/sysctl.conf change/create entries:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
In /etc/sysconfig/network change/create entries:
NETWORKING_IPV6=no
IPV6INIT=no
service ip6tables stop
chkconfig ip6tables off
& finally run this command
echo "install ipv6 /bin/true" > /etc/modprobe.d/ipv6_disabled.conf
Restart you PC & add below rules in squid.conf file. Restart squid & your issue will resolved
tcp_outgoing_address <Your Server IP> all
dns_v4_first on
1437666658.051 60298 172.XXX.XXX.XX TCP_MISS/503 0 CONNECT clients4.google.com:443 - DIRECT/2a00:1450:4001:805::1003
1437666660.121 60292 172.XXX.XXX.XX TCP_MISS/503 0 CONNECT clients2.google.com:443 - DIRECT/2a00:1450:4001:805::1004
To fix this issue first disable IPV6 from your linux machine with below commands
In /etc/sysctl.conf change/create entries:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
In /etc/sysconfig/network change/create entries:
NETWORKING_IPV6=no
IPV6INIT=no
service ip6tables stop
chkconfig ip6tables off
& finally run this command
echo "install ipv6 /bin/true" > /etc/modprobe.d/ipv6_disabled.conf
Restart you PC & add below rules in squid.conf file. Restart squid & your issue will resolved
tcp_outgoing_address <Your Server IP> all
dns_v4_first on