Use squid to track http requests of machines in your LAN

The key is to set up a squid server on a Linux machine, and then have other machines use that squid server as the network proxy.

Procedures (for squid installed on Ubuntu)
  1. sudo apt-get install squid3
  2. Edit /etc/squid/squid.conf.
    • Make sure you have uncomment the following acl lines:
      • acl localhost src 127.0.0.1/32
      • acl localnet src 192.168.2.0/24 (Replace 192.168.2.0/24 with the subnet of your LAN) 
    • Make sure you have uncomment the following http_access lines:
      • http_access allow localnet
      • http_access allow localhost
  3. service squid restart. By default the server uses port 3128.
  4. Set other machines to use that squid3 server as the network proxy.
Browse /var/log/squid/access.log to check the http requests.

To make your proxy server cache nothing, follow the instruction at here. For instance, add the following line in /etc/squid/squid.conf.

cache deny all

Comments

Popular posts from this blog

Using PlayStation 1 Densha de Go controller on emulators

Using PS1/PC Densha de Go! controller SLPH-00051/TCPP-20001/DGOC-44U on PS4/Switch Densha de Go!!

Play octoshape stream on windows with VLC player