Speed Limit Randomiser

Want something added? Ask for it here.
Post Reply
OOPMan
Newbie
Newbie
Posts: 2
Joined: February 9th, 2011, 1:50 am

Speed Limit Randomiser

Post by OOPMan »

Hi all

So, I have a thorny problem. My ISP attempts to detect abuse in two ways:

1: Usage of VPNs to circumvent shaping
2: Downloading at line or near-line speeds for extended periods

Now, I realise you guys can't do anything about point 1.

However, it strikes me that something could be done about point 2. Of course, a simple solution would be for me to simply halve my max download speed in SABNZBD.

But it would be cool if there were a feature such that I could tell SABNZBD+ to, for example, maintain an average max download speed of X and then SABNZBD+ varies the
actual max download speed such that an average max speed of X is maintained as best as possible while actual max speeds from second to second vary up and down in a
pseudo-random fashion that would hopefully throw a spanner in the traffic analysis works.

Anyway, just an idea :-)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Speed Limit Randomiser

Post by shypike »

Setup a schedule in SABnzbd for changing the speed.
If you're any good at scripting, write a Python or Perl program
to send speed changes to SABnzbd through its API.
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Speed Limit Randomiser

Post by sander »

shypike wrote: Setup a schedule in SABnzbd for changing the speed.
If you're any good at scripting, write a Python or Perl program
to send speed changes to SABnzbd through its API.
I felt like some API programming, so I created exactly that.  :)

I've included the python script.

@OOPman: change the line with "apikey" to your own apikey. You can also change the speed settings if you want. Then run with:

Code: Select all

python sabspeed-mini.py


Output of the script:

Code: Select all

sander@lifebook:~/sabspeedrandomizer$ python sabspeed-mini.py 
Setting new speed to 1 Mbps
ok

Now sleeping ... (Press 'CTRL C' to stop)
Setting new speed to 4 Mbps
ok

Now sleeping ... (Press 'CTRL C' to stop)
Setting new speed to 6.5 Mbps
ok

Now sleeping ... (Press 'CTRL C' to stop)
Setting new speed to 3 Mbps
ok

Now sleeping ... (Press 'CTRL C' to stop)
Setting new speed to 15 Mbps
ok

Now sleeping ... (Press 'CTRL C' to stop)
Setting new speed to 20 Mbps
ok

Now sleeping ... (Press 'CTRL C' to stop)
Setting new speed to 2 Mbps
ok

Now sleeping ... (Press 'CTRL C' to stop)
Setting new speed to 1 Mbps
ok

Now sleeping ... (Press 'CTRL C' to stop)
Setting new speed to 4 Mbps
ok

Now sleeping ... (Press 'CTRL C' to stop)



... and this is what SABnzbd says, so the proof it's working:

Code: Select all

2011-02-09 15:22:48,001::INFO::[downloader:234] Bandwidth limit set to 100
2011-02-09 15:23:48,065::INFO::[downloader:234] Bandwidth limit set to 400
2011-02-09 15:24:48,119::INFO::[downloader:234] Bandwidth limit set to 650
2011-02-09 15:25:48,181::INFO::[downloader:234] Bandwidth limit set to 300
2011-02-09 15:26:48,247::INFO::[downloader:234] Bandwidth limit set to 1500
2011-02-09 15:27:48,308::INFO::[downloader:234] Bandwidth limit set to 2000
2011-02-09 15:28:48,371::INFO::[downloader:234] Bandwidth limit set to 200
2011-02-09 15:29:48,430::INFO::[downloader:234] Bandwidth limit set to 100
2011-02-09 15:30:48,465::INFO::[downloader:234] Bandwidth limit set to 400


Last edited by sander on February 9th, 2011, 9:58 am, edited 1 time in total.
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply