Whilst speaking squid – Limit bandwidth for videos:

Today I am going to teach you more about squid.conf.

  • The first two lines tell squid not to log a user (in this example using IP: info into the access.log.  This is very important for the system administrator due to site-testing and more clogging up valuable squid-log data.
  • The next four lines is to limit mobile-users (list of ip’s in a file called /scripts/mobile-users, one ip number per line) you want to limit to only download a maximum sized file of 50MB.  This is to stop updates happening on Mobile Devices, sometimes causing systems inoperable, but still allowing update and installation of apps via your network.
  • The 3rd block of code changes the speed that YouTube, (googlevideo.com – youtube is owned by Google) and Vimeo delivers files to the “mobile-users” ip list.  You will also see that “FREE-USAGE” does not get limited on the rule.  This is so that mobile-users do not become bandwidth-hogs with video streaming.
  • The fourth block of info give your squid log the full url in use when users are connecting to youtube.  Without this, you will only see youtube.com? as a log-entry.
acl FREE-USAGE src
log_access deny FREE-USAGE

acl mobile-users src "/scripts/mobile-users"
http_access allow mobile-users
reply_body_max_size 50 MB mobile-users
request_body_max_size 1 MB mobile-users

delay_pools 2
delay_class 2 1
delay_parameters 2 64000/64000
acl YOUTUBE dstdomain .googlevideo.com .vimeocdn.com
delay_access 2 deny FREE-USAGE
delay_access 2 allow YOUTUBE mobile-users

strip_query_terms off

That’s it for today!

Linux: Back to “SQUID” – How to limit download of large files.

Over the last couple of days I have been looking into giving mobile devices (iPhones/SmartPhones/Tablets) access to my network.  Specifically to install and use things like PlayStore and iTunes without using the data on the devices.  The one thing that always gets me is that these kind of devices will always try and update themselves with the latest Operating system software.  I do not mind the update of packages, but in South Africa we pay prime for bandwidth and access to these kind of update-technologies just do not play nicely with my business. Continue reading

WYSE Terminals – Installing and uninstalling SW.

First dump the rpm found on the Terminal…  (Use ssh/sftp…)


Connect to Terminal

  1. Select Computer
  2. Select XTerm

Uninstall Previous Version

  • 1. Get the name of the rpm package using this command

rpm -qa | grep -i “NAME”

  • Uninstall using this command


Navigate to the New RPM File

  1. cd wherever
  2. ls

Run the Install

rpm -i –nodeps name_of_software.rpm