jaberwalk Posted February 3, 2011 Report Share Posted February 3, 2011 For those of you that want to use Falcon and Peerblock at the same time, but dont to allow all the IP's for amazon cloud, I made this solution.The problem is that the IP's provided by amazon cloud can shift around every few days at random, what this script does is gather all the valid IP's for the utorrent servers and generates a safelist which is compatible to be loaded into peerblock, same format as what you would find on iblocklist.com.I've got this script running on a development web server I've set up via a cron job every 12 hours. It dumps the file in a directory that apache is set up to serve from. Point the allow list to there, and viola, no problemo.It may be a bit advanced, if you are unsure as to what I'm doing here, then this solution (no offense) probably isnt for you. But if someone out there wants to run this on a public webserver and supply the generated link for everyone to enjoy, then awesome: #!/bin/bashFILE="/sites/www.example.com/www/utorrent.txt"IPLIST=`dig @ns1.utorrent.com utorrent.com axfr |grep -v ";" |awk {'print $5'} |sed 's/-/./g'|sed -r 's/^.*?[^0-9](25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)[^0-9].*$/\1.\2.\3.\4/' | grep -E "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)"|sort -u`echo "# uTorrent Falcon IP Safelist" > $FILEecho "# Autogenerated on `date`" >> $FILEfor i in $IPLISTdo echo "uTorrent:$i-$i" >> $FILEdoneHope this solution helps someone else out there. Link to comment Share on other sites More sharing options...
Diftraku Posted March 30, 2011 Report Share Posted March 30, 2011 http://project-moocow.net/utorrent.txtUpdates every 12 hours. Supports conditional get.I reserve the right to restrict access to the list and/or remove access to it (just to cover my own hide here).Other than that, play nicely and I'll be happy to keep it up there. Link to comment Share on other sites More sharing options...
enstine86 Posted June 15, 2011 Report Share Posted June 15, 2011 Thank you the list works perfectly with peerblock. Link to comment Share on other sites More sharing options...
Diftraku Posted August 3, 2011 Report Share Posted August 3, 2011 Apparently, since 2nd of Aug, the dig for ns1.utorrent.com has been returning transfer failed for some odd reason. This can be fixed by swapping to ns2.utorrent.comThe list I managed has been out of date since 00:00:04 of 2nd of Aug and will be refreshed immediately to counter the downtime caused by this change. Link to comment Share on other sites More sharing options...
Diftraku Posted September 23, 2011 Report Share Posted September 23, 2011 And yet again the utorrent.com name servers have changed. I tried with 3 different servers returning the same results for the Nns.utorrent.com name servers, all failed due to timeout.I switched my script hosted on project-moocow.net to use the bittorrent.com servers ens-05.bittorrent.com and ens-06.bittorrent.com respectively. Link to comment Share on other sites More sharing options...
chaytah Posted September 8, 2013 Report Share Posted September 8, 2013 Hi Diftraku,Firstly, thanks for your whitelist. It's worked great for a long time.Recently though (last few months) it's stopped working again. Could you kindly check to see if it's something you can fix easily?Thanks! Link to comment Share on other sites More sharing options...
ciaobaby Posted September 8, 2013 Report Share Posted September 8, 2013 Could you kindly check to see if it's something you can fix easily?Given that Diftraku hasn't logged in since 2011, that probaly won't happen. Link to comment Share on other sites More sharing options...
Diftraku Posted October 23, 2013 Report Share Posted October 23, 2013 Unfortunately all the µTorrent related DNS servers refuse the zone transfer request, making the script obsolete as we have nothing to dig for.The only way I can see the whitelist returning is for the µTorrent staff to publish the Amazon AWS IPs reserved for the proxies. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.