I'm trying to cache requests to remote package repository, so I can access it without internet connection. All calls are via http GET to remote repo.
iptables entry to redirect requests to proxy
iptables -t nat -A PREROUTING -p tcp -d repo.domain --dport 8080 -j DNAT --to-destination 127.0.0.1:3128 //redirect to squid
and squid.conf
acl cacheDomain dstdomain repo.domain
It doesn't seem to be working. Maybe it is only squid problem. Requests to remote repo are failing and no entries in squid3/access.log
or squid3/cache.log
.
What I'm doing wrong? Is this acl line enough to enable caching for this domain?