Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is there a way to setup squid (or another caching proxies) to cache any http/https request from my own computer?

i will use it to record all request and get the downloaded files from software that does not show the url's or redownload packages that already been downloaded (such as Yaourt --> this package always redownload packages that already been downloaded, it's really takes too much bandwidth for big packages)

share|improve this question
add comment

1 Answer 1

Caching https is hard to set up, sorry. You need to create a local CA certficate, and configure the client programs to accept it. I don't know what proxy software you'd have to use for it.

Squid isn't great for caching large downloads. It doesn't support partial instances, i.e. resuming interrupted downloads.

Polipo supports partial instances, and I love it as a personal proxy. It has been slightly unreliable at times. In particular it may suffer if you have an old dnsmasq implementation on your home router, which gets confused by simultaneous DNS queries for ipv4 and ipv6. It does not support https interception/caching.

Hopefully your client software respects the standand environment variables like $http_proxy. If your distro supports it, you can set e.g. http_proxy=http://localhost:8123/ in /etc/environment, and it will be set at login time by pam_env. (debian suffered from a bug at some recent point which disabled this, but I think it's working on my current debian unstable machine).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.