Page 1 of 1

host file ? newzbin.com current ip blacklisted

Posted: December 17th, 2011, 8:05 pm
by darkromz
newzbin.com is now banned on some isp here in the uk, so the only real useful way around this is by changing the host file on your windows pc to point the domain to a different IP address, however i've noticed sabnzbd doesnt seem to use this at all, so my client cant connect to newzbin.com website.

So there a way to change this at all?

Re: host file ? newzbin.com current ip blacklisted

Posted: December 18th, 2011, 3:15 am
by shypike
In the UK the IP itself is blocked as well.
The only way around is to use Tor, which SABnzbd does not support.

Re: host file ? newzbin.com current ip blacklisted

Posted: December 18th, 2011, 4:18 am
by sander
darkromz wrote:newzbin.com is now banned on some isp here in the uk, so the only real useful way around this is by changing the host file on your windows pc to point the domain to a different IP address, however i've noticed sabnzbd doesnt seem to use this at all, so my client cant connect to newzbin.com website.

So there a way to change this at all?
Can you access http://85.112.165.75/ ? If not, the IP address is blocked too.

I have a VPS in the UK, but it can both access the URL and the IP address. My conclusion: not all SP's block access.


Solution:
get an ISP that does not block newzbin
or, get a VPN server outside the UK, and route all your traffic (including SAB's) over that VPN.

Re: host file ? newzbin.com current ip blacklisted

Posted: December 18th, 2011, 8:43 am
by darkromz
Thanks for the replys but i think my op has been miss understood, or not clear enough to what i am asking or trying to do.

newzbin.com has been blocked by BT and SKY at the moment here in the UK and it will only be a matter of time before it happens to more ISP's in the uk, so its a waste of time changing isp because a week later the new isp your on could be next, not only that but most isp's in the uk are 12-18 month contracts.

They have blocked the actual IP however there is another IP that you can access newzbin.com on so by changing the host file located in the windows/system32/drivers/etc/ folder; i have made the change and when i now type in newzbin.com in my address bar it loads the page fine and you cant tell anything is different as my host file overrides the isp dns server.

HOWEVER i've noticed sabnzbd still cant access the newzbin.com, which leads me to think sabnzbd doesnt use the host file at all, and is just resolving to the correct IP for newzbin.com which is obviously blacklisted.

SO.... my question is, is there a host file somewhere for sabnzbd? or is there a reason why sabnzbd doesnt use windows host file as it still has to use the TCP/IP protocal doesnt it? which uses the host file?

Re: host file ? newzbin.com current ip blacklisted

Posted: December 18th, 2011, 8:48 am
by darkromz
sander wrote:Solution:
get an ISP that does not block newzbin
or, get a VPN server outside the UK, and route all your traffic (including SAB's) over that VPN.
Im not 100% sure how to get a VPN server never mind set one up, but this would have to be done at router level wouldnt it? if i was to use a synology box running sabnzb on?

Re: host file ? newzbin.com current ip blacklisted

Posted: December 18th, 2011, 9:38 am
by sander
darkromz wrote:
sander wrote:Solution:
get an ISP that does not block newzbin
or, get a VPN server outside the UK, and route all your traffic (including SAB's) over that VPN.
Im not 100% sure how to get a VPN server never mind set one up, but this would have to be done at router level wouldnt it? if i was to use a synology box running sabnzb on?
No, not necessarily. Or: probably not; you need a more expensive router to let the *router* setup a VPN. Check your router's documentation to see if it can be a VPN client.
Easier to let your PC setup the VPN.

Synology: it seems to have a "VPN Center", but it seems to be a VPN server, and you need a VPN client.

Re: host file ? newzbin.com current ip blacklisted

Posted: December 18th, 2011, 9:40 am
by sander
darkromz wrote:Thanks for the replys but i think my op has been miss understood, or not clear enough to what i am asking or trying to do.

newzbin.com has been blocked by BT and SKY at the moment here in the UK and it will only be a matter of time before it happens to more ISP's in the uk, so its a waste of time changing isp because a week later the new isp your on could be next, not only that but most isp's in the uk are 12-18 month contracts.

They have blocked the actual IP however there is another IP that you can access newzbin.com on so by changing the host file located in the windows/system32/drivers/etc/ folder; i have made the change and when i now type in newzbin.com in my address bar it loads the page fine and you cant tell anything is different as my host file overrides the isp dns server.

HOWEVER i've noticed sabnzbd still cant access the newzbin.com, which leads me to think sabnzbd doesnt use the host file at all, and is just resolving to the correct IP for newzbin.com which is obviously blacklisted.

SO.... my question is, is there a host file somewhere for sabnzbd? or is there a reason why sabnzbd doesnt use windows host file as it still has to use the TCP/IP protocal doesnt it? which uses the host file?
If all ISPs are going to block that (official) IP address, don't you think that ISPs are going to block that other IP address?

Anyway: host file. Do you run SABnzbd on Windows (as the above folder in the above quoted post suggests), or on Synology (as your other post suggests)?

Re: host file ? newzbin.com current ip blacklisted

Posted: December 18th, 2011, 10:02 am
by darkromz
Only ISP which are served with a court order are blacklisting hence BT sky has done it off there own back prob down to movie company's and what sky offers on its movie packages. It's all down to MPA.

While they will block the other ip we all know paper work takes weeks for these company's to get around to so the additional ip unless reported by MPA will be fine until then.

Sabnzbd can't use the host file much to my surprise as newzbin.com works fine in my browser but the client can't find the site. Only explanation?

I'm moving to a synology box so my options are going to be limited further

Re: host file ? newzbin.com current ip blacklisted

Posted: December 18th, 2011, 10:32 am
by sander
I checked with Python (which SABnzbd runs in) on my Linux, and changing the /etc/hosts works:

Code: Select all

>>> import socket
>>> from pprint import pprint

>>> pprint(socket.getaddrinfo('www.newzbin.com', 80))
[(2, 1, 6, '', ('85.112.165.75', 80)),
 (2, 2, 17, '', ('85.112.165.75', 80)),
 (2, 3, 0, '', ('85.112.165.75', 80))]

<change in /etc/hosts >

>>> pprint(socket.getaddrinfo('www.newzbin.com', 80))
[(2, 1, 6, '', ('1.2.3.4', 80)),
 (2, 2, 17, '', ('1.2.3.4', 80)),
 (2, 3, 0, '', ('1.2.3.4', 80))]
>>> 


So: on your Synology, can you run the same commands and see if that works? If so, I would say running SABnzbd on the Synology would use the redirect via /etc/hosts ...

Re: host file ? newzbin.com current ip blacklisted

Posted: December 18th, 2011, 11:28 am
by sander
Ah, interesting, and first thing you should check:

On your Windows, you can access http://www.newzbin.com/ , right?
Can you also access https://www.newzbin.com/ (so: via https)? If not, that's the cause: SABnzbd seems to do a HTTPS lookup (I had a quick look at the source code: if SSL is available on the system, it does HTTPS)

PS: Have a look at your sabnzbd logging; with my own http-only webserver's IP address filled out in the hosts file for http://www.newzbin.com, on Windows it shows this:

Code: Select all

2011-12-18 17:17:07,217::INFO::[newzbin:296] Fetching Newzbin bookmarks

2011-12-18 17:17:28,197::INFO::[newzbin:307] Traceback: 

Traceback (most recent call last):
  File "sabnzbd\newzbin.pyo", line 303, in run
  File "httplib.pyo", line 866, in request
  File "httplib.pyo", line 889, in _send_request
  File "httplib.pyo", line 860, in endheaders
  File "httplib.pyo", line 732, in _send_output
  File "httplib.pyo", line 699, in send
  File "httplib.pyo", line 1134, in connect
  File "<string>", line 1, in connect
error: (10060, 'Operation timed out')
2011-12-18 17:17:30,502::INFO::[downloader:194] Resuming
on Ubuntu Linux

Code: Select all

2011-12-18 17:34:51,398::INFO::[newzbin:296] Fetching Newzbin bookmarks
2011-12-18 17:34:51,427::DEBUG::[newzbin:61] Problem accessing Newzbin server.
2011-12-18 17:34:51,427::INFO::[newzbin:307] Traceback: 
Traceback (most recent call last):
  File "/home/sander/SABnzbd-0.6.14/sabnzbd/newzbin.py", line 303, in run
    conn.request('POST', fetchurl, postdata, headers)
  File "/usr/lib/python2.7/httplib.py", line 955, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 989, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 951, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 811, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 773, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 1154, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused
Attention: all with http://www.newzbin.com redirected to a HTTP-only website (via the hosts file)

FWIW: this is the message with a redirection to a random HTTPS side (which of course does not understand the newzbin stuff):
2011-12-18 17:54:44,599::INFO::[newzbin:296] Fetching Newzbin bookmarks
2011-12-18 17:54:44,725::ERROR::[newzbin:357] Newzbin gives undocumented error code (302)
2011-12-18 17:54:44,725::INFO::[__init__:840] Saving data for bookmarks.sab in /home/sander/.sabnzbd/admin/bookmarks.sab

Re: host file ? newzbin.com current ip blacklisted

Posted: December 18th, 2011, 11:58 am
by darkromz
i had a look at the https issue as i didnt realise this, and https://newzbin.com worked, more puzzled i had more of a think and realised you was using www. in the address. so i tryied http://www.newzbin.com and this didnt work in my browser nore the https://www.newzbin.com so that got me thinking so i opened my host file and added an additional line to cover the www. and now have the following in my host file.

85.112.165.69 newzbin.com
85.112.165.69 www.newzbin.com

This now works :-) so thanks alot for that bit.

So while i have this now working on my laptop for the moment, when my synology box turns up tomorrow and not knowing anything about linux really is there a host file at all like the windows one that i could make changes to, to get the same end result.

thanks again

Re: host file ? newzbin.com current ip blacklisted

Posted: December 18th, 2011, 12:24 pm
by sander
Good that it works.

On Linux: /etc/hosts

HTH

Re: host file ? newzbin.com current ip blacklisted

Posted: December 18th, 2011, 12:32 pm
by darkromz
sander wrote:On Linux: /etc/hosts

thanks