zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Squid3 pam_auth

March 28, 2013 by Igor Drobot 2 Comments

squid logo

Target of this Squid3 implementation is to authenticate against PAM.
It’s also possible to create a virtual user list, but if you have already a system with a bunch of system accounts. So here it is: [Read more…]

Filed Under: Linux Tagged With: PAM Authentication, Proxy, Squid3

Squid disable cache for Domain

January 30, 2013 by Igor Drobot 2 Comments

Proxy

I had a problem with some AJAX based web sites, after some debugging a figured out that problems comes caching proxy (squid3). The content of this web sites was always outdated and sometimes I get strange errors.

Disabling cache for [Read more…]

Filed Under: Linux Tagged With: Cache, Proxy, Squid3

Nginx + apache2 = real-ip

January 30, 2011 by Igor Drobot 4 Comments

Nginx and Apache2 are running great but there is only one tiny problem with the visitors ip’s.

Normaly I let my nginx instance do the logging job, but if you let your Apache do it you will get some problems. Apache will see all incoming requests as coming from localhost (127.0.0.1). Right they are all from nginx.
[Read more…]

Filed Under: Debian, HTTP, Linux, Networking Tagged With: apache2, Nginx, Proxy, real-ip, rpaf

Debug squid ACL matches

January 24, 2011 by Igor Drobot Leave a Comment


Bad situation if you have too much ACLs in your squid config and important site gets a DENIE cause one or more of this all ACL’s matches.

Debugging helps you to find the right ACL.

1
2
3
vim /etc/squid3/squid.conf
# Debugging for your ACLs
debug_options 28,9

vim /etc/squid3/squid.conf # Debugging for your ACLs debug_options 28,9

Your debugged results will appear in your cache.log

1
less /var/log/squid3/cache.log

less /var/log/squid3/cache.log

Filed Under: Linux, Networking Tagged With: ACL, Debug, Proxy, Squid3

Squid visited sites

January 21, 2011 by Igor Drobot 2 Comments

You have a IP-Address from a PC, and you want to know which web-sites ware visited from this PC.

Grep for PCs IP-Address in the access log of your proxy box.

As result you will get a list with visited sites.

1
grep 172.16.0.5 /var/log/squid3/access.log | cut -d" " -f7 | sort -u | less

grep 172.16.0.5 /var/log/squid3/access.log | cut -d" " -f7 | sort -u | less

Filed Under: Bash, Linux Tagged With: Proxy, Squid

  • 1
  • 2
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok