I'm currently tethered to a 4G connection so this page will be graphics-light as I have graphics display disabled in my browser Iceweasel (like Firefox). So let us get moving with this guide.
First things are first. So open up your browser.
In your browsers settings, find out where to disabled automatic loading of images and pictures. In Firefox, it's Edit/Tools > Preferences > Content > Load images automatically. Uncheck this, and also uncheck "Enable Java", as that when enabled hogs bandwidth.
Now find out where your plugins section is in your browser. Again, using Iceweasel as the example, it's in
Tools > Add-ons > Plugins. Disable every plugin there is, as Flash and video playback hog bandwidth and your data allowance. I've got a data cap on my dad's Rogers (6GB between Dad and Mum, but I cap myself at 0.17GB to avoid haemorrhaging their bank account ) And that is NOT it.
Now you need IPTables.
Set a rule on chain OUTPUT to quota 160 MB and drop the rest.
Check you have at least 200 MB left on your cellular phone account though! You'll need 40MB in emergencies. Or change the 167772160 for however many bytes you can afford.Code:$ sudo iptables -A OUTPUT -p tcp -m quota --quota 167772160 -j ACCEPT ; sudo iptables -A OUTPUT -p tcp -j DROP
If you are a child using your mum's or papa's Internet access on mobile cellular, please seek permission from the billpayer(s) before using their access. I'm allowed up to 5 MB in one fix, which is a lot of websites - but not a lot of data. 160MB is less than what is left, so I should be allowed about that much. Also, in GNOME if you have it, open the System Monitor. In Debian it is in Start Bar/Menu > Applications > System Tools, in Ubuntu it is in Start Bar/Menu > System > Administration. I've already used 4 MB of my 5 MB, so bye-a and hope you enjoy using this guide!
Bookmarks