Blocking internet traffic

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
User avatar
RC Da Kookee
Level 1
Level 1
Posts: 28
Joined: Thu Aug 23, 2012 8:43 pm
Contact:

Blocking internet traffic

Post by RC Da Kookee »

My friend is having limited internet bandwidth, 5 GB per month only.
Each GB over is kinda expensive but he's willing to go up to 12 GB top and when that mark is reached - to completely block internet access for the rest of that active month.

First of all I thought vnstat is the right thing but it can only slow down overall bandwidth speed while not fully stop it.
Is there any other script, daemon or such to achieve this stuff?

Thanks :)
User avatar
excollier
Level 4
Level 4
Posts: 454
Joined: Mon Oct 01, 2012 3:31 pm
Location: Donegal, Ireland

Re: Blocking internet traffic

Post by excollier »

You should be able to set limits, or warnings, in the router set up.
And some willpower.
Registered Linux user #557695
Mint 17.3 XFCE &Debian 9.1 XFCE dual boot (desktop), Raspbian Jessie (Raspberry Pi)
Windows 10 VM (I know) so I can work from home.
User avatar
RC Da Kookee
Level 1
Level 1
Posts: 28
Joined: Thu Aug 23, 2012 8:43 pm
Contact:

Re: Blocking internet traffic

Post by RC Da Kookee »

It's 3G modem so no luck there as with standard router.
I'm afraid that willpower is flat zero in his case so he's looking for something radical :D
User avatar
excollier
Level 4
Level 4
Posts: 454
Joined: Mon Oct 01, 2012 3:31 pm
Location: Donegal, Ireland

Re: Blocking internet traffic

Post by excollier »

Hide the modem for a couple of weeks :lol:
Registered Linux user #557695
Mint 17.3 XFCE &Debian 9.1 XFCE dual boot (desktop), Raspbian Jessie (Raspberry Pi)
Windows 10 VM (I know) so I can work from home.
User avatar
DrHu
Level 17
Level 17
Posts: 7522
Joined: Wed Jun 17, 2009 8:20 pm

Re: Blocking internet traffic

Post by DrHu »

First thought: what does the ISP offer for monitoring his usage up to the limit
--perhaps they have a notification option to let him know he is near exceeing his 5GB limit

Then there are a whole collection of tools to check, seeing which one or similar ones will provide that data
http://www.ubuntugeek.com/bandwidth-monitoring-tools-for-linux.html
http://bandwidthd.sourceforge.net/
--a kinda good looking gui tool, something like that may be of interest to your user..

http://ipband.sourceforge.net/
--or a kinda logger tool

A columnist..howto watch traffic thresholds..
http://www.linuxpronews.com/how-to-monitor-your-linux-network-bandwidth-usage-2009-01
http://www.linux-magazine.com/Online/Blogs/Productivity-Sauce/Monitor-Bandwidth-Usage-with-vnStat
--a slight more detailed explanation of it (vnstat)
--so he is using vnstat to collect usage stats over time..does/wouldn't that help ? (even though you looked at it already..)

If discipline is rally a problem for the user, not much will help with that. I be asking the ISP for some help with the problem of going over the limit he setting of using/geting 5GB of traffic before costs shoot up.
--maybel they'l listen.
Post Reply

Return to “Other networking topics”