[squid-users] squid3 makes my users foreigners!

From: Andreas Westvik <andreas_at_spbk.no>
Date: Wed, 1 Aug 2012 02:59:32 +0200

First post from a "long" time squid user

So during the Olympics my national broadcaster has these free HD streaming channels on some webpage. (I'm norwegian - nrk.no) Now, when I route my LAN traffic through squid3, nrk.no thinks Im outside Europe - and thus denies me access to the streams.

And as soon I turn http routing off via squid3, everything works like a charm and nrk.no thinks Im legit.

Now, I have a few webservers running on my host as well so I turned on dns lookups in apache2.conf to see what kind of host apache sees when Im visiting my own server, and sure enough thats hostname-ip.no-address

So what am I doing wrong here?

acl manager proto cache_object
acl localhost src ::1
acl to_localhost dst ::1
acl localnet src
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access deny all
http_port 3128 transparent
hierarchy_stoplist cgi-bin ?
cache_mem 512 MB
maximum_object_size_in_memory 2 MB
cache_dir ufs /var/spool/squid3 2048 16 256
access_log /var/log/squid3/access.log squid
coredump_dir /var/spool/squid3
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
shutdown_lifetime 5 seconds
always_direct allow all
memory_pools on
memory_pools_limit 100 MB

iptables routing

Original (not working)

iptables -t nat -A PREROUTING -i eth3 -p tcp --dport 80 -j REDIRECT --to-port 3128

Some new ones Im testing (Not working either, still getting blocked)

iptables -t nat -A PREROUTING -i eth3 -p tcp -m tcp --dport 80 -j DNAT --to-destination
iptables -t nat -A PREROUTING -i eth4 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128

eth3 = LAN
eth4 = official "norwegian" ip.

So why does nrk.no think Im a foreigner when I try to watch the olympics via squid3?
Received on Wed Aug 01 2012 - 00:59:40 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 01 2012 - 12:00:02 MDT